]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
ASoC: cs4271: Add support for the external mclk
authorHerve Codina <herve.codina@bootlin.com>
Wed, 29 Oct 2025 09:39:20 +0000 (10:39 +0100)
committerMark Brown <broonie@kernel.org>
Wed, 29 Oct 2025 20:13:26 +0000 (20:13 +0000)
commitcf6bf51b53252284bafc7377a4d8dbf10f048b4d
treec28486f85a0b6db19f70f60622acefc3376677ee
parent3cd523ba270665861647304aa30500f238ebf26e
ASoC: cs4271: Add support for the external mclk

The mclk (master clock) of the cs4271 codec can be an input clock.

In this case the connected clock needs to be enabled outside of any
audio stream. Indeed, this clock is needed for i2c communication.

Add support of this clock and enable it before the first i2c transfer.

Signed-off-by: Herve Codina <herve.codina@bootlin.com>
Reviewed-by: Alexander Sverdlin <alexander.sverdlin@gmail.com>
Link: https://patch.msgid.link/20251029093921.624088-5-herve.codina@bootlin.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/cs4271.c