All of lore.kernel.org
 help / color / mirror / Atom feed
From: Magic Phibo <phibo@gmx.li>
To: linux-sound@vger.kernel.org
Subject: Re: Problems recording sound with ISAPnp Soundcard since Kernel-2.4.x
Date: Fri, 05 Oct 2001 00:05:40 +0000	[thread overview]
Message-ID: <marc-linux-sound-100224071530935@msgid-missing> (raw)
In-Reply-To: <marc-linux-sound-100220329623616@msgid-missing>

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

>> 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 applied this patch and now recording works fine. So, the problem is fixed !

Thanks a lot !


Cheers,
Phibo

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: patch-kernel2.4.x-opl3sa2-dma-init --]
[-- Type: text/x-c; name="patch-kernel2.4.x-opl3sa2-dma-init", 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;

      parent reply	other threads:[~2001-10-05  0:05 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é
2001-10-05  0:05 ` Magic Phibo [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-100224071530935@msgid-missing \
    --to=phibo@gmx.li \
    --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.