[ALSA] hda-codec - Fix mute switch on VAIO laptops with STAC7661
Fixed the master mute switch on VAIO laptops with STAC7661 codec chip. Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
parent
1dbfd8c56b
commit
a9393d70e5
|
@ -1262,13 +1262,13 @@ static int vaio_master_sw_put(struct snd_kcontrol *kcontrol,
|
||||||
int change;
|
int change;
|
||||||
|
|
||||||
change = snd_hda_codec_amp_update(codec, 0x02, 0, HDA_OUTPUT, 0,
|
change = snd_hda_codec_amp_update(codec, 0x02, 0, HDA_OUTPUT, 0,
|
||||||
0x80, valp[0] & 0x80);
|
0x80, (valp[0] ? 0 : 0x80));
|
||||||
change |= snd_hda_codec_amp_update(codec, 0x02, 1, HDA_OUTPUT, 0,
|
change |= snd_hda_codec_amp_update(codec, 0x02, 1, HDA_OUTPUT, 0,
|
||||||
0x80, valp[1] & 0x80);
|
0x80, (valp[1] ? 0 : 0x80));
|
||||||
snd_hda_codec_amp_update(codec, 0x05, 0, HDA_OUTPUT, 0,
|
snd_hda_codec_amp_update(codec, 0x05, 0, HDA_OUTPUT, 0,
|
||||||
0x80, valp[0] & 0x80);
|
0x80, (valp[0] ? 0 : 0x80));
|
||||||
snd_hda_codec_amp_update(codec, 0x05, 1, HDA_OUTPUT, 0,
|
snd_hda_codec_amp_update(codec, 0x05, 1, HDA_OUTPUT, 0,
|
||||||
0x80, valp[1] & 0x80);
|
0x80, (valp[1] ? 0 : 0x80));
|
||||||
return change;
|
return change;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue