ASoC: SOF: ipc4-topology: set config_length based on device_count
Subsystems (3)
Peter Ujfalusi
maintainerPATCH 1/1 ASoC: SOF: ipc4-topology: set config_length based on device_count
From: Bard Liao <[email protected]>
Set ipc4_copier->data.gtw_cfg.config_length dynamically based on blob->alh_cfg.device_count to align with the other OS.
--- sound/soc/sof/ipc4-topology.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-)
sound/soc/sof/ipc4-topology.c +5 -1
@@ -598,7 +598,11 @@ static int sof_ipc4_widget_setup_comp_dai(struct snd_sof_widget *swidget) } ipc4_copier->copier_config = (uint32_t *)blob; - ipc4_copier->data.gtw_cfg.config_length =sizeof (*blob) >>2 ; +/* set data.gtw_cfg.config_length based on device_count */ + ipc4_copier->data.gtw_cfg.config_length = (sizeof (blob->gw_attr) + +sizeof (blob->alh_cfg.device_count) + +sizeof (*blob->alh_cfg.mapping) * + blob->alh_cfg.device_count) >>2 ;break ; }case SOF_DAI_INTEL_SSP :
Signature · 1 line
2.43.0
Mark Brown
maintainerQuoted 4 lines · Peter Ujfalusi
Set
ipc4_copier->data.gtw_cfg.config_lengthdynamically based onblob->alh_cfg.device_countto align with the other OS.
Applied to
https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-next
Thanks!
[1/1] ASoC: SOF: ipc4-topology: set config_length based on device_count
commit: e49676a5fc83e5d396f45ce4b90ca9c44736c69a
All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus during the next merge window (or sooner if it is a bug fix), however if problems are discovered then the patch may be dropped or reverted.
You may get further e-mails resulting from automated or manual testing and review of the tree, please engage with people reporting problems and send followup patches addressing any issues that are reported if needed.
If any updates are required or you are submitting further changes they should be sent as incremental updates against current git, existing patches will not be replaced.
Please add any relevant lists and maintainers to the CCs when replying to this mail.
Thanks,
Mark