diff options
author | Takashi Iwai <tiwai@suse.de> | 2008-02-11 09:54:34 -0500 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2008-04-24 06:00:09 -0400 |
commit | f0824812af1bf4f7d27e054a2ca2686385d770bb (patch) | |
tree | 9957d139cc89f3c2b84dd1989c1f6b0069103d63 | |
parent | 937b416027d8f79d7b37bb63b6585ea8fdf125de (diff) |
[ALSA] hda-codec - Fix automute of AD1981HD hp model
Reprogram the speaker-pin setting at each HP pin plug to make sure
the spekaer auto-muting on AD1981HD hp model.
Signed-off-by: Takashi Iwai <tiwai@suse.de>
-rw-r--r-- | sound/pci/hda/patch_analog.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sound/pci/hda/patch_analog.c b/sound/pci/hda/patch_analog.c index 7286ab86ecc4..9d0d2a1bbd64 100644 --- a/sound/pci/hda/patch_analog.c +++ b/sound/pci/hda/patch_analog.c | |||
@@ -1366,7 +1366,10 @@ static int ad1981_hp_master_sw_put(struct snd_kcontrol *kcontrol, | |||
1366 | 1366 | ||
1367 | if (! ad198x_eapd_put(kcontrol, ucontrol)) | 1367 | if (! ad198x_eapd_put(kcontrol, ucontrol)) |
1368 | return 0; | 1368 | return 0; |
1369 | 1369 | /* change speaker pin appropriately */ | |
1370 | snd_hda_codec_write(codec, 0x05, 0, | ||
1371 | AC_VERB_SET_PIN_WIDGET_CONTROL, | ||
1372 | spec->cur_eapd ? PIN_OUT : 0); | ||
1370 | /* toggle HP mute appropriately */ | 1373 | /* toggle HP mute appropriately */ |
1371 | snd_hda_codec_amp_stereo(codec, 0x06, HDA_OUTPUT, 0, | 1374 | snd_hda_codec_amp_stereo(codec, 0x06, HDA_OUTPUT, 0, |
1372 | HDA_AMP_MUTE, | 1375 | HDA_AMP_MUTE, |