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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 29 Oct 2020 09:08:28 +0000 (10:08 +0100)
commit85f1ad8c8644a28082600b71315208a8f0937dab
tree5a7c7813c60cb6e546e8320626810880c7fe3876
parent54e4b6262ca793e3741df127b67162f024f64e8e
ASoC: SOF: Add topology filename override based on dmi data match

[ Upstream commit 5253a73d567dcd75e62834ff5f502ea9470e5722 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
sound/soc/sof/intel/hda.c
sound/soc/sof/sof-pci-dev.c