Hi All,
Now that the kernel patch for the "Int Analog Mic" switch is queued for merging into 4.16, here is a non RFC version of my patch which adds a configuration for Cherry Trail boards which use a rt5645 codec connected to a mono speaker and with an analog mic on IN2N + IN2P.
Compared to the RFC version the line setting the Headphone Volume has been changed to set it to 25 (out of 39) instead of 31 because 31 has been reported to cause a crackling noise on some devices.
The chtrt5645-mono-speaker-analog-mic/HiFi.conf for this is based on the latest version from https://github.com/plbossart/UCM/tree/master/chtrt5645 with all the unused input options removed and some changes made to make the analog mic work.
This has been tested on the following devices:
GPD win GPD pocket Teclast X80 Pro
Regards,
Hans