diff options
author | Takashi Iwai <tiwai@suse.de> | 2008-02-18 13:03:13 +0100 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2008-04-24 12:00:12 +0200 |
commit | e922b0028fad87de0d262f9fa51f98595d2df258 (patch) | |
tree | 60798c8c6c8494edd20577d3adf85fba8bfbacd4 /include/sound/control.h | |
parent | 4235a31784f59c9be5ff71534743c055091f9735 (diff) | |
download | linux-stable-e922b0028fad87de0d262f9fa51f98595d2df258.tar.gz linux-stable-e922b0028fad87de0d262f9fa51f98595d2df258.tar.bz2 linux-stable-e922b0028fad87de0d262f9fa51f98595d2df258.zip |
[ALSA] Move vmaster code to sound core
Move the codes for virtual master controls to sound core part so that
not only hda-intel drivers can use it.
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'include/sound/control.h')
-rw-r--r-- | include/sound/control.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/sound/control.h b/include/sound/control.h index e79baa63912f..3dc1291f52db 100644 --- a/include/sound/control.h +++ b/include/sound/control.h @@ -169,4 +169,11 @@ int snd_ctl_boolean_mono_info(struct snd_kcontrol *kcontrol, 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 */ |