From: David Henningsson Date: Tue, 12 Nov 2013 10:10:57 +0000 (+0100) Subject: ALSA: hda - Fix Line Out automute on Realtek multifunction jacks X-Git-Tag: submit/tizen/20141203.153721~1038^2~23 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5959a6bc1124211a359525d209005abc07b0197b;p=platform%2Fkernel%2Flinux-arm64.git ALSA: hda - Fix Line Out automute on Realtek multifunction jacks In case there is both a multifunction headset jack and a Line Out jack, automuting was not working properly from the Line Out jack. This patch fixes that issue. Cc: stable@vger.kernel.org (3.10+) BugLink: https://bugs.launchpad.net/bugs/1250377 Tested-by: Cyrus Lien Signed-off-by: David Henningsson Signed-off-by: Takashi Iwai --- diff --git a/sound/pci/hda/patch_realtek.c b/sound/pci/hda/patch_realtek.c index 24d924d563a..04d1e6be600 100644 --- a/sound/pci/hda/patch_realtek.c +++ b/sound/pci/hda/patch_realtek.c @@ -3344,8 +3344,10 @@ static void alc_update_headset_mode(struct hda_codec *codec) else new_headset_mode = ALC_HEADSET_MODE_HEADPHONE; - if (new_headset_mode == spec->current_headset_mode) + if (new_headset_mode == spec->current_headset_mode) { + snd_hda_gen_update_outputs(codec); return; + } switch (new_headset_mode) { case ALC_HEADSET_MODE_UNPLUGGED: