]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: xilinx: xlnx_formatter_pcm: Handle sysclk setting
authorRobert Hancock <robert.hancock@calian.com>
Thu, 20 Jan 2022 19:58:27 +0000 (13:58 -0600)
committerMark Brown <broonie@kernel.org>
Mon, 24 Jan 2022 19:45:35 +0000 (19:45 +0000)
commitbbc0d5a50f47e0efea77e7b588f080068ca5f121
tree1e2043a06819faaa3f0b5c6b0d169e33d41ba431
parent6d625e8a9b9018c6c716b8985ae4c00dacb379be
ASoC: xilinx: xlnx_formatter_pcm: Handle sysclk setting

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: a1f2d54dcd72 ("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>
sound/soc/xilinx/xlnx_formatter_pcm.c