mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/netdev/net.git/
synced 2026-04-18 06:33:43 -04:00
ASoC: SOF: Introduce container struct for SOF firmware
Move the firmware related information under a new struct (sof_firmware) and add it to the high level snd_sof_dev struct. Convert the generic code to use this new container when working with the basefw and for compatibility reasons set the old plat_data members used by the platforms. Signed-off-by: Peter Ujfalusi <peter.ujfalusi@linux.intel.com> Reviewed-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com> Reviewed-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com> Reviewed-by: Chao Song <chao.song@intel.com> Reviewed-by: Kai Vehmanen <kai.vehmanen@linux.intel.com> Link: https://lore.kernel.org/r/20221020121238.18339-3-peter.ujfalusi@linux.intel.com Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
committed by
Mark Brown
parent
9b9db0d69b
commit
4f373ccf22
@@ -136,6 +136,17 @@ struct snd_sof_platform_stream_params {
|
||||
bool cont_update_posn;
|
||||
};
|
||||
|
||||
/**
|
||||
* struct sof_firmware - Container struct for SOF firmware
|
||||
* @fw: Pointer to the firmware
|
||||
* @payload_offset: Offset of the data within the loaded firmware image to be
|
||||
* loaded to the DSP (skipping for example ext_manifest section)
|
||||
*/
|
||||
struct sof_firmware {
|
||||
const struct firmware *fw;
|
||||
u32 payload_offset;
|
||||
};
|
||||
|
||||
/*
|
||||
* SOF DSP HW abstraction operations.
|
||||
* Used to abstract DSP HW architecture and any IO busses between host CPU
|
||||
@@ -487,6 +498,9 @@ struct snd_sof_dev {
|
||||
spinlock_t ipc_lock; /* lock for IPC users */
|
||||
spinlock_t hw_lock; /* lock for HW IO access */
|
||||
|
||||
/* Main, Base firmware image */
|
||||
struct sof_firmware basefw;
|
||||
|
||||
/*
|
||||
* ASoC components. plat_drv fields are set dynamically so
|
||||
* can't use const
|
||||
|
||||
Reference in New Issue
Block a user