aboutsummaryrefslogtreecommitdiffstats
path: root/include/sound
diff options
context:
space:
mode:
authorPierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>2019-09-16 16:42:41 -0500
committerMark Brown <broonie@kernel.org>2019-10-07 19:43:40 +0100
commit1466327e8eb3e59ae8e65e5c728055102fe0a60e (patch)
tree1542d4dd786bc62728aedd5c8022ed89193da9bd /include/sound
parentASoC: soc-acpi: add link_mask field (diff)
downloadlinux-dev-1466327e8eb3e59ae8e65e5c728055102fe0a60e.tar.xz
linux-dev-1466327e8eb3e59ae8e65e5c728055102fe0a60e.zip
ASoC: SOF: support alternate list of machines
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>
Diffstat (limited to 'include/sound')
-rw-r--r--include/sound/sof.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/sound/sof.h b/include/sound/sof.h
index 4640566b54fe..479101736ee0 100644
--- a/include/sound/sof.h
+++ b/include/sound/sof.h
@@ -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;