Skip to content

Commit 3756aa1

Browse files
Olivier Moysanbroonie
authored andcommitted
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: 5ca2ab4 ("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>
1 parent b4f5c6b commit 3756aa1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

sound/soc/generic/simple-card-utils.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,7 @@ void asoc_simple_shutdown(struct snd_pcm_substream *substream)
322322

323323
if (props->mclk_fs && !dai->clk_fixed && !snd_soc_dai_active(cpu_dai))
324324
snd_soc_dai_set_sysclk(cpu_dai,
325-
0, 0, SND_SOC_CLOCK_IN);
325+
0, 0, SND_SOC_CLOCK_OUT);
326326

327327
asoc_simple_clk_disable(dai);
328328
}

0 commit comments

Comments
 (0)