mirror of
https://github.com/torvalds/linux.git
synced 2024-11-05 03:21:32 +00:00
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 <cyrus.lien@canonical.com> Signed-off-by: David Henningsson <david.henningsson@canonical.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
parent
092f9cd16a
commit
5959a6bc11
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user