diff options
author | Takashi Iwai <tiwai@suse.de> | 2011-05-17 05:28:16 -0400 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2011-05-17 06:33:27 -0400 |
commit | e35d9d6a153493055fc888add70786154f00edd4 (patch) | |
tree | 19a6339a5b782ecbac23a7983d84b6fe15a2624b /sound/pci/hda/patch_cirrus.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_cirrus.c')
-rw-r--r-- | sound/pci/hda/patch_cirrus.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/pci/hda/patch_cirrus.c b/sound/pci/hda/patch_cirrus.c index 4ff70c130dab..26a1521045bb 100644 --- a/sound/pci/hda/patch_cirrus.c +++ b/sound/pci/hda/patch_cirrus.c | |||
@@ -922,7 +922,7 @@ static void init_output(struct hda_codec *codec) | |||
922 | AC_VERB_SET_PIN_WIDGET_CONTROL, PIN_HP); | 922 | AC_VERB_SET_PIN_WIDGET_CONTROL, PIN_HP); |
923 | if (!cfg->speaker_outs) | 923 | if (!cfg->speaker_outs) |
924 | continue; | 924 | continue; |
925 | if (get_wcaps(codec, nid) & AC_WCAP_UNSOL_CAP) { | 925 | if (is_jack_detectable(codec, nid)) { |
926 | snd_hda_codec_write(codec, nid, 0, | 926 | snd_hda_codec_write(codec, nid, 0, |
927 | AC_VERB_SET_UNSOLICITED_ENABLE, | 927 | AC_VERB_SET_UNSOLICITED_ENABLE, |
928 | AC_USRSP_EN | HP_EVENT); | 928 | AC_USRSP_EN | HP_EVENT); |