ASoC: SOF: support alternate list of machines
authorPierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Mon, 16 Sep 2019 21:42:41 +0000 (16:42 -0500)
committerMark Brown <broonie@kernel.org>
Mon, 7 Oct 2019 18:43:40 +0000 (19:43 +0100)
For cases where an interface can be pin-muxed, we need to assess at
probe time which configuration should be used. In cases such as
SoundWire, we need to maintain an alternate list of machines and walk
through them when the primary detection based on ACPI _HID fails.

Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Link: https://lore.kernel.org/r/20190916214251.13130-3-pierre-louis.bossart@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
include/sound/sof.h

index 4640566b54fe905d99761a3b1e6130c9932f0cfa..479101736ee063d98647f5cbcd48028e84bdb4cf 100644 (file)
@@ -61,6 +61,9 @@ struct sof_dev_desc {
        /* list of machines using this configuration */
        struct snd_soc_acpi_mach *machines;
 
+       /* alternate list of machines using this configuration */
+       struct snd_soc_acpi_mach *alt_machines;
+
        /* Platform resource indexes in BAR / ACPI resources. */
        /* Must set to -1 if not used - add new items to end */
        int resindex_lpe_base;