On 12/2/23 06:39, Hans de Goede wrote:
Hi All,
This takes some of the work done to auto-configure quirks/routing for ESS83xx codecs by getting the info from ACPI from: https://github.com/thesofproject/linux/pull/4112
And then builds on top of this to add auto-configuration to the bytcht_es8316 board driver.
Changes in v2:
- Move es83xx-dsm-common.c back to sound/soc/codecs like the original version from: https://github.com/thesofproject/linux/pull/4112/
Note compared to the pull-request, which deals with the ES8336, this series deals with the ES8316 (for which I have several devices to test on) and this moves handling of the _DSM from the codec driver to the board driver since with the ES8316 the board driver takes care of setting up various routes for things like the mic and speakers.
After this series audio now works properly on a CHT Chuwi Hi12 tablet without needing to add an extra quirk for that model.
This has also been tested on the following devices, where things are unchanged from before (the ACPI autoconfiguration gives the same results as the old defaults) :
Onda V80 plus (CHT) GP-electronic T701 (BYT)
I also tested this on a Nanote UMPC-01, here the _DSM result for PLATFORM_SPK_TYPE_ARG wrongly returns 1 (mono) while the device actually has 2 speakers, so this model needs to keep its DMI quirk.
I don't have an IRBIS NB41 nor a TECLAST X98 Plus II, so the DMI quirks for those are left in place too on a better safe then sorry basis.
Thanks Hans!
Reviewed-by: Pierre-Louis Bossart pierre-louis.bossart@linux.intel.com