aboutsummaryrefslogtreecommitdiffstats
path: root/sound/pci/hda/hda_local.h
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2005-11-21 10:33:22 -0500
committerJaroslav Kysela <perex@suse.cz>2006-01-03 06:29:27 -0500
commit54d174031576a2855c49611d83d4946bde81b504 (patch)
tree6bdcefaccb78bddfa1a3ea7b429e1178b479999d /sound/pci/hda/hda_local.h
parent1b98ea4791892399d8c23c93e117567eeff38887 (diff)
[ALSA] hda-codec - Fix connection list parsing
Modules: HDA Codec driver,HDA generic driver - Fix connection list parsing (with ranged flag). - Increase the max number of connections - Introduce widget capabilities cache - Power up/down widgets at init, suspend and resume 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.h14
1 files changed, 13 insertions, 1 deletions
diff --git a/sound/pci/hda/hda_local.h b/sound/pci/hda/hda_local.h
index 502290424c67..ded32359b654 100644
--- a/sound/pci/hda/hda_local.h
+++ b/sound/pci/hda/hda_local.h
@@ -87,7 +87,7 @@ int snd_hda_create_spdif_in_ctls(struct hda_codec *codec, hda_nid_t nid);
87/* 87/*
88 * input MUX helper 88 * input MUX helper
89 */ 89 */
90#define HDA_MAX_NUM_INPUTS 8 90#define HDA_MAX_NUM_INPUTS 16
91struct hda_input_mux_item { 91struct hda_input_mux_item {
92 const char *label; 92 const char *label;
93 unsigned int index; 93 unsigned int index;
@@ -243,4 +243,16 @@ int snd_hda_parse_pin_def_config(struct hda_codec *codec, struct auto_pin_cfg *c
243#define PIN_HP 0xc0 243#define PIN_HP 0xc0
244#define PIN_HP_AMP 0x80 244#define PIN_HP_AMP 0x80
245 245
246/*
247 * get widget capabilities
248 */
249static inline u32 get_wcaps(struct hda_codec *codec, hda_nid_t nid)
250{
251 if (nid < codec->start_nid ||
252 nid >= codec->start_nid + codec->num_nodes)
253 return snd_hda_param_read(codec, nid, AC_PAR_AUDIO_WIDGET_CAP);
254 return codec->wcaps[nid - codec->start_nid];
255}
256
257
246#endif /* __SOUND_HDA_LOCAL_H */ 258#endif /* __SOUND_HDA_LOCAL_H */