ASoC: Intel: bytcr_rt5640: Configure PLL1 before using it
authorHans de Goede <hdegoede@redhat.com>
Tue, 8 May 2018 15:35:53 +0000 (17:35 +0200)
committerMark Brown <broonie@kernel.org>
Fri, 11 May 2018 02:23:51 +0000 (11:23 +0900)
commitbcd9a325f0b0f407c4559779a94e802977c67274
tree637002ce8976662b13518178e0969e65ecdf1b3e
parentb16188a20f62b4d2f2bc7ede2ca3b15253184352
ASoC: Intel: bytcr_rt5640: Configure PLL1 before using it

When platform_clock_control() first selects PLL1 as sysclk the PLL_CTRL
registers have not been setup yet and we effectively have an invalid clock
configuration until byt_rt5640_aif1_hw_params() gets called.

Add a new byt_rt5640_prepare_and_enable_pll1() helper and use that from
both platform_clock_control() and byt_rt5640_aif1_hw_params() to fix this.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/intel/boards/bytcr_rt5640.c