diff options
Diffstat (limited to 'sound/soc/soc-utils.c')
-rw-r--r-- | sound/soc/soc-utils.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/sound/soc/soc-utils.c b/sound/soc/soc-utils.c index 29b211e9c060..5e633659c1b3 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 = { | |||
75 | 75 | ||
76 | static int dummy_dma_open(struct snd_pcm_substream *substream) | 76 | static int dummy_dma_open(struct snd_pcm_substream *substream) |
77 | { | 77 | { |
78 | snd_soc_set_runtime_hwparams(substream, &dummy_dma_hardware); | 78 | struct snd_soc_pcm_runtime *rtd = substream->private_data; |
79 | |||
80 | /* BE's dont need dummy params */ | ||
81 | if (!rtd->dai_link->no_pcm) | ||
82 | snd_soc_set_runtime_hwparams(substream, &dummy_dma_hardware); | ||
79 | 83 | ||
80 | return 0; | 84 | return 0; |
81 | } | 85 | } |