Skip to contentSkip to conversation

sb_mixer: Add extended SB16 mixer controls for newer chips

PATCH New Ondrej Zary 1 participant 1 message May 22, 2012 Sound

lore
Share & tools
lore
#0 lore raw

PATCH 3/3 sb_mixer: Add extended SB16 mixer controls for newer chips

Newer SB16 chips (Vibra 16C and later) have extended mixer controls. This detects them and enables automatically if present.

Supported extended controls:
Synth Playback Switch
PCM Playback Switch
Beep Playback Switch
Master Playback Switch
PCM Capture Switch
Master Capture Volume
Master Capture Switch

Vibra 16XV has an additional Aux input which is used on SF16-FMD and SF16-FMD2 cards to connect the onboard FM tuner:
Aux Playback Switch
Aux Volume
Aux Capture Switch

include/sound/sb.h +6 -0
@@ -214,6 +214,12 @@ struct snd_sb {
 #define SB_DSP4_IGAIN_DEV	0x3f
 #define SB_DSP4_OGAIN_DEV	0x41
 #define SB_DSP4_MIC_AGC		0x43
+/* extended registers for newer SB16 */
+#define SB_DSP4_OUTPUT2_SW	0x48
+#define SB_DSP4_MASTER_SW	0x49
+#define SB_DSP4_INPUT2_SW	0x4a
+#define SB_DSP4_MASTER_REC_DEV	0x50
+#define SB_DSP4_AUX_DEV		0x52
 
 /* additional registers for SB 16 mixer */
 #define SB_DSP4_IRQSETUP	0x80
sound/isa/sb/sb_mixer.c +69 -0

81 lines not on this page · raw message

Signature · 1 line
Ondrej Zary