Hans de Goede ee68096826
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>
2018-03-07 12:55:29 +00:00
..
2017-09-04 18:24:56 +01:00
2017-09-04 14:50:49 +02:00
2017-11-13 15:45:57 +01:00
2017-11-13 15:45:57 +01:00
2017-07-09 18:48:37 -07:00
2015-08-31 16:25:22 +02:00
2017-11-13 15:45:57 +01:00
2017-11-13 15:45:57 +01:00