WSL2-Linux-Kernel/sound/soc/xilinx
Robert Hancock bb0a0e23dd ASoC: xilinx: xlnx_formatter_pcm: Handle sysclk setting
[ Upstream commit 1c5091fbe7 ]

This driver did not set the MM2S Fs Multiplier Register to the proper
value for playback streams. This needs to be set to the sample rate to
MCLK multiplier, or random stream underflows can occur on the downstream
I2S transmitter.

Store the sysclk value provided via the set_sysclk callback and use that
in conjunction with the sample rate in the hw_params callback to calculate
the proper value to set for this register.

Fixes: 6f6c3c36f0 ("ASoC: xlnx: add pcm formatter platform driver")
Signed-off-by: Robert Hancock <robert.hancock@calian.com>
Link: https://lore.kernel.org/r/20220120195832.1742271-2-robert.hancock@calian.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2022-04-08 14:23:13 +02:00
..
Kconfig sound: remove duplicate "the the" phrase in Kconfig text 2020-08-18 14:52:43 +01:00
Makefile treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
xlnx_formatter_pcm.c ASoC: xilinx: xlnx_formatter_pcm: Handle sysclk setting 2022-04-08 14:23:13 +02:00
xlnx_i2s.c ASoC: xlnx: use devm_platform_ioremap_resource() to simplify code 2019-07-31 12:08:43 +01:00
xlnx_spdif.c ASoC: xlnx: use devm_platform_ioremap_resource() to simplify code 2019-07-31 12:08:43 +01:00