]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: Intel: kbl: Move codec sysclk config to codec_init function
authorMac Chiang <mac.chiang@intel.com>
Thu, 31 May 2018 17:18:32 +0000 (01:18 +0800)
committerMark Brown <broonie@kernel.org>
Fri, 1 Jun 2018 10:27:30 +0000 (11:27 +0100)
commitf6725c6bb7b8ad8201a4d39bdf90afd6e46e9444
tree842ad860d7c12924a104b41b8a3ec65fe165ddc4
parente2a039e1f366670f919ec9ba00e74d01eb703114
ASoC: Intel: kbl: Move codec sysclk config to codec_init function

On APL, commit fb4b2a90bc67
("ASoC: Intel: bxt: Move codec sysclk config to codec_init function")
fixed an issue related to jack detection.

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.

The same fix is needed on KBL.

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: Mac Chiang <mac.chiang@intel.com>
Acked-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/intel/boards/kbl_da7219_max98357a.c