]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 21 Apr 2021 11:13:20 +0000 (13:13 +0200)
commit4640c9ac82624b07e8e325dc489df476d9b39232
tree9b8c86c64cd8d6478ffc34703704b03b459b71ca
parent3eaf50dad6d135c57f5dae2dd78c20c25ccf5dbd
ASoC: fsl_esai: Fix TDM slot setup for I2S mode

[ Upstream commit e7a48c710defa0e0fef54d42b7d9e4ab596e2761 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
sound/soc/fsl/fsl_esai.c