patch-1.3.69 linux/drivers/sound/sb16_dsp.c

Next file: linux/drivers/sound/sb16_midi.c
Previous file: linux/drivers/sound/pss.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v1.3.68/linux/drivers/sound/sb16_dsp.c linux/drivers/sound/sb16_dsp.c
@@ -536,7 +536,7 @@
     {
       Jazz16_set_dma16 (hw_config->dma);
       sb16_dsp_ok = 1;
-      return 0;
+      return 1;
     }
 
   if (!(sb_config = sound_getconf (SNDCARD_SB)))
@@ -580,6 +580,10 @@
 void
 unload_sb16 (struct address_info *hw_config)
 {
+  extern int      Jazz16_detected;
+
+  if (Jazz16_detected)
+    return;
 
   sound_free_dma (dma8);
 

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov with Sam's (original) version
of this