Linux Sound subsystem development
 help / color / mirror / Atom feed
* sb driver only accepts 16 bit dma channels 5,6,7
@ 2002-07-26 20:32 Andrew Friedley
  0 siblings, 0 replies; only message in thread
From: Andrew Friedley @ 2002-07-26 20:32 UTC (permalink / raw)
  To: linux-sound

[-- 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;
 

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2002-07-26 20:32 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-07-26 20:32 sb driver only accepts 16 bit dma channels 5,6,7 Andrew Friedley

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox