Re: [PATCH v3 2/3] ASoC: qcom: q6apm-lpass-dais: Add MI2S clock control

From: Mark Brown

Date: Mon Jul 06 2026 - 14:18:58 EST


On Mon, Jul 06, 2026 at 06:50:08PM +0530, Mohammad Rafi Shaik wrote:
> Add support for MI2S clock control within q6apm-lpass DAIs, including
> handling of MCLK, BCLK, and ECLK via the DAI .set_sysclk callback.

> +static int q6i2s_set_sysclk(struct snd_soc_dai *dai, int clk_id, unsigned int freq, int dir)
> +{

> + clk_set_rate(sysclk, freq);
> + ret = clk_prepare_enable(sysclk);
> + if (ret) {
> + dev_err(dai->dev, "Error, Unable to prepare (%d) sysclk\n", clk_id);
> + return ret;
> + }

clk_set_rate() can fail too.

Attachment: signature.asc
Description: PGP signature