Skip to contentSkip to conversation

ASoC multi-component support : DAPM

RFC In review Liam Girdwood 1 participant 1 message Jun 24, 2010

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

RFC 2/5 ASoC multi-component support : DAPM

This patch adds DAPM support for ASoC multi-component and removes struct snd_soc_socdev from DAPM core. All DAPM calls are now made on a card, codec or runtime PCM level basis rather than using snd_soc_socdev.

Also added void snd_soc_dapm_shutdown() to shutdown all CODECs in a card.

---
 include/sound/soc-dapm.h |    8 ++--
 sound/soc/soc-dapm.c     |   82 +++++++++++++++++++++++-----------------------
 2 files changed, 45 insertions(+), 45 deletions(-)
include/sound/soc-dapm.h +4 -4
index c5d9987..c4a4456 100644
@@ -322,14 +322,14 @@ int snd_soc_dapm_new_controls(struct snd_soc_codec *codec,
 
 /* dapm path setup */
 int snd_soc_dapm_new_widgets(struct snd_soc_codec *codec);
-void snd_soc_dapm_free(struct snd_soc_device *socdev);
+void snd_soc_dapm_free(struct snd_soc_codec *codec);
 int snd_soc_dapm_add_routes(struct snd_soc_codec *codec,
 			    const struct snd_soc_dapm_route *route, int num);
 
 /* dapm events */
-int snd_soc_dapm_stream_event(struct snd_soc_codec *codec, char *stream,
-	int event);
-void snd_soc_dapm_shutdown(struct snd_soc_device *socdev);
+int snd_soc_dapm_stream_event(struct snd_soc_pcm_runtime *rtd,
+	const char *stream, int event);
+void snd_soc_dapm_shutdown(struct snd_soc_card *card);
 
 /* dapm sys fs - used by the core */
 int snd_soc_dapm_sys_add(struct device *dev);
sound/soc/soc-dapm.c +41 -41

197 lines not on this page · raw message

Signature · 1 line
1.7.0.4