diff options
author | Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com> | 2022-04-21 15:19:46 -0500 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2022-04-23 00:16:26 +0100 |
commit | 95fa7a62e164630981c5f10d36c2967004f74237 (patch) | |
tree | d5f62ef510234e8452c2400bf46874910db990a3 /sound/soc/sof/intel/hda.h | |
parent | ASoC: SOF: topology: Check w->sname validity once in sof_connect_dai_widget() (diff) | |
download | linux-dev-95fa7a62e164630981c5f10d36c2967004f74237.tar.xz linux-dev-95fa7a62e164630981c5f10d36c2967004f74237.zip |
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>
Diffstat (limited to 'sound/soc/sof/intel/hda.h')
-rw-r--r-- | sound/soc/sof/intel/hda.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sound/soc/sof/intel/hda.h b/sound/soc/sof/intel/hda.h index 36445482a122..7827ea4fdacb 100644 --- a/sound/soc/sof/intel/hda.h +++ b/sound/soc/sof/intel/hda.h @@ -449,6 +449,9 @@ struct sof_intel_hda_dev { /* FW clock config, 0:HPRO, 1:LPRO */ bool clk_config_lpro; + + /* Intel NHLT information */ + struct nhlt_acpi_table *nhlt; }; static inline struct hdac_bus *sof_to_bus(struct snd_sof_dev *s) |