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/hda_generic.c | |
parent | a3daf68931679dbd96342099e4d61a99ba98315c (diff) | |
download | op-kernel-dev-a22d543a95e82e5ad0ee1a44aad54fd6b6bf52a8.zip op-kernel-dev-a22d543a95e82e5ad0ee1a44aad54fd6b6bf52a8.tar.gz |
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/hda_generic.c')
-rw-r--r-- | sound/pci/hda/hda_generic.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/pci/hda/hda_generic.c b/sound/pci/hda/hda_generic.c index bccb62a..b36f6c5 100644 --- a/sound/pci/hda/hda_generic.c +++ b/sound/pci/hda/hda_generic.c @@ -122,7 +122,7 @@ static int add_new_node(struct hda_codec *codec, struct hda_gspec *spec, hda_nid return -ENOMEM; node->nid = nid; node->wid_caps = get_wcaps(codec, nid); - node->type = (node->wid_caps & AC_WCAP_TYPE) >> AC_WCAP_TYPE_SHIFT; + node->type = get_wcaps_type(node->wid_caps); if (node->wid_caps & AC_WCAP_CONN_LIST) { nconns = snd_hda_get_connections(codec, nid, conn_list, HDA_MAX_CONNECTIONS); |