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 | 34588709af61be1550b4e2bcee5c85d0ac4f34d4 (diff) | |
parent | e0d32e335fc0e354db93a807736243f5035fbc67 (diff) | |
download | op-kernel-dev-5ec02a1cfa9497f585721ec775c9b3e2783ff6fb.zip op-kernel-dev-5ec02a1cfa9497f585721ec775c9b3e2783ff6fb.tar.gz |
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 de9a26b..4510844 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) |