From 73ec1fc48fa2c45a332c828fb5c89ab44da9ab32 Mon Sep 17 00:00:00 2001 From: Takashi Iwai Date: Mon, 11 Feb 2008 15:54:34 +0100 Subject: [PATCH] --- yaml --- r: 92033 b: refs/heads/master c: f0824812af1bf4f7d27e054a2ca2686385d770bb h: refs/heads/master i: 92031: 61064a1b5381aae992935122242c91ffa6f0a095 v: v3 --- [refs] | 2 +- trunk/sound/pci/hda/patch_analog.c | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/[refs] b/[refs] index 80d5cb6b228a..5e5f0f93c410 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 937b416027d8f79d7b37bb63b6585ea8fdf125de +refs/heads/master: f0824812af1bf4f7d27e054a2ca2686385d770bb diff --git a/trunk/sound/pci/hda/patch_analog.c b/trunk/sound/pci/hda/patch_analog.c index 7286ab86ecc4..9d0d2a1bbd64 100644 --- a/trunk/sound/pci/hda/patch_analog.c +++ b/trunk/sound/pci/hda/patch_analog.c @@ -1366,7 +1366,10 @@ static int ad1981_hp_master_sw_put(struct snd_kcontrol *kcontrol, if (! ad198x_eapd_put(kcontrol, ucontrol)) return 0; - + /* change speaker pin appropriately */ + snd_hda_codec_write(codec, 0x05, 0, + AC_VERB_SET_PIN_WIDGET_CONTROL, + spec->cur_eapd ? PIN_OUT : 0); /* toggle HP mute appropriately */ snd_hda_codec_amp_stereo(codec, 0x06, HDA_OUTPUT, 0, HDA_AMP_MUTE,