diff options
author | Takashi Iwai <tiwai@suse.de> | 2011-09-26 04:41:21 -0400 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2011-09-26 05:13:43 -0400 |
commit | 5fe6e0151dbd969f5fbcd94d05c968b76d76952b (patch) | |
tree | ae01e7300eac1df99b1be683c8906f5b6cc56e57 /sound | |
parent | 6656b15d675c9c6a049db48d50994b3cd4e76bd6 (diff) |
ALSA: hda/realtek - Avoid bogus HP-pin assignment
When the headphone pin is assigned as primary output to line_out_pins[],
the automatic HP-pin assignment by ASSID must be suppressed. Otherwise
a wrong pin might be assigned to the headphone and breaks the auto-mute.
Reference: https://bugzilla.novell.com/show_bug.cgi?id=716104
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Cc: <stable@kernel.org>
Diffstat (limited to 'sound')
-rw-r--r-- | sound/pci/hda/patch_realtek.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sound/pci/hda/patch_realtek.c b/sound/pci/hda/patch_realtek.c index 0503c999e7d3..91a538173c97 100644 --- a/sound/pci/hda/patch_realtek.c +++ b/sound/pci/hda/patch_realtek.c | |||
@@ -1321,7 +1321,9 @@ do_sku: | |||
1321 | * 15 : 1 --> enable the function "Mute internal speaker | 1321 | * 15 : 1 --> enable the function "Mute internal speaker |
1322 | * when the external headphone out jack is plugged" | 1322 | * when the external headphone out jack is plugged" |
1323 | */ | 1323 | */ |
1324 | if (!spec->autocfg.hp_pins[0]) { | 1324 | if (!spec->autocfg.hp_pins[0] && |
1325 | !(spec->autocfg.line_out_pins[0] && | ||
1326 | spec->autocfg.line_out_type == AUTO_PIN_HP_OUT)) { | ||
1325 | hda_nid_t nid; | 1327 | hda_nid_t nid; |
1326 | tmp = (ass >> 11) & 0x3; /* HP to chassis */ | 1328 | tmp = (ass >> 11) & 0x3; /* HP to chassis */ |
1327 | if (tmp == 0) | 1329 | if (tmp == 0) |