armbox: fix devices

This commit is contained in:
TangoCash
2017-10-17 18:39:21 +02:00
parent 07b59f07dd
commit 18d6e271e2
2 changed files with 2 additions and 2 deletions

View File

@@ -49,7 +49,7 @@ void cAudio::openDevice(void)
if (fd < 0)
{
if ((fd = open(AUDIO_DEVICE, O_RDWR | O_NONBLOCK)) < 0)
if ((fd = open(AUDIO_DEVICE, O_RDWR)) < 0)
lt_info("openDevice: open failed (%m)\n");
fcntl(fd, F_SETFD, FD_CLOEXEC);
do_mute(true, false);

View File

@@ -178,7 +178,7 @@ void cVideo::openDevice(void)
if (fd != -1) /* already open */
return;
retry:
if ((fd = open(VDEV[devnum], O_RDWR|O_CLOEXEC|O_NONBLOCK)) < 0)
if ((fd = open(VDEV[devnum], O_RDWR|O_CLOEXEC)) < 0)
{
if (errno == EBUSY)
{