]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: da7219: Fix HP detection procedure for all MCLK frequencies
authorAdam Thomson <Adam.Thomson.Opensource@diasemi.com>
Mon, 19 Jun 2017 09:56:33 +0000 (10:56 +0100)
committerMark Brown <broonie@kernel.org>
Mon, 19 Jun 2017 15:39:15 +0000 (16:39 +0100)
commit35298d05381eaa20817c4612c682a05f9bb0199f
treebc4dbaf82523eaa0f01a92f74f3e41eac04fe7b3
parent6a0fa58cdd92da9a8e6fa4e621cabd91974091b3
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