]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit67aa344f797362c0ef3cac272ea85b197ddd9c6f
treeeef0013c2017cbe94d520a49c87428b9a535a5af
parentfd6076456bacae54cfb303f2584f7596f9330765
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