ASoC: codecs: msm8916-wcd-analog: Drop invalid mclk
authorStephan Gerhold <stephan@gerhold.net>
Tue, 18 Jul 2023 11:40:16 +0000 (13:40 +0200)
committerMark Brown <broonie@kernel.org>
Thu, 20 Jul 2023 12:50:53 +0000 (13:50 +0100)
commit97f29c1a6143762626f4f9bd9fc2f8a2282b9dcd
treef47a87ec76e1aa212b2c7522c4bfda4d9431cc99
parent469c6d9cd1cfb468f01a15f940272504a6b5d083
ASoC: codecs: msm8916-wcd-analog: Drop invalid mclk

The audio codec typically used for the MSM8916 SoC is split into two
parts: the digital codec is part of the SoC, while the analog codec is
part of the PM8916 PMIC.

The analog codec in the PMIC has no direct connection to the mclk of
the SoC (GCC_CODEC_DIGCODEC_CLK). As the name of the clock suggests
this is supplied to the digital part of the codec. During playback it
will use this clock to transmit the audio data via the "CDC PDM" pins
to the PMIC. In this case the analog codec indirectly receives the
clock signal through the digital codec.

GCC_CODEC_DIGCODEC_CLK is already managed by the driver of the digital
part of the codec in the SoC. Having this clock on the analog PMIC part
additionally is redundant and incorrect because the analog codec cannot
receive the clock signal without going through the digital codec.

Cc: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Signed-off-by: Stephan Gerhold <stephan@gerhold.net>
Link: https://lore.kernel.org/r/20230718-pm8916-mclk-v1-4-4b4a58b4240a@gerhold.net
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/msm8916-wcd-analog.c