ASoC: SOF: Copy compress parameters into extended data
authorDaniel Baluta <daniel.baluta@nxp.com>
Tue, 12 Jul 2022 14:15:29 +0000 (17:15 +0300)
committerMark Brown <broonie@kernel.org>
Tue, 12 Jul 2022 14:22:07 +0000 (15:22 +0100)
commit3f70c360d484466da7420f395d4675ca02436e32
tree2ad6d8938e3fbac6fe6e55be2b8d023409b72195
parentd5770daef62d2e4d33015089bab392ef867fd35a
ASoC: SOF: Copy compress parameters into extended data

Allocate memory at the end of sof_ipc_stream_params to store
snd_compr_params in order to be sent them to SOF firmware.

This will help firmware correctly configure codecs parameters.

Notice, that we use 2 bytes from the reserved pool in order to store
the extended data length. This is compatible with older FWs where
there was no extended data.

Signed-off-by: Daniel Baluta <daniel.baluta@nxp.com>
Reviewed-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/20220712141531.14599-3-daniel.baluta@oss.nxp.com
Signed-off-by: Mark Brown <broonie@kernel.org>
include/sound/sof/stream.h
sound/soc/sof/compress.c