Re: [PATCH v2 4/4] ASoC: cs4271: Add support for the external mclk

From: Alexander Sverdlin

Date: Wed Oct 29 2025 - 07:24:49 EST


Hi!

On Wed, 2025-10-29 at 10:39 +0100, Herve Codina wrote:
> 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@xxxxxxxxxxx>
> ---
>  sound/soc/codecs/cs4271.c | 29 ++++++++++++++++++++++++++---
>  1 file changed, 26 insertions(+), 3 deletions(-)

Reviewed-by: Alexander Sverdlin <alexander.sverdlin@xxxxxxxxx>

--
Alexander Sverdlin.