patch-2.1.63 linux/drivers/sound/sb_mixer.c

Next file: linux/drivers/sound/sb_mixer.h
Previous file: linux/drivers/sound/sb_midi.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.62/linux/drivers/sound/sb_mixer.c linux/drivers/sound/sb_mixer.c
@@ -16,7 +16,7 @@
 
 #include "sound_config.h"
 
-#if defined(CONFIG_SBDSP)
+#ifdef CONFIG_SBDSP
 #define __SB_MIXER_C__
 
 #include "sb.h"
@@ -36,19 +36,7 @@
 static int
 detect_mixer (sb_devc * devc)
 {
-  /*
-   * Detect the mixer by changing parameters of two volume channels. If the
-   * values read back match with the values written, the mixer is there (is
-   * it?)
-   */
-  sb_setmixer (devc, FM_VOL, 0xff);
-  sb_setmixer (devc, VOC_VOL, 0x33);
-
-  if (sb_getmixer (devc, FM_VOL) != 0xff)
-    return 0;
-  if (sb_getmixer (devc, VOC_VOL) != 0x33)
-    return 0;
-
+  /* Just trust the mixer is there */
   return 1;
 }
 
@@ -406,6 +394,7 @@
   switch (devc->model)
     {
     case MDL_SBPRO:
+    case MDL_AZTECH:
     case MDL_JAZZ:
       devc->mixer_caps = SOUND_CAP_EXCL_INPUT;
       devc->supported_devices = SBPRO_MIXER_DEVICES;

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov