summaryrefslogtreecommitdiffstats
path: root/sound/soc/soc-pcm.c
diff options
context:
space:
mode:
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>2019-05-13 09:07:52 +0200
committerMark Brown <broonie@kernel.org>2019-05-13 13:46:15 +0200
commit2371abdc08e491f6f540c3971bdfa8c90f3329fb (patch)
tree291e0aeaf80c0882de57d116566d586780ec505f /sound/soc/soc-pcm.c
parentASoC: soc-pcm: do cpu_dai related operation at same place (diff)
downloadlinux-2371abdc08e491f6f540c3971bdfa8c90f3329fb.tar.xz
linux-2371abdc08e491f6f540c3971bdfa8c90f3329fb.zip
ASoC: soc-pcm: add missing cpu_dai->rate = 0
Codec side is setting codec_dai->rate = 0 when error case at soc_pcm_hw_params(), but there is not such setting for CPU side. This patch adds it. Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/soc-pcm.c')
-rw-r--r--sound/soc/soc-pcm.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sound/soc/soc-pcm.c b/sound/soc/soc-pcm.c
index ad560d9bf06a..2dcc44c73f6c 100644
--- a/sound/soc/soc-pcm.c
+++ b/sound/soc/soc-pcm.c
@@ -1027,6 +1027,7 @@ component_err:
if (cpu_dai->driver->ops->hw_free)
cpu_dai->driver->ops->hw_free(substream, cpu_dai);
+ cpu_dai->rate = 0;
interface_err:
i = rtd->num_codecs;