diff options
author | Takashi Iwai <tiwai@suse.de> | 2011-09-26 15:27:10 +0200 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2011-09-26 15:27:10 +0200 |
commit | 5ec02a1cfa9497f585721ec775c9b3e2783ff6fb (patch) | |
tree | d2e90cbaa52b11303bb06f45fbe67c6bd8547ee2 /sound/pci/hda/patch_realtek.c | |
parent | ALSA: HDA - Add Independent Headphone for all models of ad1988/ad1989 (diff) | |
parent | ALSA: hda/realtek - Don't detect LO jack when identical with HP (diff) | |
download | linux-5ec02a1cfa9497f585721ec775c9b3e2783ff6fb.tar.xz linux-5ec02a1cfa9497f585721ec775c9b3e2783ff6fb.zip |
Merge branch 'fix/hda' into topic/hda
Diffstat (limited to 'sound/pci/hda/patch_realtek.c')
-rw-r--r-- | sound/pci/hda/patch_realtek.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/sound/pci/hda/patch_realtek.c b/sound/pci/hda/patch_realtek.c index de9a26b795fa..45108445edc5 100644 --- a/sound/pci/hda/patch_realtek.c +++ b/sound/pci/hda/patch_realtek.c @@ -594,6 +594,10 @@ static void alc_line_automute(struct hda_codec *codec) { struct alc_spec *spec = codec->spec; + /* check LO jack only when it's different from HP */ + if (spec->autocfg.line_out_pins[0] == spec->autocfg.hp_pins[0]) + return; + spec->line_jack_present = detect_jacks(codec, ARRAY_SIZE(spec->autocfg.line_out_pins), spec->autocfg.line_out_pins); @@ -1347,7 +1351,9 @@ do_sku: * 15 : 1 --> enable the function "Mute internal speaker * when the external headphone out jack is plugged" */ - if (!spec->autocfg.hp_pins[0]) { + if (!spec->autocfg.hp_pins[0] && + !(spec->autocfg.line_out_pins[0] && + spec->autocfg.line_out_type == AUTO_PIN_HP_OUT)) { hda_nid_t nid; tmp = (ass >> 11) & 0x3; /* HP to chassis */ if (tmp == 0) |