ASoC: codecs: rtq9128: Fix TDM enable and DAI format control flow
authorChiYuan Huang <cy_huang@richtek.com>
Fri, 29 Dec 2023 01:46:02 +0000 (09:46 +0800)
committerMark Brown <broonie@kernel.org>
Fri, 5 Jan 2024 15:20:47 +0000 (15:20 +0000)
commit415d10ccef712f3ec73cd880c1fef3eb48601c3a
tree399f1cdab5dc783ef557464fa795b15bd2979323
parent35040410372ca27a33cec8382d42c90b6b6c99f6
ASoC: codecs: rtq9128: Fix TDM enable and DAI format control flow

To enable TDM mode, the current control flow limits the function
calling order should be 'set_tdm_slot->set_dai_fmt'. But not all
platform sound card like as simeple card to follow this design.
To bypass this limit, adjust the DAI format setting in runtime
'hw_param' callback.

Signed-off-by: ChiYuan Huang <cy_huang@richtek.com>
Link: https://msgid.link/r/c4c8df00d8d179b8b5b39a8521de3a85325c57e8.1703813842.git.cy_huang@richtek.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/rtq9128.c