ASoC: samsung: i2s: Fix rclk_srcrate handling
authorSylwester Nawrocki <s.nawrocki@samsung.com>
Fri, 9 Mar 2018 17:48:55 +0000 (18:48 +0100)
committerJunghoon Kim <jhoon20.kim@samsung.com>
Thu, 14 Feb 2019 05:57:43 +0000 (14:57 +0900)
commit003e8dd60b99711dcf3068cf152664418633f626
treebe1fa6d6d993eca4b9ea7f2d140379b3083e12e7
parent720152425a739b2d4dd0512ed4294d4f09ab6453
ASoC: samsung: i2s: Fix rclk_srcrate handling

As the RCLK clock may be updated through the common clk API before each
snd_soc_dai_ops::trigger call, it is not enough to update i2s->rclk_srcrate
only once after it has been initially set to 0. To avoid wrong PSR values
we always get RCLK frequency from the CLK_I2S_RCLK_SRC clock, when that
clock is available.

Fixes: e1417fdf3011 "ASoC: samsung: i2s: Ensure the RCLK rate is properly determined"
Change-Id: I81065cf4e7da3c159a1f91bb0df626cdc0356c23
Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/samsung/i2s.c