summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorHans de Goede <hdegoede@redhat.com>2018-03-04 15:35:57 +0100
committerMark Brown <broonie@kernel.org>2018-03-07 12:55:29 +0000
commitee68096826fa16bca2f7bb555b3e0cbbe798d330 (patch)
tree36a661694a93a3dc13e3c98cbd4e66e3252ba7f2 /include
parent0fe9474598890b4bd8a7228c9b1872ed7fe3c2c5 (diff)
ASoC: rt5651: Rewrite jack-type detection
We get the insertion event before the jack is fully inserted at which point the second ring on a TRRS connector may short the 2nd ring and sleeve contacts. Testing has shown that this short-circuit may happen as late as 500ms after the insertion event, but it never lasts longer then 300ms. This commit changes the detection algorithm to require 5 identical OVCD values in a row at 100 ms intervals to fix the jack-type sometimes getting mis-detected. Tested-by: Carlo Caione <carlo@endlessm.com> Signed-off-by: Hans de Goede <hdegoede@redhat.com> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions