ASoC: SOF: Intel: override mclk_id for ES8336 support
authorMark Brown <broonie@kernel.org>
Tue, 20 Sep 2022 11:25:56 +0000 (12:25 +0100)
committerMark Brown <broonie@kernel.org>
Tue, 20 Sep 2022 11:25:56 +0000 (12:25 +0100)
commit3c193b5f530e32dfb4aeb845678ed30aa60b67c1
tree3b02a26bdcb4476949129e7ea0c26e5c95655033
parent78091edc1c7806846049e1d480f6a8051507ed94
parentd9252772cdc811beedabbcf21ef856d09b87d1dd
ASoC: SOF: Intel: override mclk_id for ES8336 support

Merge series from Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>:

This patchset solves a known issue with ES8336 platforms wrt MCLK
selection. Most of the devices use the MCLK0 signal, but some devices
do use the MCLK1 signal.

The MCLK is defined in the topology, it would be a nightmare to
generate more topology files just for one MCLK difference. With a
minor extension to the intel-nhlt library, the MCLK information can be
found by parsing the NHLT table, and we can override the mclk_id at
boot time.

The only known issues for this platform remain the detection of GPIO
and microphone connections, currently only possible with manual
quirks.

Thanks to Eugene J. Markow for testing this patchset.
sound/soc/sof/intel/hda.c
sound/soc/sof/intel/mtl.c