From: Andrew Friedley <saai@swbell.net>
To: linux-sound@vger.kernel.org
Subject: sb driver only accepts 16 bit dma channels 5,6,7
Date: Fri, 26 Jul 2002 20:32:49 +0000 [thread overview]
Message-ID: <marc-linux-sound-102771552908379@msgid-missing> (raw)
[-- Attachment #1: Type: text/plain, Size: 707 bytes --]
I'm not subscribed to this list, id appreciate it if replies were CC'd to
me.
I have a ISA soundblaster (vibra) 16. By default it uses DMA 3 for its 16
bit dma channel. For some reason the oss sb.o driver included in the kernel
only accepts 16 bit dma values of 5, 6, or 7. Using the isapnp support in
the 2.4 kernel, the driver accepts dma 3 as detected by isapnp. But, when
dma 3 is given as the 16 bit dma channel on the kernel command line, the sb
driver rejects it and no 16 bit dma channel is set up.
I have attached a patch, made against 2.4.19rc3, which makes the sb driver
accept any DMA channel number for the 16 bit channel. This patch works for
me on my system.
Thanks,
Andrew Friedley
[-- Attachment #2: sb_common.diff --]
[-- Type: application/octet-stream, Size: 774 bytes --]
diff -Naur linux-2.4.19rc3/drivers/sound/sb_common.c linux-2.4.19rc3-mod/drivers/sound/sb_common.c
--- linux-2.4.19rc3/drivers/sound/sb_common.c 2002-07-26 15:13:58.000000000 -0500
+++ linux-2.4.19rc3-mod/drivers/sound/sb_common.c 2002-07-26 13:05:20.000000000 -0500
@@ -801,11 +801,11 @@
if (hw_config->dma2 == -1)
devc->dma16 = devc->dma8;
- else if (hw_config->dma2 < 5 || hw_config->dma2 > 7)
- {
- printk(KERN_WARNING "SB16: Bad or missing 16 bit DMA channel\n");
- devc->dma16 = devc->dma8;
- }
+// else if (hw_config->dma2 < 5 || hw_config->dma2 > 7)
+// {
+// printk(KERN_WARNING "SB16: Bad or missing 16 bit DMA channel\n");
+// devc->dma16 = devc->dma8;
+// }
else
devc->dma16 = hw_config->dma2;
reply other threads:[~2002-07-26 20:32 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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-102771552908379@msgid-missing \
--to=saai@swbell.net \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox