diff options
author | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2008-05-13 08:51:19 -0400 |
---|---|---|
committer | Jaroslav Kysela <perex@perex.cz> | 2008-05-19 07:19:18 -0400 |
commit | 4ba1327ab8ce179c40862f3dedb4ebaaa491d737 (patch) | |
tree | 1f521aa3f9fc27f45df48e6316062ae1d882b5f4 /include | |
parent | ca1f30ad6c3f002d1d9b9355a53b8bbf2fe70588 (diff) |
[ALSA] soc - DAPM - Add bulk control registration
Most SoC drivers cut'n'paste a loop iterating over an array to register
their DAPM controls. Provide a function they can call instead.
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Cc: Graeme Gregory <graeme@openmoko.org>
Cc: Frank Mandarino <fmandarino@endrelia.com>
Cc: Jarkko Nikula <jarkko.nikula@nokia.com>
Cc: Richard Purdie <rpurdie@rpsys.net>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
Diffstat (limited to 'include')
-rw-r--r-- | include/sound/soc-dapm.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/sound/soc-dapm.h b/include/sound/soc-dapm.h index 40cc695b69b6..1f30616afe71 100644 --- a/include/sound/soc-dapm.h +++ b/include/sound/soc-dapm.h | |||
@@ -205,6 +205,9 @@ int snd_soc_dapm_put_enum_double(struct snd_kcontrol *kcontrol, | |||
205 | struct snd_ctl_elem_value *ucontrol); | 205 | struct snd_ctl_elem_value *ucontrol); |
206 | int snd_soc_dapm_new_control(struct snd_soc_codec *codec, | 206 | int snd_soc_dapm_new_control(struct snd_soc_codec *codec, |
207 | const struct snd_soc_dapm_widget *widget); | 207 | const struct snd_soc_dapm_widget *widget); |
208 | int snd_soc_dapm_new_controls(struct snd_soc_codec *codec, | ||
209 | const struct snd_soc_dapm_widget *widget, | ||
210 | int num); | ||
208 | 211 | ||
209 | /* dapm path setup */ | 212 | /* dapm path setup */ |
210 | int snd_soc_dapm_connect_input(struct snd_soc_codec *codec, | 213 | int snd_soc_dapm_connect_input(struct snd_soc_codec *codec, |