diff options
author | Takashi Iwai <tiwai@suse.de> | 2009-07-27 12:54:26 +0200 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2009-07-27 12:54:26 +0200 |
commit | a22d543a95e82e5ad0ee1a44aad54fd6b6bf52a8 (patch) | |
tree | 34ab56e73bd25338588a83e8e1b28e4ce94810b1 /sound/pci/hda/patch_via.c | |
parent | a3daf68931679dbd96342099e4d61a99ba98315c (diff) | |
download | kernel_samsung_tuna-a22d543a95e82e5ad0ee1a44aad54fd6b6bf52a8.zip kernel_samsung_tuna-a22d543a95e82e5ad0ee1a44aad54fd6b6bf52a8.tar.gz kernel_samsung_tuna-a22d543a95e82e5ad0ee1a44aad54fd6b6bf52a8.tar.bz2 |
ALSA: hda - Introduce get_wcaps_type() macro
Add a helper macro to retrieve the widget type from wiget cap bits.
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci/hda/patch_via.c')
-rw-r--r-- | sound/pci/hda/patch_via.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sound/pci/hda/patch_via.c b/sound/pci/hda/patch_via.c index 9008b4b..ab90abb 100644 --- a/sound/pci/hda/patch_via.c +++ b/sound/pci/hda/patch_via.c @@ -1339,8 +1339,7 @@ static int get_mux_nids(struct hda_codec *codec) for (i = 0; i < spec->num_adc_nids; i++) { nid = spec->adc_nids[i]; while (nid) { - type = (get_wcaps(codec, nid) & AC_WCAP_TYPE) - >> AC_WCAP_TYPE_SHIFT; + type = get_wcaps_type(get_wcaps(codec, nid)); if (type == AC_WID_PIN) break; n = snd_hda_get_connections(codec, nid, conn, |