mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-09 21:59:12 -04:00
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
1 changed files with 1 additions and 0 deletions
|
|
@ -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 a new issue