From: Kuninori Morimoto Date: Mon, 13 May 2019 07:07:52 +0000 (+0900) Subject: ASoC: soc-pcm: add missing cpu_dai->rate = 0 X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=2371abdc08e491f6f540c3971bdfa8c90f3329fb;p=linux.git 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 Signed-off-by: Mark Brown --- diff --git a/sound/soc/soc-pcm.c b/sound/soc/soc-pcm.c index ad560d9bf06a3..2dcc44c73f6c9 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;