From alsa-devel-owner@alsa.jcu.cz  Sat Mar 28 19:32:50 1998
Received: from sandy.force9.co.uk (root@09.usr03.shef.dialup.force9.net [195.166.133.9])
	by marvin.jcu.cz (8.8.8/8.8.8) with ESMTP id TAA27993
	for <alsa-devel@alsa.jcu.cz>; Sat, 28 Mar 1998 19:32:37 +0100
Received: (from chrisb@localhost)
	by sandy.force9.co.uk (8.8.5/8.8.5) id SAA01421
	for alsa-devel@alsa.jcu.cz; Sat, 28 Mar 1998 18:29:57 GMT
From: Christopher Butler <chrisb@sandy.force9.co.uk>
Message-Id: <199803281829.SAA01421@sandy.force9.co.uk>
Subject: [PATCH] Include file bug (ALSA C API)
To: alsa-devel@alsa.jcu.cz
Date: Sat, 28 Mar 1998 18:29:57 +0000 (GMT)
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Reply-To: alsa-devel@alsa.jcu.cz
Sender: alsa-devel-owner@alsa.jcu.cz
Precedence: list

Hi!

Tiny bug in the soundlib.h file, but it /did/ take me a while to
figure it out :-)... Started off with ioctl's running -EIO, because it
was opened in the opposite mode.

Here's the patch :

**** Begin ****
--- soundlib.h~	Sat Mar 28 16:40:15 1998
+++ soundlib.h	Sat Mar 28 18:24:44 1998
@@ -104,8 +104,8 @@
  *                                                                          *
  ****************************************************************************/
  
-#define SND_PCM_OPEN_PLAYBACK	(O_RDONLY)
-#define SND_PCM_OPEN_RECORD	(O_WRONLY)
+#define SND_PCM_OPEN_PLAYBACK	(O_WRONLY)
+#define SND_PCM_OPEN_RECORD	(O_RDONLY)
 #define SND_PCM_OPEN_DUPLEX	(O_RDWR)
  
 #ifdef __cplusplus
**** End ****

--
Chris Butler <chrisb@sandy.force9.co.uk>

