diff options
author | Olivier Moysan <olivier.moysan@foss.st.com> | 2022-04-12 13:16:58 +0200 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2022-04-20 15:25:11 +0200 |
commit | 3756aa16fadaef2873cfbd2659dfa1978a7e1859 (patch) | |
tree | dbd17a9d22f8d603ebfe7fcba1c4b40d8aa33425 /sound/soc | |
parent | ASoC: wm8958: Fix change notifications for DSP controls (diff) | |
download | linux-3756aa16fadaef2873cfbd2659dfa1978a7e1859.tar.xz linux-3756aa16fadaef2873cfbd2659dfa1978a7e1859.zip |
ASoC: simple-card-utils: fix sysclk shutdown
In asoc_simple_shutdown() the snd_soc_dai_set_sysclk() function
is called twice with input direction SND_SOC_CLOCK_IN.
Restore one call with output direction SND_SOC_CLOCK_OUT.
Fixes: 5ca2ab459817 ("ASoC: simple-card-utils: Add new system-clock-fixed flag")
Signed-off-by: Olivier Moysan <olivier.moysan@foss.st.com>
Link: https://lore.kernel.org/r/20220412111658.11015-1-olivier.moysan@foss.st.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc')
-rw-r--r-- | sound/soc/generic/simple-card-utils.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/generic/simple-card-utils.c b/sound/soc/generic/simple-card-utils.c index f2157944247f..da0c27828ce6 100644 --- a/sound/soc/generic/simple-card-utils.c +++ b/sound/soc/generic/simple-card-utils.c @@ -322,7 +322,7 @@ void asoc_simple_shutdown(struct snd_pcm_substream *substream) if (props->mclk_fs && !dai->clk_fixed && !snd_soc_dai_active(cpu_dai)) snd_soc_dai_set_sysclk(cpu_dai, - 0, 0, SND_SOC_CLOCK_IN); + 0, 0, SND_SOC_CLOCK_OUT); asoc_simple_clk_disable(dai); } |