From 135c61f8c7f6e14b3c295bc73b26ee8465e4d813 Mon Sep 17 00:00:00 2001 From: Liam Girdwood Date: Mon, 31 Jan 2011 21:23:17 +0000 Subject: ASoC: dsp - Add ASoC DSP core This adds ASoC core support for internal and external DSPs and represents them to the audio user as a CODEC like device with mixers, muxes and runtime audio route changing. The DSP core allows DSP DAIs to be dynamically re-routed at runtime between the PCM device end (or Frontend - FE) and the physical DAI (Backend - BE) using regular kcontrols (just like a hardware CODEC). The DSP core also deal with DSP FE+BE suspend and resume PM ops. Signed-off-by: Liam Girdwood --- sound/soc/soc-dapm.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'sound/soc/soc-dapm.c') diff --git a/sound/soc/soc-dapm.c b/sound/soc/soc-dapm.c index fff565f..7c298fd 100644 --- a/sound/soc/soc-dapm.c +++ b/sound/soc/soc-dapm.c @@ -2820,6 +2820,9 @@ static void soc_dapm_stream_event(struct snd_soc_dapm_context *dapm, { struct snd_soc_dapm_widget *w; + if (!dapm) + return; + list_for_each_entry(w, &dapm->card->widgets, list) { if (!w->sname || w->dapm != dapm) -- cgit v1.1