OSDN Git Service

ASoC: samsung: i2s: Ensure the RCLK rate is properly determined
authorSylwester Nawrocki <s.nawrocki@samsung.com>
Mon, 5 Feb 2018 15:43:56 +0000 (16:43 +0100)
committerMark Brown <broonie@kernel.org>
Mon, 12 Feb 2018 09:36:24 +0000 (09:36 +0000)
commit647d04f8e07afc7c3b7a42b3ee01a8b28db29631
tree8db02a0ee10d2ebc82a81eddd3b184267aed738e
parent4b20f44e41b421be608756c395ccf4fcb1305824
ASoC: samsung: i2s: Ensure the RCLK rate is properly determined

If the RCLK mux clock configuration is specified in DT and no set_sysclk()
callback is used in the sound card driver the sclk_srcrate field will remain
set to 0, leading to an incorrect PSR divider setting.
To fix this the frequency value is retrieved from the CLK_I2S_RCLK_SRC clock,
so the actual RCLK mux selection is taken into account.

Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Acked-by: Krzysztof Kozlowski <krzk@kernel.org>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/samsung/i2s.c