ASoC: da7219: Fix HP detection procedure for all MCLK frequencies
commit2a0c2189d8170d52da64543cbf955f0908c15e70
authorAdam Thomson <Adam.Thomson.Opensource@diasemi.com>
Mon, 19 Jun 2017 09:56:33 +0000 (19 10:56 +0100)
committerMark Brown <broonie@kernel.org>
Mon, 19 Jun 2017 15:39:15 +0000 (19 16:39 +0100)
treebc4dbaf82523eaa0f01a92f74f3e41eac04fe7b3
parent2ea659a9ef488125eb46da6eb571de5eae5c43f6
ASoC: da7219: Fix HP detection procedure for all MCLK frequencies

Currently when HP detection procedure runs for certain MCLK
frequencies, when PLL is bypassed, the procedure will incorrectly
report Lineout instead of Headphones due to timing incosistencies.
To avoid this problem, the PLL is temporarily enabled (if currently
bypassed and MCLK present) to provide consistent timings for the
procedure, regardless of MCLK frequency.

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/codecs/da7219-aad.c
sound/soc/codecs/da7219.c
sound/soc/codecs/da7219.h