Skip to content

Commit

Permalink
ASoC: core utils: Dont set DMA params for BE substreams
Browse files Browse the repository at this point in the history
BE substreams dont require dummy DMA configs so dont set any.

Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
  • Loading branch information
Liam Girdwood authored and Mark Brown committed Sep 16, 2013
1 parent 56fb742 commit 7f05cc9
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion sound/soc/soc-utils.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 7f05cc9

Please sign in to comment.