From alsa-devel-owner@alsa.jcu.cz  Tue Feb 16 20:50:13 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 UAA18710
	for <alsa-devel@alsa.jcu.cz>; Tue, 16 Feb 1999 20:49:56 +0100
Received: (qmail 25879 invoked from network); 17 Feb 1999 00:45:53 +0900
Received: from smdoc2.kusm.kyoto-u.ac.jp (130.54.53.38)
  by smaux.kusm.kyoto-u.ac.jp with SMTP; 17 Feb 1999 00:45:53 +0900
Received: (qmail 8029 invoked by uid 2161); 16 Feb 1999 15:45:52 -0000
Message-ID: <19990217004552.A8024@smdoc2.kusm.kyoto-u.ac.jp>
Date: Wed, 17 Feb 1999 00:45:52 +0900
From: Yamahata Isaku <yamahata@kusm.kyoto-u.ac.jp>
To: alsa-devel@alsa.jcu.cz
Subject: [PATCH] uart16550_seq.c port callback
Mime-Version: 1.0
Content-Type: multipart/mixed; boundary=IJpNTDwzlM2Ie8A6
Content-Transfer-Encoding: 7bit
Reply-To: alsa-devel@alsa.jcu.cz
Sender: alsa-devel-owner@alsa.jcu.cz
Precedence: list


--IJpNTDwzlM2Ie8A6
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Sequencer port callback is changed on CVS version.
But the callback function in uart16550_seq.c is not followd to the change.
Attached patch fixes this.

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

--IJpNTDwzlM2Ie8A6
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename="uart16550_seq.diff"

Index: uart16550_seq.c
===================================================================
RCS file: /home/alsa/cvsroot/alsa-driver/lowlevel/generic/uart16550_seq.c,v
retrieving revision 1.2
diff -u -r1.2 uart16550_seq.c
--- uart16550_seq.c	1999/02/12 10:56:31	1.2
+++ uart16550_seq.c	1999/02/16 09:40:48
@@ -483,10 +483,10 @@
 
 
 static int snd_seq_uart16550_input_event(snd_seq_event_t * ev,
-		  void *private_data /* = snd_seq_uart16550_client_t */ )
+					 void *private_data /* = snd_seq_uart16550_port_t */ )
 {
-	snd_seq_uart16550_client_t *uart_client =
-	(snd_seq_uart16550_client_t *) private_data;
+        snd_seq_uart16550_client_t *uart_client =
+	        (((snd_seq_uart16550_port_t *) private_data)->client);
 
 	int channel = ev->dest.channel;
 	int client;
@@ -501,7 +501,7 @@
 	}
 	client = uart_client->client_index;
 	rmidi = uart_client->rmidi;
-	if (rmidi == NULL)
+	if (rmidi == NULL) 
 		return -EINVAL;	//no need?
 
 	//////////////////////////////check uart port
@@ -882,7 +882,6 @@
 	char port_name[64];
 
 	if (uart == NULL)	//no need?
-
 		return -EINVAL;
 
 	//////////////////////////////////////////////////create kernel client

--IJpNTDwzlM2Ie8A6--

