From alsa-devel-owner@alsa.jcu.cz  Tue Jan 19 21:03:49 1999
Received: from smaux.kusm.kyoto-u.ac.jp (smaux.kusm.kyoto-u.ac.jp [130.54.53.12])
	by marvin.jcu.cz (8.9.1a/8.9.1) with SMTP id VAA13190
	for <alsa-devel@alsa.jcu.cz>; Tue, 19 Jan 1999 21:02:27 +0100
Received: (qmail 15208 invoked from network); 20 Jan 1999 05:02:19 +0900
Received: from hitomi.kusm.kyoto-u.ac.jp (130.54.53.48)
  by smaux.kusm.kyoto-u.ac.jp with SMTP; 20 Jan 1999 05:02:19 +0900
Received: (qmail 5778 invoked by uid 2161); 19 Jan 1999 20:02:17 -0000
Message-ID: <19990120050216.A5744@hitomi.kusm.kyoto-u.ac.jp>
Date: Wed, 20 Jan 1999 05:02:16 +0900
From: Yamahata Isaku <yamahata@kusm.kyoto-u.ac.jp>
To: alsa-devel@alsa.jcu.cz
Subject: [patch] seq_clientmgr.c
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. 

Open /dev/sequencer by snd_seq_open (handle, SND_SEQ_OPEN_OUT),
and write it, the reault is EIO.
Similary open by snd_seq_open (handle, SND_SEQ_OPEN_IN),
and read from it, the result is EIO.
Following patch fixes this bug. 

--- seq_clientmgr.c     Sat Jan 16 01:25:15 1999
+++ seq_clientmgr.c.new Wed Jan 20 04:57:54 1999
@@ -348,7 +348,7 @@
        if (client == NULL)
                return -EIO;
 
-       if (!client->accept_output)
+       if (!client->accept_input)
                return -EIO;
 
        /* while we have room for at least one event */
@@ -444,7 +444,7 @@
        if (client == NULL)
                return -EIO;
 
-       if (!client->accept_input)
+       if (!client->accept_output)
                return -EIO;
 
        /* only process whole event */

---
Isaku Yamahata
yamahata@kusm.kyoto-u.ac.jp
CQG00274@nifty.ne.jp
http://www.kusm.kyoto-u.ac.jp/%7Eyamahata/

