diff options
author | Liam Girdwood <lrg@ti.com> | 2012-02-06 11:05:14 -0500 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2012-02-06 11:17:01 -0500 |
commit | 40f02cd9f21dc2bd2c65713eb986139bb1ea0363 (patch) | |
tree | 1045b72ecc1643931256a4d7b82a5c182f73fabe /include/sound/soc-dapm.h | |
parent | 839e5fadc68f5095e4fc76e8e618cc41affdf3d5 (diff) |
ASoC: dapm: Export mixer|mux_update_power() to public API.
Allow for the operation of custom mixer and mux DAPM widgets that can call
snd_soc_dapm_mixer_update_power() and snd_soc_dapm_mux_update_power() directly
after updating their status. This is useful with complex DAPM Mixer operations
where we need to do additional work in addition to setting a few mixer register
bits.
Signed-off-by: Liam Girdwood <lrg@ti.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'include/sound/soc-dapm.h')
-rw-r--r-- | include/sound/soc-dapm.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/sound/soc-dapm.h b/include/sound/soc-dapm.h index bfa0d3cbbf25..db8435a79a82 100644 --- a/include/sound/soc-dapm.h +++ b/include/sound/soc-dapm.h | |||
@@ -371,6 +371,12 @@ int snd_soc_dapm_stream_event(struct snd_soc_pcm_runtime *rtd, | |||
371 | const char *stream, int event); | 371 | const char *stream, int event); |
372 | void snd_soc_dapm_shutdown(struct snd_soc_card *card); | 372 | void snd_soc_dapm_shutdown(struct snd_soc_card *card); |
373 | 373 | ||
374 | /* external DAPM widget events */ | ||
375 | int snd_soc_dapm_mixer_update_power(struct snd_soc_dapm_widget *widget, | ||
376 | struct snd_kcontrol *kcontrol, int connect); | ||
377 | int snd_soc_dapm_mux_update_power(struct snd_soc_dapm_widget *widget, | ||
378 | struct snd_kcontrol *kcontrol, int mux, struct soc_enum *e); | ||
379 | |||
374 | /* dapm sys fs - used by the core */ | 380 | /* dapm sys fs - used by the core */ |
375 | int snd_soc_dapm_sys_add(struct device *dev); | 381 | int snd_soc_dapm_sys_add(struct device *dev); |
376 | void snd_soc_dapm_debugfs_init(struct snd_soc_dapm_context *dapm, | 382 | void snd_soc_dapm_debugfs_init(struct snd_soc_dapm_context *dapm, |