diff options
author | Takashi Iwai <tiwai@suse.de> | 2011-05-17 11:28:16 +0200 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2011-05-17 12:33:27 +0200 |
commit | e35d9d6a153493055fc888add70786154f00edd4 (patch) | |
tree | 19a6339a5b782ecbac23a7983d84b6fe15a2624b /sound/pci/hda/patch_realtek.c | |
parent | 43c1b2e9209cc824177a5a13e34fb21dfab3455a (diff) |
ALSA: hda - Check unsol-cap in is_jack_detectalbe()
Also replace more open-codes with this function.
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci/hda/patch_realtek.c')
-rw-r--r-- | sound/pci/hda/patch_realtek.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/pci/hda/patch_realtek.c b/sound/pci/hda/patch_realtek.c index 1f00cdbf234..24bc8a67a39 100644 --- a/sound/pci/hda/patch_realtek.c +++ b/sound/pci/hda/patch_realtek.c @@ -1628,7 +1628,7 @@ static void alc_init_auto_mic(struct hda_codec *codec) } if (!ext || !fixed) return; - if (!(get_wcaps(codec, ext) & AC_WCAP_UNSOL_CAP)) + if (!is_jack_detectable(codec, ext)) return; /* no unsol support */ snd_printdd("realtek: Enable auto-mic switch on NID 0x%x/0x%x\n", ext, fixed); |