ASoC: SOF: Intel: discard SoundWire configuration if HDaudio codec is reported
authorPierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Fri, 3 May 2024 13:32:51 +0000 (08:32 -0500)
committerMark Brown <broonie@kernel.org>
Sun, 5 May 2024 14:45:35 +0000 (23:45 +0900)
commit5a7543d0ca01d68d992f480d151efd693807e0ce
treed9fc6bf967062c5509d69bc89490b10857fee07a
parent9723cab054d59d770cd1927f92fe315c26cc6a78
ASoC: SOF: Intel: discard SoundWire configuration if HDaudio codec is reported

The machine driver and topology selection starts with I2S, then
SoundWire and last uses HDaudio as a fallback. That assumes that the
ACPI information is correct but there are of course exceptions to the
rule.

On a Lenovo platform, an external HDaudio codec is detected, but the
ACPI tables expose TWO RT711 jack codecs. This patch skips the
SoundWire selection in case an external HDaudio codec is detected -
which only works with the additional assumption that no one will mix
HDaudio and SoundWire.

Closes: https://github.com/thesofproject/linux/issues/4962
Reviewed-by: Bard Liao <yung-chuan.liao@linux.intel.com>
Reviewed-by: Péter Ujfalusi <peter.ujfalusi@linux.intel.com>
Reviewed-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>
Reviewed-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Link: https://lore.kernel.org/r/20240503133253.108201-2-pierre-louis.bossart@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/sof/intel/hda.c
sound/soc/sof/intel/hda.h