OSDN Git Service

ASoC: Intel: bxt: Move codec sysclk config to codec_init function
authorAdam Thomson <Adam.Thomson.Opensource@diasemi.com>
Mon, 19 Jun 2017 09:56:34 +0000 (10:56 +0100)
committerMark Brown <broonie@kernel.org>
Mon, 19 Jun 2017 15:39:31 +0000 (16:39 +0100)
commitfd0f237572ada2b18fe1e8684ae9fa131b577a17
treeb3f57a732eda5b73865bace12ac8b59a60a93cc5
parent2ea659a9ef488125eb46da6eb571de5eae5c43f6
ASoC: Intel: bxt: Move codec sysclk config to codec_init function

The MCLK for DA7219 does not change in this platform, but is
currently being configured everytime as part of the platform_clock
event handler for DAPM. The upshot of this is that we have
unnecessary calls to this function, and it also means that if
a stream hasn't yet been started, DA7219 driver does not have the
correct MCLK rates programmed and so the HP detection feature does
not operate as expected.

This patch rectifies this issue by moving the sysclk call to
codec_init function so it's only called once at initialisation.

Signed-off-by: Adam Thomson <Adam.Thomson.Opensource@diasemi.com>
Acked-by: Sathyanarayana Nujella <sathyanarayana.nujella@intel.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/intel/boards/bxt_da7219_max98357a.c