mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Takashi Iwai <tiwai@suse.de>
To: Dave Jones <davej@redhat.com>
Cc: Jaroslav Kysela <perex@suse.cz>,
	Isaku Yamahata <yamahata@private.email.ne.jp>,
	George Hansper <ghansper@apana.org.au>,
	Linux Kernel <linux-kernel@vger.kernel.org>
Subject: Re: ALSA MIDI serial u16550 horribly broken in 2.6.4
Date: Mon, 15 Mar 2004 19:05:52 +0100	[thread overview]
Message-ID: <s5hn06igf3z.wl@alsa2.suse.de> (raw)
In-Reply-To: <20040315175110.GS28660@redhat.com>

[-- Attachment #1: Type: text/plain, Size: 676 bytes --]

At Mon, 15 Mar 2004 17:51:10 +0000,
Dave Jones wrote:
> 
> On Mon, Mar 15, 2004 at 05:29:44PM +0100, Jaroslav Kysela wrote:
>  > On Mon, 15 Mar 2004, Dave Jones wrote:
>  > 
>  > > poking io port 0x1 probably isn't going to do much good.
>  > > Here's what happens after a 'modprobe snd_serial_u16550'
>  > 
>  > Thanks. I've fixed this problem in our CVS tree. The oops should
>  > be fixed in the current Linus's tree, too.
> 
> Hmm, I don't see it at http://cvs.sourceforge.net/viewcvs.py/alsa/alsa-kernel/drivers/serial-u16550.c
> Is there somewhere else I should look ?

it must be the usual delay of sourceforce's anon cvs tree...
the patch is attached below.


Takashi

[-- Attachment #2: Type: text/plain, Size: 673 bytes --]

--- linux/sound/drivers/serial-u16550.c	13 Jan 2004 17:09:57 -0000	1.20
+++ linux/sound/drivers/serial-u16550.c	15 Mar 2004 17:40:01 -0000	1.21
@@ -342,7 +342,7 @@
 	unsigned char c;
 
 	/* Do some vague tests for the presence of the uart */
-	if (io_base == 0) {
+	if (io_base == 0 || io_base == SNDRV_AUTO_PORT) {
 		return -ENODEV;	/* Not configured */
 	}
 
@@ -804,10 +804,9 @@
 		return err;
 	}
 
-	if (irq >= 0) {
+	if (irq >= 0 && irq != SNDRV_AUTO_IRQ) {
 		if (request_irq(irq, snd_uart16550_interrupt,
 				SA_INTERRUPT, "Serial MIDI", (void *) uart)) {
-			uart->irq = -1;
 			snd_printk("irq %d busy. Using Polling.\n", irq);
 		} else {
 			uart->irq = irq;

      reply	other threads:[~2004-03-15 18:08 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-03-15 16:10 Dave Jones
2004-03-15 16:29 ` Jaroslav Kysela
2004-03-15 17:51   ` Dave Jones
2004-03-15 18:05     ` Takashi Iwai [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=s5hn06igf3z.wl@alsa2.suse.de \
    --to=tiwai@suse.de \
    --cc=davej@redhat.com \
    --cc=ghansper@apana.org.au \
    --cc=linux-kernel@vger.kernel.org \
    --cc=perex@suse.cz \
    --cc=yamahata@private.email.ne.jp \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®