+static void fixup_mixer_channel_arg(void)
+{
+ int val = SOUND_MIXER_VOLUME; /* STFU, gcc */
+
+ switch (conf.mixer_channel_arg) {
+ case mixer_channel_arg_volume: val = SOUND_MIXER_VOLUME; break;
+ case mixer_channel_arg_bass: val = SOUND_MIXER_BASS; break;
+ case mixer_channel_arg_treble: val = SOUND_MIXER_TREBLE; break;
+ case mixer_channel_arg_synth: val = SOUND_MIXER_SYNTH; break;
+ case mixer_channel_arg_pcm: val = SOUND_MIXER_PCM; break;
+ case mixer_channel_arg_speaker: val = SOUND_MIXER_SPEAKER; break;
+ case mixer_channel_arg_line: val = SOUND_MIXER_LINE; break;
+ case mixer_channel_arg_mic: val = SOUND_MIXER_MIC; break;
+ case mixer_channel_arg_cd: val = SOUND_MIXER_CD; break;
+ case mixer_channel_arg_imix: val = SOUND_MIXER_IMIX; break;
+ case mixer_channel_arg_altpcm: val = SOUND_MIXER_ALTPCM; break;
+ case mixer_channel_arg_reclev: val = SOUND_MIXER_RECLEV; break;
+ case mixer_channel_arg_igain: val = SOUND_MIXER_IGAIN; break;
+ case mixer_channel_arg_ogain: val = SOUND_MIXER_OGAIN; break;
+ }
+ conf.mixer_channel_arg = val;
+}
+