diff options
author | Takashi Iwai <tiwai@suse.de> | 2023-07-21 09:16:40 +0200 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2023-07-21 09:37:47 +0200 |
commit | ae07eb9bf23e1a52cdb28222a71eb014131018d8 (patch) | |
tree | 3f36aecc5b779a1a9c2bbd3c669f3b714a7d19da /include/sound | |
parent | ebc1bfebdacab9e7fd77eec2c5dbcef73980ab00 (diff) |
ALSA: vmaster: Add snd_ctl_add_followers() helper
Add a new helper to add multiple vmaster followers in a shot. The
same function was open-coded in various places, and this helper
replaces them.
Link: https://lore.kernel.org/r/20230721071643.3631-2-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'include/sound')
-rw-r--r-- | include/sound/control.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/sound/control.h b/include/sound/control.h index 69d950a34ca3..9a4f4f7138da 100644 --- a/include/sound/control.h +++ b/include/sound/control.h @@ -262,6 +262,9 @@ snd_ctl_add_follower(struct snd_kcontrol *master, struct snd_kcontrol *follower) return _snd_ctl_add_follower(master, follower, 0); } +int snd_ctl_add_followers(struct snd_card *card, struct snd_kcontrol *master, + const char * const *list); + /** * snd_ctl_add_follower_uncached - Add a virtual follower control * @master: vmaster element |