ASoC: stm32: i2s: fix 32 bits channel length without mclk
authorOlivier Moysan <olivier.moysan@foss.st.com>
Wed, 17 Nov 2021 10:44:04 +0000 (11:44 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 1 Dec 2021 08:04:47 +0000 (09:04 +0100)
commit63073a015730061084fa1c414f47ed8f03f07237
tree116f9d1e7ab87b111d6c4e7aa80804c4442a6a48
parent008fb838e226ab9aa5f29227d57f092ceab06fb8
ASoC: stm32: i2s: fix 32 bits channel length without mclk

[ Upstream commit 424fe7edbed18d47f7b97f7e1322a6f8969b77ae ]

Fix divider calculation in the case of 32 bits channel
configuration, when no master clock is used.

Fixes: e4e6ec7b127c ("ASoC: stm32: Add I2S driver")

Signed-off-by: Olivier Moysan <olivier.moysan@foss.st.com>
Link: https://lore.kernel.org/r/20211117104404.3832-1-olivier.moysan@foss.st.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
sound/soc/stm/stm32_i2s.c