]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit4d454185e1fa7488188a57cd04367b500df85099
treed5f62ef510234e8452c2400bf46874910db990a3
parent049e6d595ab8a28cbcece6c1ffee680ddc9798c4
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