From b6b054fc82ac99e3470943aabfdbf30a561630f7 Mon Sep 17 00:00:00 2001 From: Matthew Hodgson Date: Sat, 19 Mar 2005 15:11:18 +0000 Subject: [PATCH] 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 --- alsa/pcm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: -- 2.47.1