]> Git Repo - linux.git/commitdiff
ASoC: simple-card-utils: fix sysclk shutdown
authorOlivier Moysan <[email protected]>
Tue, 12 Apr 2022 11:16:58 +0000 (13:16 +0200)
committerMark Brown <[email protected]>
Wed, 20 Apr 2022 13:25:11 +0000 (14:25 +0100)
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 <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Mark Brown <[email protected]>
sound/soc/generic/simple-card-utils.c

index f2157944247f783cf8f4809d762201213919d9fe..da0c27828ce60f5f02b92cfdc58a6739408a9406 100644 (file)
@@ -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);
        }
This page took 0.065164 seconds and 4 git commands to generate.