ASoC: SOF: Intel: hda: enforce exclusion between HDaudio and SoundWire
authorPierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Mon, 26 Jul 2021 18:28:55 +0000 (13:28 -0500)
committerMark Brown <broonie@kernel.org>
Tue, 27 Jul 2021 12:13:05 +0000 (13:13 +0100)
commit61bef9e68dca4316e1fc5fdf5f0c270bdbd65657
tree420e5bff04e064e6380d99f6b792289e09441b59
parent2635c226036c1bf44b86575d0bc721505c8201e3
ASoC: SOF: Intel: hda: enforce exclusion between HDaudio and SoundWire

On some platforms with an external HDaudio codec, the DSDT reports the
presence of SoundWire devices. Pin-mux restrictions and board reworks
usually prevent coexistence between the two types of links, let's
prevent unnecessary operations from starting.

In the case of a single iDISP codec being detected, we still start the
links even if no SoundWire machine configuration was detected, so that
we can double-check what the hardware is and add the missing
configuration if applicable.

Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Reviewed-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
Reviewed-by: Bard Liao <bard.liao@intel.com>
Link: https://lore.kernel.org/r/20210726182855.179943-1-pierre-louis.bossart@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/sof/intel/hda.c