ASoC: SOF: Add topology filename override based on dmi data match
authorSathyanarayana Nujella <sathyanarayana.nujella@intel.com>
Fri, 21 Aug 2020 19:56:00 +0000 (14:56 -0500)
committerMark Brown <broonie@kernel.org>
Mon, 24 Aug 2020 12:41:35 +0000 (13:41 +0100)
commit5253a73d567dcd75e62834ff5f502ea9470e5722
tree252d5e7b79f52da76374f60c17b15e5cd1d59036
parent3e1734b64ce786c54dc98adcfe67941e6011d735
ASoC: SOF: Add topology filename override based on dmi data match

Add topology filename override based on system DMI data matching,
typically to account for a different hardware layout.

In ACPI based systems, the tplg_filename is pre-defined in an ACPI
machine table. When a DMI quirk is detected, the
sof_pdata->tplg_filename is not set with the hard-coded ACPI value,
and instead is set with the DMI-specific filename.

Reviewed-by: Guennadi Liakhovetski <guennadi.liakhovetski@linux.intel.com>
Signed-off-by: Sathyanarayana Nujella <sathyanarayana.nujella@intel.com>
Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Link: https://lore.kernel.org/r/20200821195603.215535-14-pierre-louis.bossart@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/sof/intel/hda.c
sound/soc/sof/sof-pci-dev.c