ASoC: rt5651: Enable Platform Clock during jack-type detect
authorHans de Goede <hdegoede@redhat.com>
Sun, 4 Mar 2018 14:35:55 +0000 (15:35 +0100)
committerMark Brown <broonie@kernel.org>
Wed, 7 Mar 2018 12:54:00 +0000 (12:54 +0000)
commit4b4a373c0212e084045530e47071374a87a3761e
treef2ab4fd410e24444afa15a08a5fe2a2068d3cc01
parent1b1ad83539a701a6bdcb25dc9160386e71f6016e
ASoC: rt5651: Enable Platform Clock during jack-type detect

When using RCCLK instead of MCLK / PLL1 the OVCD status often gets stuck
at its last value, which breaks jack-type detection.

This commit fixes this by force-enabling the platform clock when doing
jack-type detection.

Tested-by: Carlo Caione <carlo@endlessm.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/rt5651.c