Re: [PATCH v2] ASoC: wm8962: add .set_tdm_slot callback function

From: Charles Keepax

Date: Wed Jan 28 2026 - 04:25:31 EST


On Wed, Jan 28, 2026 at 10:59:55AM +0800, Shengjiu Wang wrote:
> The slot_width can be different with the params_width(), for example,
> DSP_A mode, slot_width = 32, but data format is S16_LE, if the word
> length is configured to be 16, there is no sound on the right speaker.
>
> So add .set_tdm_slot() callback function to configure the slot_width and
> update the word length according to slot_width in hw_params().
>
> Signed-off-by: Shengjiu Wang <shengjiu.wang@xxxxxxx>
> ---

Reviewed-by: Charles Keepax <ckeepax@xxxxxxxxxxxxxxxxxxxxx>

Thanks,
Charles