Massive fixes in the mmap plugin (NONBLOCK, poll).

This commit is contained in:
Jaroslav Kysela 2000-01-28 22:45:18 +00:00
parent a8a134e334
commit c808ac0806
2 changed files with 108 additions and 64 deletions

View file

@ -193,6 +193,10 @@ int snd_pcm_nonblock_mode(snd_pcm_t *pcm, int nonblock)
flags &= ~O_NONBLOCK;
if (fcntl(fd, F_SETFL, flags) < 0)
return -errno;
if (nonblock)
pcm->mode |= SND_PCM_OPEN_NONBLOCK;
else
pcm->mode &= ~SND_PCM_OPEN_NONBLOCK;
}
return 0;
}