diff options
Diffstat (limited to 'sound/pci/hda/patch_sigmatel.c')
-rw-r--r-- | sound/pci/hda/patch_sigmatel.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sound/pci/hda/patch_sigmatel.c b/sound/pci/hda/patch_sigmatel.c index 47d3536a6576..9b242a263637 100644 --- a/sound/pci/hda/patch_sigmatel.c +++ b/sound/pci/hda/patch_sigmatel.c | |||
@@ -3016,12 +3016,16 @@ static int stac92xx_init(struct hda_codec *codec) | |||
3016 | ? STAC_HP_EVENT : STAC_PWR_EVENT; | 3016 | ? STAC_HP_EVENT : STAC_PWR_EVENT; |
3017 | int pinctl = snd_hda_codec_read(codec, spec->pwr_nids[i], | 3017 | int pinctl = snd_hda_codec_read(codec, spec->pwr_nids[i], |
3018 | 0, AC_VERB_GET_PIN_WIDGET_CONTROL, 0); | 3018 | 0, AC_VERB_GET_PIN_WIDGET_CONTROL, 0); |
3019 | int def_conf = snd_hda_codec_read(codec, spec->pwr_nids[i], | ||
3020 | 0, AC_VERB_GET_CONFIG_DEFAULT, 0); | ||
3019 | /* outputs are only ports capable of power management | 3021 | /* outputs are only ports capable of power management |
3020 | * any attempts on powering down a input port cause the | 3022 | * any attempts on powering down a input port cause the |
3021 | * referenced VREF to act quirky. | 3023 | * referenced VREF to act quirky. |
3022 | */ | 3024 | */ |
3023 | if (pinctl & AC_PINCTL_IN_EN) | 3025 | if (pinctl & AC_PINCTL_IN_EN) |
3024 | continue; | 3026 | continue; |
3027 | if (get_defcfg_connect(def_conf) != AC_JACK_PORT_FIXED) | ||
3028 | continue; | ||
3025 | enable_pin_detect(codec, spec->pwr_nids[i], event | i); | 3029 | enable_pin_detect(codec, spec->pwr_nids[i], event | i); |
3026 | codec->patch_ops.unsol_event(codec, (event | i) << 26); | 3030 | codec->patch_ops.unsol_event(codec, (event | i) << 26); |
3027 | } | 3031 | } |