Re: [PATCH v3 2/2] ASoC: ti: omap-mcbsp: Implement set_tdm_slot
From: Joseph Telaak
Date: Tue Dec 01 2026 - 17:34:01 EST
Hi Jarkko,
On 12/1/26, Jarkko Nikula wrote:
> I think more cleaner would be to store clk_id in
> omap_mcbsp_dai_set_dai_sysclk() as omap1 is already validated there and
> no need to check these register bits here.
OK, in v4 I will store clk_id and check the fclk rate only for
OMAP_MCBSP_SYSCLK_CLKS_FCLK, which drops the OMAP1 test too.
> Is CLKXM | CLKRM test needed? Those should be set when the mcbsp->fmt
> has SND_SOC_DAIFMT_BP_FP?
set_dai_fmt() sets them, but set_dai_sysclk() with
OMAP_MCBSP_SYSCLK_CLKX_EXT or OMAP_MCBSP_SYSCLK_CLKR_EXT clears CLKXM or
CLKRM again to take the reference clock in on that pin. That direction's
bit clock is then the pin's clock rather than the divided SRG output, so
the slots can't size its frame. With clk_id stored, v4 will check for
those two IDs instead of the bits.
Thanks,
Joseph