]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
ASoC: wm8962: add .set_tdm_slot callback function
authorShengjiu Wang <shengjiu.wang@nxp.com>
Wed, 28 Jan 2026 02:59:55 +0000 (10:59 +0800)
committerMark Brown <broonie@kernel.org>
Wed, 28 Jan 2026 11:22:24 +0000 (11:22 +0000)
commitab3f4f0c7f3aa050cd602cc32830e24ac4aaee97
treea437bef9f47fdf536b87db65fa6a418520bfaf42
parent75ca86026b891c21d656dda38c3e7ae6a848b440
ASoC: wm8962: add .set_tdm_slot callback function

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@nxp.com>
Reviewed-by: Charles Keepax <ckeepax@opensource.cirrus.com>
Link: https://patch.msgid.link/20260128025955.2562331-1-shengjiu.wang@nxp.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/wm8962.c