From: Matthew Hodgson Date: Sat, 19 Mar 2005 15:11:18 +0000 (+0000) Subject: Fixed O_NONBLOCK behaviour for PCM devices X-Git-Tag: v1.0.9~6 X-Git-Url: https://git.alsa-project.org/?a=commitdiff_plain;h=b6b054fc82ac99e3470943aabfdbf30a561630f7;p=alsa-oss.git Fixed O_NONBLOCK behaviour for PCM devices The problem appears to be a typo in alsa-oss/alsa/pcm.c:oss_dsp_open(), where the mode parameter rather than the oflags parameter is checked for the O_NONBLOCK flag. Signed-off-by: Matthew Hodgson --- diff --git a/alsa/pcm.c b/alsa/pcm.c index 8aea2f6..dc4695b 100644 --- a/alsa/pcm.c +++ b/alsa/pcm.c @@ -534,7 +534,7 @@ static int oss_dsp_open(int card, int device, int oflag, mode_t mode) errno = ENOENT; return -1; } - if (mode & O_NONBLOCK) + if (oflag & O_NONBLOCK) pcm_mode = SND_PCM_NONBLOCK; switch (oflag & O_ACCMODE) { case O_RDONLY: