1
0
Fork 0

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>
alistair/sunxi64-5.4-dsi
Kuninori Morimoto 2019-05-13 16:07:52 +09:00 committed by Mark Brown
parent ca58221d22
commit 2371abdc08
No known key found for this signature in database
GPG Key ID: 24D68B725D5487D0
1 changed files with 1 additions and 0 deletions

View File

@ -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;