diff options
author | Liam Girdwood <lrg@ti.com> | 2011-01-31 21:23:17 +0000 |
---|---|---|
committer | Colin Cross <ccross@android.com> | 2011-06-14 09:06:13 -0700 |
commit | 135c61f8c7f6e14b3c295bc73b26ee8465e4d813 (patch) | |
tree | 725b302878ea87727d5b4eb90d32b70f3c87ff24 /sound/soc/soc-dapm.c | |
parent | 4d8228fa4ceaa4e3ab33e84deac24c15dc33be1e (diff) | |
download | kernel_samsung_espresso10-135c61f8c7f6e14b3c295bc73b26ee8465e4d813.zip kernel_samsung_espresso10-135c61f8c7f6e14b3c295bc73b26ee8465e4d813.tar.gz kernel_samsung_espresso10-135c61f8c7f6e14b3c295bc73b26ee8465e4d813.tar.bz2 |
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 <lrg@ti.com>
Diffstat (limited to 'sound/soc/soc-dapm.c')
-rw-r--r-- | sound/soc/soc-dapm.c | 3 |
1 files changed, 3 insertions, 0 deletions
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) |