aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2007-07-23 09:41:34 -0400
committerJaroslav Kysela <perex@perex.cz>2007-10-16 09:57:44 -0400
commitb9ed4f2b68dc47b0c35c1a3ae8ae97c2517d5177 (patch)
treec967e895a8955cf5852d8155185e82316dd0beec /include
parent90fd5ce5f67968d3250eeab9bc1f6822644347ef (diff)
[ALSA] Add helper functions for frequently used callbacks
Added helper functions for frequenty used callbacks: snd_ctl_boolean_mono_info() and snd_ctl_boolean_stereo_info() Signed-off-by: Takashi Iwai <tiwai@suse.de> Signed-off-by: Jaroslav Kysela <perex@suse.cz>
Diffstat (limited to 'include')
-rw-r--r--include/sound/control.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/sound/control.h b/include/sound/control.h
index 72e759f619b1..b26d4633ee2c 100644
--- a/include/sound/control.h
+++ b/include/sound/control.h
@@ -161,4 +161,12 @@ static inline struct snd_ctl_elem_id *snd_ctl_build_ioff(struct snd_ctl_elem_id
161 return dst_id; 161 return dst_id;
162} 162}
163 163
164/*
165 * Frequently used control callbacks
166 */
167int snd_ctl_boolean_mono_info(struct snd_kcontrol *kcontrol,
168 struct snd_ctl_elem_info *uinfo);
169int snd_ctl_boolean_stereo_info(struct snd_kcontrol *kcontrol,
170 struct snd_ctl_elem_info *uinfo);
171
164#endif /* __SOUND_CONTROL_H */ 172#endif /* __SOUND_CONTROL_H */