From: Scott Murray <scott@spiteful.org>
To: linux-sound@vger.kernel.org
Subject: Re: [PATCH] Sound recording with OPL3SA2
Date: Sun, 15 Jul 2001 20:36:27 +0000 [thread overview]
Message-ID: <marc-linux-sound-99523125312133@msgid-missing> (raw)
In-Reply-To: <marc-linux-sound-99519931815581@msgid-missing>
On Sun, 15 Jul 2001, Lars Joas wrote:
> Hi.
>
> I got this message in the log when I tried to do sound recording:
>
> "Sound: DMA (input) timed out - IRQ/DRQ config error?"
>
> After some investigations I found a bug in the opl3sa2 driver. I have
> sent this patch to Scott Murray (scott@spiteful.org), but received no
> answer. And the bug is still in kernel 2.4.6.
>
> So now I escalate the issue to the linux-sound mailing list....
>
> In the attach_opl3sa2() function we look at the dma values to see if we
> are using two or one channel, and configure the chip accordingly.
> Unfortunately the dma values are not set in the structure we look at.
I apologize for not getting back to you earlier. I've been extremely
busy at the startup I work for, and on top of that, I recently lost a
bunch of mail. There's a reason why linux-sound is listed in my
MAINTAINERS entry, posting to it gets me off my butt. :)
Anyways, after looking at this, I prefer this IMO more correct fix:
--- linux-2.4.6/drivers/sound/opl3sa2.c Fri Mar 2 21:38:39 2001
+++ linux/drivers/sound/opl3sa2.c Sun Jul 15 16:28:38 2001
@@ -861,8 +861,8 @@
/* Our own config: */
hw_cfg->io_base = dev->resource[4].start;
hw_cfg->irq = 0;
- hw_cfg->dma = -1;
- hw_cfg->dma2 = -1;
+ hw_cfg->dma = dev->dma_resource[0].start;
+ hw_cfg->dma2 = dev->dma_resource[1].start;
/* The MSS config: */
mss_cfg->io_base = dev->resource[1].start;
Lars, could you try this out and see if it works for you?
Scott
--
======================================Scott Murray email: scott@spiteful.org
http://www.spiteful.org (coming soon) ICQ: 10602428
-----------------------------------------------------------------------------
"Good, bad ... I'm the guy with the gun." - Ash, "Army of Darkness"
-
To unsubscribe from this list: send the line "unsubscribe linux-sound" in
the body of a message to majordomo@vger.kernel.org
prev parent reply other threads:[~2001-07-15 20:36 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-07-15 12:13 [PATCH] Sound recording with OPL3SA2 Lars Joas
2001-07-15 20:36 ` Scott Murray [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=marc-linux-sound-99523125312133@msgid-missing \
--to=scott@spiteful.org \
--cc=linux-sound@vger.kernel.org \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.