This may be a missing piece of platform data in the kernel that would tell it to invert jack detection on this particular board. I will try testing with the functionality added to the kernel in https://github.com/torvalds/linux/commit/4999b0214b05a08b42bbafcb29a0b9c413002d3f which lets you tinker with the platform data at runtime.
This may be a kernel driver bug, and a regression from 4.12. See http:// www.lattepanda. com/topic- p24689. html?sid= 1fa88916eb19dd9 d65e0abd3ecbf62 10#p24689
This may be a missing piece of platform data in the kernel that would tell it to invert jack detection on this particular board. I will try testing with the functionality added to the kernel in https:/ /github. com/torvalds/ linux/commit/ 4999b0214b05a08 b42bbafcb29a0b9 c413002d3f which lets you tinker with the platform data at runtime.