https://github.com/CM-CHT/android_kernel_intel_cherrytrail/commits/cht-m1stable-2016_ww31/sound/soc/intel/board?after=ec5ffb5cb361199c32e82c66914f067580afb8a3+34 may be useful.
baytrailaudio Intel MID Audio Jack input: baytrailaudio Intel MID Audio Jack as /devices/platform/AMCR0F28:00/sound/card1/input6
Headset jack detection is doesn't work for me too, Linux 4.12.2 was tested on on HP Stream 7, Lenovo Miix2 8 and DEXP Ursus 10XW.
yeah, the jack detection was never ported completely from Android. Again too many quirks to test. There was a PR on github but it's too obsolete. see https://github.com/plbossart/sound/pull/1
https://github.com/me176c-dev/kernel_asus_me176c/commit/c6d90d9c975a36c1847a7eec10d2b3823c5cf7b4
(In reply to youling257 from comment #4) > https://github.com/me176c-dev/kernel_asus_me176c/commit/ > c6d90d9c975a36c1847a7eec10d2b3823c5cf7b4 There are two quirks for the jack detection (codec or SOC-based), the code you mentioned probably doesn't scale to all platforms.
> jack detection was never ported completely from Android. Again too many > quirks to test. If it will be useful, I can perform quirks testing on Lenovo Miix2 8, HP Stream 7, DEXP devices and Ployer MOMO7W. As far I know, many device owners are willing to help with testing.
https://github.com/jwrdegoede/linux-sunxi/commit/f43d1a4a3c06e4b9e6f80bd87e015c51fe36b5f5 I test this patch,Jack detect not work with bytcr z3735f.
@youling257 this code is work in progress. It's not finished and not ready for testing.
I have Prestigio MultiPad Visconte V (pmp1012te). How can I help you?
Thank you for you help offer. The code to support jack-detect has been finished and is queued up for merging into the 4.18 kernel, closing.