ASoC: SOF: Intel: hda: simplify NHLT handling
authorPierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Thu, 21 Apr 2022 20:19:46 +0000 (15:19 -0500)
committerMark Brown <broonie@kernel.org>
Fri, 22 Apr 2022 23:16:26 +0000 (00:16 +0100)
commit95fa7a62e164630981c5f10d36c2967004f74237
treed5f62ef510234e8452c2400bf46874910db990a3
parent14bdc7b2f9ea0d3f86beed93079ce40a7ead57ac
ASoC: SOF: Intel: hda: simplify NHLT handling

The existing code does an init/free for each piece of information
needed. We can instead initialize the NHLT table in the .probe() and
free it in the .remove() callback.

Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Reviewed-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
Reviewed-by: Péter Ujfalusi <peter.ujfalusi@linux.intel.com>
Link: https://lore.kernel.org/r/20220421201946.1547041-1-pierre-louis.bossart@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/sof/intel/hda.c
sound/soc/sof/intel/hda.h