summaryrefslogtreecommitdiffstats
path: root/sound/pci/hda/patch_sigmatel.c
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2012-05-15 08:58:49 +0200
committerTakashi Iwai <tiwai@suse.de>2012-05-15 08:58:49 +0200
commitf153c6af87401fdae3bb2dfbfc6284eb0d537a05 (patch)
treec0a8297706f86f949ad4aba194f46f52ab53de21 /sound/pci/hda/patch_sigmatel.c
parentALSA: hda - Evaluate gpio_led hints at the right moment (diff)
parentALSA: hda/idt - Fix power-map for speaker-pins with some HP laptops (diff)
downloadlinux-f153c6af87401fdae3bb2dfbfc6284eb0d537a05.tar.xz
linux-f153c6af87401fdae3bb2dfbfc6284eb0d537a05.zip
Merge branch 'fix/hda' into topic/hda
Diffstat (limited to 'sound/pci/hda/patch_sigmatel.c')
-rw-r--r--sound/pci/hda/patch_sigmatel.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sound/pci/hda/patch_sigmatel.c b/sound/pci/hda/patch_sigmatel.c
index 0669149a92fc..3808f37bf15e 100644
--- a/sound/pci/hda/patch_sigmatel.c
+++ b/sound/pci/hda/patch_sigmatel.c
@@ -4390,9 +4390,9 @@ static int stac92xx_init(struct hda_codec *codec)
def_conf = get_defcfg_connect(def_conf);
/* skip any ports that don't have jacks since presence
* detection is useless */
- if (def_conf != AC_JACK_PORT_COMPLEX) {
- if (def_conf != AC_JACK_PORT_NONE)
- stac_toggle_power_map(codec, nid, 1);
+ if (def_conf != AC_JACK_PORT_NONE &&
+ !is_jack_detectable(codec, nid)) {
+ stac_toggle_power_map(codec, nid, 1);
continue;
}
if (enable_pin_detect(codec, nid, STAC_PWR_EVENT)) {