]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: fsl_esai: Fix TDM slot setup for I2S mode
authorAlexander Shiyan <shc_work@mail.ru>
Fri, 2 Apr 2021 08:14:05 +0000 (11:14 +0300)
committerMark Brown <broonie@kernel.org>
Fri, 2 Apr 2021 15:24:16 +0000 (16:24 +0100)
commitf3f61614a09c572e7677ea6bdc48a143abe39542
treee82a467fb877dd81d008dddbb66d09dbbe1d535b
parent2f9b1bd47c822d8e200960e0e25b89836ac648ad
ASoC: fsl_esai: Fix TDM slot setup for I2S mode

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

Signed-off-by: Alexander Shiyan <shc_work@mail.ru>
Acked-by: Nicolin Chen <nicoleotsuka@gmail.com>
Link: https://lore.kernel.org/r/20210402081405.9892-1-shc_work@mail.ru
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/fsl/fsl_esai.c