ASoC: stm32: sai: fix master clock management
authorOlivier Moysan <olivier.moysan@st.com>
Wed, 10 Apr 2019 08:08:36 +0000 (10:08 +0200)
committerMark Brown <broonie@kernel.org>
Wed, 10 Apr 2019 11:16:15 +0000 (12:16 +0100)
commite37c2deafe7058cf7989c4c47bbf1140cc867d89
tree5ce535278ecf1bc90cbee48248f529d2c4485083
parentd6ba3f815bc5f3c4249d15c8bc5fbb012651b4a4
ASoC: stm32: sai: fix master clock management

When master clock is used, master clock rate is set exclusively.
Parent clocks of master clock cannot be changed after a call to
clk_set_rate_exclusive(). So the parent clock of SAI kernel clock
must be set before.
Ensure also that exclusive rate operations are balanced
in STM32 SAI driver.

Signed-off-by: Olivier Moysan <olivier.moysan@st.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/stm/stm32_sai_sub.c