• Mac Chiang's avatar
    ASoC: Intel: kbl: Move codec sysclk config to codec_init function · 56c3a953
    Mac Chiang authored
    On APL, commit fd0f2375
    ("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: default avatarMac Chiang <mac.chiang@intel.com>
    Acked-by: default avatarPierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
    Signed-off-by: default avatarMark Brown <broonie@kernel.org>
    56c3a953
kbl_da7219_max98357a.c 15.5 KB