From: "Jérôme Augé" <jauge@club-internet.fr>
To: linux-sound@vger.kernel.org
Subject: Re: Problems recording sound with ISAPnp Soundcard since Kernel-2.4.x
Date: Thu, 04 Oct 2001 17:11:14 +0000 [thread overview]
Message-ID: <marc-linux-sound-100221537811476@msgid-missing> (raw)
In-Reply-To: <marc-linux-sound-100220329623616@msgid-missing>
[-- Attachment #1: Type: text/plain, Size: 733 bytes --]
Magic Phibo wrote:
>
> Hello
>
> Sorry, if this mail arrives twice ...
>
> Since upgrade to Kernel-2.4.x (currently 2.4.10) I got problems recording sound
> causing following error message in /var/log/messages:
>
> Sep 30 15:53:16 osiris kernel: Sound: DMA (input) timed out - IRQ/DRQ configerror?
>
> It's a redhat dist. (7.0) with a Yamaha ISAPnp Soundcard (OPL3 YMF719) and a
> self configured Kernel-2.4.10.
>
> [...]
>
I also noticed this problem ...
There is a problem with the initialization of the DMA channels (dma and
dma2 are never set to the real dma channels, and they remain at -1).
Applying this patch fix this error.
I'm going to post it to the kernel mailling list.
--
Jérôme Augé
[-- Attachment #2: patch-opl3sa2-dma-init --]
[-- Type: text/plain, Size: 924 bytes --]
diff -ur linux.orig/drivers/sound/opl3sa2.c linux/drivers/sound/opl3sa2.c
--- linux.orig/drivers/sound/opl3sa2.c Wed Oct 3 09:36:16 2001
+++ linux/drivers/sound/opl3sa2.c Wed Oct 3 09:41:28 2001
@@ -862,9 +862,9 @@
/* 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->irq = dev->irq_resource[0].start;
+ 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;
@@ -944,9 +944,9 @@
* give pretty output from conf_printf. :)
*/
cfg[card].io_base = io;
- cfg[card].irq = 0;
- cfg[card].dma = -1;
- cfg[card].dma2 = -1;
+ cfg[card].irq = irq;
+ cfg[card].dma = dma;
+ cfg[card].dma2 = dma2;
/* The MSS config: */
cfg_mss[card].io_base = mss_io;
next prev parent reply other threads:[~2001-10-04 17:11 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-10-04 13:47 Problems recording sound with ISAPnp Soundcard since Kernel-2.4.x Magic Phibo
2001-10-04 14:19 ` Bill Nottingham
2001-10-04 16:26 ` Magic Phibo
2001-10-04 17:11 ` Jérôme Augé [this message]
2001-10-05 0:05 ` Magic Phibo
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-100221537811476@msgid-missing \
--to=jauge@club-internet.fr \
--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.