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-12-04 17:39:55 +00:00
2017-08-10 16:10:50 +01:00
2017-08-10 16:10:50 +01:00
2017-08-10 16:10:50 +01:00
2017-08-10 16:10:50 +01:00
2017-08-10 16:10:50 +01:00
2017-08-10 16:10:50 +01:00
2017-09-07 14:46:34 +01:00
2017-11-02 10:04:46 -07:00
2017-08-10 16:10:50 +01:00
2017-11-02 11:10:55 +01:00
2017-08-10 16:10:50 +01:00
2017-09-01 12:12:21 +01:00
2017-11-02 11:10:55 +01:00
2017-08-10 16:10:50 +01:00
2017-08-10 16:10:50 +01:00
2017-08-10 16:10:50 +01:00
2017-08-10 16:10:50 +01:00
2017-08-10 16:10:50 +01:00
2018-01-24 11:31:25 +00:00
2017-08-10 16:10:50 +01:00
2017-08-10 16:10:50 +01:00
2017-08-10 16:10:50 +01:00
2017-08-10 16:10:50 +01:00
2017-08-10 16:10:50 +01:00
2017-09-20 17:34:35 +01:00
2017-09-20 17:34:35 +01:00
2017-08-10 16:10:50 +01:00
2017-12-04 17:38:49 +00:00
2017-11-27 13:11:21 +00:00
2017-09-01 12:12:29 +01:00
2017-11-27 13:11:43 +00:00
2017-08-10 16:10:50 +01:00
2017-05-19 17:31:34 +01:00
2017-08-18 13:17:48 +01:00
2017-08-10 16:10:50 +01:00
2017-11-27 13:01:07 +00:00
2017-11-27 13:00:36 +00:00
2018-01-12 21:06:38 +00:00
2017-12-04 17:39:17 +00:00
2017-09-01 12:12:32 +01:00
2017-08-10 16:10:50 +01:00
2017-11-02 11:10:55 +01:00
2017-08-10 16:10:50 +01:00
2017-09-06 14:41:32 +01:00
2017-09-01 11:44:43 +01:00
2018-01-16 13:26:35 +00:00
2017-08-10 16:10:50 +01:00
2017-08-10 16:10:50 +01:00
2017-11-27 12:59:49 +00:00
2017-11-09 11:42:26 +00:00
2017-11-27 12:59:28 +00:00
2017-06-19 16:39:15 +01:00
2017-08-10 16:10:50 +01:00
2017-06-19 16:39:15 +01:00
2017-08-10 16:10:50 +01:00
2018-01-22 12:20:46 +00:00
2017-08-10 16:10:50 +01:00
2017-08-18 13:17:48 +01:00
2017-06-13 19:30:53 +01:00
2017-08-10 16:10:50 +01:00
2017-11-02 11:10:55 +01:00
2018-01-18 11:55:56 +00:00
2017-11-02 11:10:55 +01:00
2017-09-19 12:57:32 +01:00
2017-08-10 16:10:50 +01:00
2017-08-18 13:17:48 +01:00
2017-11-02 11:10:55 +01:00
2017-08-10 16:10:50 +01:00
2017-08-10 16:10:50 +01:00
2018-01-18 11:56:24 +00:00
2017-08-17 18:10:34 +01:00
2017-08-10 16:10:50 +01:00
2018-01-18 11:56:24 +00:00
2017-08-17 18:10:34 +01:00
2017-08-10 16:10:50 +01:00
2017-08-10 16:10:50 +01:00
2017-08-18 13:17:48 +01:00
2017-08-10 16:10:50 +01:00
2017-09-19 14:38:53 +01:00
2017-08-10 16:10:50 +01:00
2017-08-10 16:10:50 +01:00
2017-09-01 12:06:23 +01:00
2018-01-22 12:23:45 +00:00
2018-01-22 12:23:45 +00:00
2017-10-13 02:30:56 +01:00
2017-11-27 18:48:11 +00:00
2017-11-27 18:48:22 +00:00
2017-09-25 12:48:14 -07:00
2017-12-04 17:37:57 +00:00
2017-08-10 16:10:50 +01:00
2017-12-04 17:40:08 +00:00
2017-11-30 11:16:19 +00:00
2017-11-16 11:59:52 +00:00
2017-11-16 11:59:52 +00:00
2017-08-10 16:10:50 +01:00
2017-11-16 12:00:38 +00:00
2017-05-14 19:14:10 +09:00
2018-01-18 11:56:05 +00:00
2017-12-04 18:14:49 +00:00
2017-08-10 16:10:50 +01:00
2017-12-06 13:06:04 +00:00
2017-12-06 13:06:04 +00:00
2017-12-07 14:21:25 +00:00
2017-12-06 13:06:04 +00:00
2017-11-08 10:49:57 +00:00
2017-11-27 16:44:41 +00:00
2017-11-08 10:49:57 +00:00
2017-11-08 10:49:57 +00:00
2017-08-10 16:10:50 +01:00
2017-08-10 16:10:50 +01:00
2017-12-21 11:13:26 +00:00
2017-09-01 12:12:55 +01:00
2017-07-18 14:46:20 +01:00
2017-08-10 16:10:50 +01:00
2017-08-10 16:10:50 +01:00
2018-01-18 11:56:11 +00:00
2017-09-13 09:40:30 -07:00
2018-01-18 11:56:11 +00:00
2017-11-07 11:23:36 +01:00
2017-10-21 10:59:02 +01:00
2017-08-10 16:10:50 +01:00
2017-11-02 11:10:55 +01:00
2017-08-10 16:10:50 +01:00
2018-01-18 11:56:11 +00:00
2018-01-04 12:09:12 +00:00
2018-03-07 12:55:29 +00:00
2018-03-07 12:55:29 +00:00
2017-10-18 11:41:05 +01:00
2017-08-10 16:10:50 +01:00
2017-12-14 11:13:33 +00:00
2017-12-14 11:13:33 +00:00
2017-09-01 12:13:03 +01:00
2017-09-01 12:13:03 +01:00
2017-09-28 09:42:37 -07:00
2017-09-28 09:42:37 -07:00
2017-09-01 12:13:03 +01:00
2017-07-19 12:23:44 +01:00
2018-01-18 12:04:47 +00:00
2017-12-04 17:37:30 +00:00
2017-09-01 12:12:26 +01:00
2017-12-04 18:36:07 +00:00
2017-12-04 18:36:07 +00:00
2017-08-10 16:10:50 +01:00
2017-08-10 16:10:50 +01:00
2017-08-10 16:10:50 +01:00
2017-07-17 15:43:55 +01:00
2017-08-10 16:10:50 +01:00
2017-09-20 12:45:19 +01:00
2017-09-01 12:13:10 +01:00
2017-08-10 16:10:50 +01:00
2017-12-12 12:03:22 +00:00
2017-12-12 12:03:22 +00:00
2017-12-06 12:39:50 +00:00
2017-12-06 12:39:50 +00:00
2017-12-01 12:50:10 +00:00
2017-11-30 12:27:05 +00:00
2017-08-31 10:24:01 +01:00
2017-11-08 21:28:01 +00:00
2017-08-10 16:10:50 +01:00
2017-11-02 11:10:55 +01:00
2017-12-07 17:47:18 +00:00
2017-12-01 13:27:43 +00:00
2017-07-17 16:22:25 +01:00
2017-07-17 16:22:25 +01:00
2017-12-13 12:29:14 +00:00
2017-12-13 12:28:55 +00:00
2018-01-16 13:22:48 +00:00
2017-11-08 21:28:15 +00:00
2017-11-27 13:01:38 +00:00
2018-01-09 17:02:42 +00:00
2018-01-05 12:37:41 +00:00
2018-01-25 18:20:26 +00:00
2018-01-25 18:20:26 +00:00
2017-08-10 16:10:50 +01:00
2017-11-02 11:10:55 +01:00
2018-01-16 13:26:08 +00:00
2017-08-10 16:10:50 +01:00
2017-11-27 13:10:47 +00:00
2017-11-27 12:55:41 +00:00
2017-12-22 15:57:40 +00:00
2017-12-04 17:37:08 +00:00
2017-12-04 17:36:55 +00:00
2017-12-04 17:32:31 +00:00
2017-12-04 17:32:13 +00:00
2017-08-02 11:19:16 +01:00
2017-08-23 11:12:17 +01:00
2017-11-03 18:46:40 +00:00
2017-11-08 21:28:23 +00:00
2017-07-17 15:42:14 +01:00
2017-11-27 12:55:58 +00:00
2017-11-08 21:28:27 +00:00
2017-11-02 11:10:55 +01:00
2017-12-04 17:31:56 +00:00
2017-12-04 17:31:13 +00:00
2017-12-04 17:30:47 +00:00
2017-10-18 11:25:15 +01:00
2017-10-18 11:25:15 +01:00
2017-09-19 17:09:35 +01:00
2017-11-02 11:10:55 +01:00
2017-12-08 17:17:35 +00:00
2017-09-01 12:13:19 +01:00