aboutsummaryrefslogtreecommitdiffstats
path: root/sound/pci/hda/hda_local.h
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2008-01-10 10:52:42 -0500
committerJaroslav Kysela <perex@perex.cz>2008-01-31 11:29:54 -0500
commit3b0a5f22d4649433a5842ffc7313803292e95718 (patch)
tree02cb156ca8dc6780f8b89fcd08c5794ea94bb42a /sound/pci/hda/hda_local.h
parentab40d4f12cda366ed1f308d2a041480769f9a77e (diff)
[ALSA] Add virtual master control helpers
Added helper functions to implement virtual master volume controls. The virtual master control is a control element that has multiple slave controls. The value of master element is equally added to slave elements. The functions are written for general purpose, but it's put in the HD-audio directory as now, since HD-audio driver is the only user. It should be moved to the common place once after other drivers use vmaster. Signed-off-by: Takashi Iwai <tiwai@suse.de> Signed-off-by: Jaroslav Kysela <perex@perex.cz>
Diffstat (limited to 'sound/pci/hda/hda_local.h')
-rw-r--r--sound/pci/hda/hda_local.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/sound/pci/hda/hda_local.h b/sound/pci/hda/hda_local.h
index 8c56c9cb0d09..e09f41bd6b2a 100644
--- a/sound/pci/hda/hda_local.h
+++ b/sound/pci/hda/hda_local.h
@@ -398,4 +398,11 @@ int snd_hda_check_amp_list_power(struct hda_codec *codec,
398 hda_nid_t nid); 398 hda_nid_t nid);
399#endif /* CONFIG_SND_HDA_POWER_SAVE */ 399#endif /* CONFIG_SND_HDA_POWER_SAVE */
400 400
401/*
402 * virtual master control
403 */
404struct snd_kcontrol *snd_ctl_make_virtual_master(char *name,
405 const unsigned int *tlv);
406int snd_ctl_add_slave(struct snd_kcontrol *master, struct snd_kcontrol *slave);
407
401#endif /* __SOUND_HDA_LOCAL_H */ 408#endif /* __SOUND_HDA_LOCAL_H */