Skip to content

Commit 69a0730

Browse files
cladischperexg
authored andcommitted
[ALSA] cmipci: disable 'Modem' control on version 39 or newer chips
On version 39 or newer chips, we better remove the 'Modem' control because this register bit now mutes the front channels of the multichannel stream. Signed-off-by: Clemens Ladisch <clemens@ladisch.de> Signed-off-by: Jaroslav Kysela <perex@perex.cz>
1 parent befceea commit 69a0730

1 file changed

Lines changed: 5 additions & 7 deletions

File tree

‎sound/pci/cmipci.c‎

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2651,10 +2651,8 @@ static struct snd_kcontrol_new snd_cmipci_extra_mixer_switches[] __devinitdata =
26512651
};
26522652

26532653
/* card control switches */
2654-
static struct snd_kcontrol_new snd_cmipci_control_switches[] __devinitdata = {
2655-
// DEFINE_CARD_SWITCH("Joystick", joystick), /* now module option */
2656-
DEFINE_CARD_SWITCH("Modem", modem),
2657-
};
2654+
static struct snd_kcontrol_new snd_cmipci_modem_switch __devinitdata =
2655+
DEFINE_CARD_SWITCH("Modem", modem);
26582656

26592657

26602658
static int __devinit snd_cmipci_mixer_new(struct cmipci *cm, int pcm_spdif_device)
@@ -2735,9 +2733,9 @@ static int __devinit snd_cmipci_mixer_new(struct cmipci *cm, int pcm_spdif_devic
27352733
}
27362734

27372735
/* card switches */
2738-
sw = snd_cmipci_control_switches;
2739-
for (idx = 0; idx < ARRAY_SIZE(snd_cmipci_control_switches); idx++, sw++) {
2740-
err = snd_ctl_add(cm->card, snd_ctl_new1(sw, cm));
2736+
if (cm->chip_version < 39) {
2737+
err = snd_ctl_add(cm->card,
2738+
snd_ctl_new1(&snd_cmipci_modem_switch, cm));
27412739
if (err < 0)
27422740
return err;
27432741
}

0 commit comments

Comments
 (0)