]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: fsl_ssi: Fix TDM slot setup for I2S mode
authorAlexander Shiyan <shc_work@mail.ru>
Tue, 16 Feb 2021 11:42:21 +0000 (14:42 +0300)
committerMark Brown <broonie@kernel.org>
Wed, 10 Mar 2021 12:48:30 +0000 (12:48 +0000)
commit5f524124f83d4b2a7e734634db6c791ef46ec544
treea723cfb2ecfaa9492d3ffe5cc280bcb95d4f717b
parent311168c07d73d90157644375a565bd4daa121b16
ASoC: fsl_ssi: Fix TDM slot setup for I2S mode

When using the driver in I2S TDM mode, the _fsl_ssi_set_dai_fmt()
function rewrites the number of slots previously set by the
fsl_ssi_set_dai_tdm_slot() function to 2 by default.
To fix this, let's use the saved slot count value or, if TDM
is not used and the slot count is not set, proceed as before.

Fixes: 2d0c15853e14 ("ASoC: fsl_ssi: Fix number of words per frame for I2S-slave mode")
Signed-off-by: Alexander Shiyan <shc_work@mail.ru>
Acked-by: Nicolin Chen <nicoleotsuka@gmail.com>
Link: https://lore.kernel.org/r/20210216114221.26635-1-shc_work@mail.ru
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/fsl/fsl_ssi.c