ASoC: SOF: Intel: hda: fixup HDaudio topology name with DMIC number
authorPierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Mon, 12 Aug 2019 16:06:23 +0000 (11:06 -0500)
committerMark Brown <broonie@kernel.org>
Mon, 12 Aug 2019 17:40:54 +0000 (18:40 +0100)
commit68b953aeb50d9206de27d6c216e301f01dfac34d
treeeef0013c2017cbe94d520a49c87428b9a535a5af
parent6fa4e0cae684d268d309d1b1f929d52e3df5649c
ASoC: SOF: Intel: hda: fixup HDaudio topology name with DMIC number

The SOF project maintains 6 topologies for HDaudio (iDisp or
HDaudio+iDisp, no DMIC, 2 DMICs, 4 DMICs). The user is currently
required to manually rename the topology file used in
/lib/firmware/intel/sof-tplg. We can do better to avoid such
renames and use logic to select the relevant file.

The NHLT information can be used to figure out which topology file
should be used.

Alternatively, when NHLT is not present in ACPI tables or is possibly
incorrect, a module parameter can provide that information, e.g. on
Up^2 board with the test DMIC kit.

Tested on Up^2 board and Acer Swift-SF314-55

Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Link: https://lore.kernel.org/r/20190812160623.20821-1-pierre-louis.bossart@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/sof/intel/Kconfig
sound/soc/sof/intel/hda.c