diff options
author | Takashi Iwai <tiwai@suse.de> | 2011-05-17 04:02:27 -0400 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2011-05-17 04:03:02 -0400 |
commit | 1682c8174692180fcb19317704a0d32c8731eb33 (patch) | |
tree | beca90d827c25947de899ab2a601c98535bceda5 /sound | |
parent | 06dec2282b1366136442950958b517db691533a1 (diff) |
ALSA: hda - Use get_wcaps_type()
Replace the open-code with get_wcaps_type() macro.
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound')
-rw-r--r-- | sound/pci/hda/patch_cirrus.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sound/pci/hda/patch_cirrus.c b/sound/pci/hda/patch_cirrus.c index 43fd403e9bd3..4ff70c130dab 100644 --- a/sound/pci/hda/patch_cirrus.c +++ b/sound/pci/hda/patch_cirrus.c | |||
@@ -349,8 +349,7 @@ static hda_nid_t get_adc(struct hda_codec *codec, hda_nid_t pin, | |||
349 | hda_nid_t pins[2]; | 349 | hda_nid_t pins[2]; |
350 | unsigned int type; | 350 | unsigned int type; |
351 | int j, nums; | 351 | int j, nums; |
352 | type = (get_wcaps(codec, nid) & AC_WCAP_TYPE) | 352 | type = get_wcaps_type(get_wcaps(codec, nid)); |
353 | >> AC_WCAP_TYPE_SHIFT; | ||
354 | if (type != AC_WID_AUD_IN) | 353 | if (type != AC_WID_AUD_IN) |
355 | continue; | 354 | continue; |
356 | nums = snd_hda_get_connections(codec, nid, pins, | 355 | nums = snd_hda_get_connections(codec, nid, pins, |