ASoC: SOF: compress: Dynamically allocate pcm params struct
authorDaniel Baluta <daniel.baluta@nxp.com>
Tue, 12 Jul 2022 14:15:28 +0000 (17:15 +0300)
committerMark Brown <broonie@kernel.org>
Tue, 12 Jul 2022 14:22:06 +0000 (15:22 +0100)
commitd5770daef62d2e4d33015089bab392ef867fd35a
treefb548df6707e583fb40aa5f201cb8278a14313df
parent388fe2b8a3a0f597b2680e8f1ef5324e1db76ed2
ASoC: SOF: compress: Dynamically allocate pcm params struct

We need to extend sof_ipc_pcm_parmas with additional data in order
to send compress_params to SOF FW.

The extensions will be done at runtime so we need to dynamically
allocate pcm object of type struct sof_ipc_pcm_params.

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-2-daniel.baluta@oss.nxp.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/sof/compress.c