From: Liam Girdwood Date: Fri, 13 Sep 2013 17:09:47 +0000 (+0100) Subject: ASoC: core utils: Dont set DMA params for BE substreams X-Git-Tag: upstream/snapshot3+hdmi~3891^2~33^2~40^2~7 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=7f05cc98bd9b10b9a0173f3f5d20c2223fdf7470;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.git ASoC: core utils: Dont set DMA params for BE substreams BE substreams dont require dummy DMA configs so dont set any. Signed-off-by: Liam Girdwood Signed-off-by: Mark Brown --- diff --git a/sound/soc/soc-utils.c b/sound/soc/soc-utils.c index 29b211e..5e63365 100644 --- a/sound/soc/soc-utils.c +++ b/sound/soc/soc-utils.c @@ -75,7 +75,11 @@ static const struct snd_pcm_hardware dummy_dma_hardware = { static int dummy_dma_open(struct snd_pcm_substream *substream) { - snd_soc_set_runtime_hwparams(substream, &dummy_dma_hardware); + struct snd_soc_pcm_runtime *rtd = substream->private_data; + + /* BE's dont need dummy params */ + if (!rtd->dai_link->no_pcm) + snd_soc_set_runtime_hwparams(substream, &dummy_dma_hardware); return 0; }