aboutsummaryrefslogtreecommitdiffstats
path: root/sound/pci/hda/hda_local.h
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2005-11-17 05:06:29 -0500
committerJaroslav Kysela <perex@suse.cz>2006-01-03 06:17:21 -0500
commitd2a6d7dc757da6b57d77bd8b460cf4faa9fd152d (patch)
treeb3edf27437b4be8ee23917b852d8e93376ac62da /sound/pci/hda/hda_local.h
parent59de641ca37b88dd34d0e1d853800b488f642624 (diff)
[ALSA] hda-codec - Add channel-mode helper
Modules: HDA Codec driver,HDA generic driver Add common channel-mode helper functions for all codec patches. 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.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/sound/pci/hda/hda_local.h b/sound/pci/hda/hda_local.h
index f51a56f813c8..05a88fb1d652 100644
--- a/sound/pci/hda/hda_local.h
+++ b/sound/pci/hda/hda_local.h
@@ -102,6 +102,23 @@ int snd_hda_input_mux_put(struct hda_codec *codec, const struct hda_input_mux *i
102 snd_ctl_elem_value_t *ucontrol, hda_nid_t nid, 102 snd_ctl_elem_value_t *ucontrol, hda_nid_t nid,
103 unsigned int *cur_val); 103 unsigned int *cur_val);
104 104
105 /*
106 * Channel mode helper
107 */
108struct hda_channel_mode {
109 int channels;
110 const struct hda_verb *sequence;
111};
112
113int snd_hda_ch_mode_info(struct hda_codec *codec, snd_ctl_elem_info_t *uinfo,
114 const struct hda_channel_mode *chmode, int num_chmodes);
115int snd_hda_ch_mode_get(struct hda_codec *codec, snd_ctl_elem_value_t *ucontrol,
116 const struct hda_channel_mode *chmode, int num_chmodes,
117 int max_channels);
118int snd_hda_ch_mode_put(struct hda_codec *codec, snd_ctl_elem_value_t *ucontrol,
119 const struct hda_channel_mode *chmode, int num_chmodes,
120 int *max_channelsp);
121
105/* 122/*
106 * Multi-channel / digital-out PCM helper 123 * Multi-channel / digital-out PCM helper
107 */ 124 */