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>
This commit is contained in:
parent
ca58221d22
commit
2371abdc08
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue