ASoC: Intel: Skylake: Add alternative topology binary name
authorMateusz Gorski <mateusz.gorski@linux.intel.com>
Mon, 27 Apr 2020 13:27:25 +0000 (15:27 +0200)
committerMark Brown <broonie@kernel.org>
Mon, 27 Apr 2020 15:02:24 +0000 (16:02 +0100)
commit1b290ef023b3eeb4f4688b582fecb773915ef937
treecfc52dcc52af934917ec3580c71481f9fc5b749b
parent77060f4f71dfb08309f461766d2e7453ce68aa76
ASoC: Intel: Skylake: Add alternative topology binary name

Add alternative topology binary file name based on used machine driver
and fallback to use this name after failed attempt to load topology file
with name based on NHLT.
This change addresses multiple issues with current mechanism, for
example - there are devices without NHLT table, and that currently
results in tplg_name being empty.

Signed-off-by: Mateusz Gorski <mateusz.gorski@linux.intel.com>
Reviewed-by: Cezary Rojewski <cezary.rojewski@intel.com>
Reviewed-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Link: https://lore.kernel.org/r/20200427132727.24942-2-mateusz.gorski@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/intel/skylake/skl-topology.c