linux-sg2042/sound/soc/xilinx
Robert Hancock c47aef899c
ASoC: xilinx: xlnx_i2s: Handle sysclk setting
This driver previously only handled the set_clkdiv divider callback when
setting the SCLK Out Divider field in the I2S Timing Control register.
However, when using the simple-audio-card driver, the set_sysclk function
is called but not set_clkdiv. This caused the divider not to be set,
leaving it at an invalid value of 0 and resulting in a very low SCLK
output rate.

Handle set_clkdiv and store the sysclk (MCLK) value for later use in
hw_params to set the SCLK Out Divider such that:
MCLK/SCLK = divider * 2

Signed-off-by: Robert Hancock <robert.hancock@calian.com>
Link: https://lore.kernel.org/r/20220120195832.1742271-4-robert.hancock@calian.com
Signed-off-by: Mark Brown <broonie@kernel.org>
2022-01-24 19:45:38 +00: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-01-24 19:45:35 +00:00
xlnx_i2s.c ASoC: xilinx: xlnx_i2s: Handle sysclk setting 2022-01-24 19:45:38 +00:00
xlnx_spdif.c ASoC: xlnx: Use platform_get_irq() to get the interrupt 2021-12-21 18:05:42 +00:00