X-Git-Url: https://git.karo-electronics.de/?a=blobdiff_plain;f=include%2Fsound%2Fcontrol.h;h=3dc1291f52db78e8f525801f1b79204180e91dbf;hb=ce1d5b23a8d1e19866ab82bdec0dc41fde5273d8;hp=72e759f619b10633526c787287f881b158929884;hpb=60f29b1e1600d89aee5e529acb4b276a6650cb8b;p=mv-sheeva.git diff --git a/include/sound/control.h b/include/sound/control.h index 72e759f619b..3dc1291f52d 100644 --- a/include/sound/control.h +++ b/include/sound/control.h @@ -3,7 +3,7 @@ /* * Header file for control interface - * Copyright (c) by Jaroslav Kysela + * Copyright (c) by Jaroslav Kysela * * * This program is free software; you can redistribute it and/or modify @@ -161,4 +161,19 @@ static inline struct snd_ctl_elem_id *snd_ctl_build_ioff(struct snd_ctl_elem_id return dst_id; } +/* + * Frequently used control callbacks + */ +int snd_ctl_boolean_mono_info(struct snd_kcontrol *kcontrol, + struct snd_ctl_elem_info *uinfo); +int snd_ctl_boolean_stereo_info(struct snd_kcontrol *kcontrol, + struct snd_ctl_elem_info *uinfo); + +/* + * virtual master control + */ +struct snd_kcontrol *snd_ctl_make_virtual_master(char *name, + const unsigned int *tlv); +int snd_ctl_add_slave(struct snd_kcontrol *master, struct snd_kcontrol *slave); + #endif /* __SOUND_CONTROL_H */