diff options
author | Takashi Iwai <tiwai@suse.de> | 2009-07-27 06:54:26 -0400 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2009-07-27 06:54:26 -0400 |
commit | a22d543a95e82e5ad0ee1a44aad54fd6b6bf52a8 (patch) | |
tree | 34ab56e73bd25338588a83e8e1b28e4ce94810b1 /sound/pci/hda/hda_local.h | |
parent | a3daf68931679dbd96342099e4d61a99ba98315c (diff) |
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_local.h')
-rw-r--r-- | sound/pci/hda/hda_local.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sound/pci/hda/hda_local.h b/sound/pci/hda/hda_local.h index 75aa3785212f..fa57cb93b443 100644 --- a/sound/pci/hda/hda_local.h +++ b/sound/pci/hda/hda_local.h | |||
@@ -407,6 +407,9 @@ static inline u32 get_wcaps(struct hda_codec *codec, hda_nid_t nid) | |||
407 | return codec->wcaps[nid - codec->start_nid]; | 407 | return codec->wcaps[nid - codec->start_nid]; |
408 | } | 408 | } |
409 | 409 | ||
410 | /* get the widget type from widget capability bits */ | ||
411 | #define get_wcaps_type(wcaps) (((wcaps) & AC_WCAP_TYPE) >> AC_WCAP_TYPE_SHIFT) | ||
412 | |||
410 | u32 query_amp_caps(struct hda_codec *codec, hda_nid_t nid, int direction); | 413 | u32 query_amp_caps(struct hda_codec *codec, hda_nid_t nid, int direction); |
411 | int snd_hda_override_amp_caps(struct hda_codec *codec, hda_nid_t nid, int dir, | 414 | int snd_hda_override_amp_caps(struct hda_codec *codec, hda_nid_t nid, int dir, |
412 | unsigned int caps); | 415 | unsigned int caps); |