diff options
author | Takashi Iwai <tiwai@suse.de> | 2010-09-17 08:45:14 -0400 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2010-09-17 08:45:14 -0400 |
commit | f68b3b291d39f1e3361b194a95459f9cbdaf31e6 (patch) | |
tree | 196085800ba3c2c989b89d17161eb8172a01285d /sound/pci | |
parent | 99ae28bea984df4c38234eb6d2f29a552def6c1b (diff) |
ALSA: hda - Check the external mic pin more strictly for Conexant chips
The external mic jack for auto-mic switch must be really an external
jack and with a presense-detection capability. This patch makes the
check more paranoia.
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci')
-rw-r--r-- | sound/pci/hda/patch_conexant.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sound/pci/hda/patch_conexant.c b/sound/pci/hda/patch_conexant.c index 09d573c59bef..a6c68cb06ddb 100644 --- a/sound/pci/hda/patch_conexant.c +++ b/sound/pci/hda/patch_conexant.c | |||
@@ -3475,7 +3475,8 @@ static int is_ext_mic(struct hda_codec *codec, hda_nid_t pin) | |||
3475 | { | 3475 | { |
3476 | unsigned int def_conf = snd_hda_codec_get_pincfg(codec, pin); | 3476 | unsigned int def_conf = snd_hda_codec_get_pincfg(codec, pin); |
3477 | return get_defcfg_device(def_conf) == AC_JACK_MIC_IN && | 3477 | return get_defcfg_device(def_conf) == AC_JACK_MIC_IN && |
3478 | snd_hda_get_input_pin_attr(def_conf) != INPUT_PIN_ATTR_INT; | 3478 | snd_hda_get_input_pin_attr(def_conf) >= INPUT_PIN_ATTR_NORMAL && |
3479 | (snd_hda_query_pin_caps(codec, pin) & AC_PINCAP_PRES_DETECT); | ||
3479 | } | 3480 | } |
3480 | 3481 | ||
3481 | /* check whether the pin config is suitable for auto-mic switching; | 3482 | /* check whether the pin config is suitable for auto-mic switching; |