diff options
author | Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> | 2019-05-13 16:07:52 +0900 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2019-05-13 12:46:15 +0100 |
commit | 2371abdc08e491f6f540c3971bdfa8c90f3329fb (patch) | |
tree | 291e0aeaf80c0882de57d116566d586780ec505f | |
parent | ca58221d2212aff4f41d05b99b1e2ed288b24ccc (diff) | |
download | linux-stable-2371abdc08e491f6f540c3971bdfa8c90f3329fb.tar.gz linux-stable-2371abdc08e491f6f540c3971bdfa8c90f3329fb.tar.bz2 linux-stable-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>
-rw-r--r-- | sound/soc/soc-pcm.c | 1 |
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; |