]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
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)
committerStefan Bader <stefan.bader@canonical.com>
Tue, 14 Aug 2018 10:29:24 +0000 (12:29 +0200)
commit1370f9ecdc52ed4384955bdd72c24e2c5af539f6
treef036a1ecfeb6a2207a9fbc640f4f57e253930a51
parent136ed6163550e71d507e22f63baa1aa9a8eaa7d1
ASoC: samsung: i2s: Ensure the RCLK rate is properly determined

BugLink: http://bugs.launchpad.net/bugs/1783418
[ Upstream commit 647d04f8e07afc7c3b7a42b3ee01a8b28db29631 ]

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>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
sound/soc/samsung/i2s.c