From c0195761ac3aee9d13aa522613f9d0e34ffb34bb Mon Sep 17 00:00:00 2001 From: Ievgen Ganakov Date: Thu, 31 Oct 2024 13:07:37 +0100 Subject: [PATCH] ipc4: helper: fix stream params frame format update During assignment of ipc4_base_module_cfg, received in Init Instance IPC, to sof_ipc_stream_params valid_bit_depth is used to set frame_fmt instead of container size. It is then applied to buffer format in params/prepare stage. Thus, leads to inconsistency between buffer format and audio stream params provided in IPC. Signed-off-by: Ievgen Ganakov --- src/ipc/ipc4/helper.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ipc/ipc4/helper.c b/src/ipc/ipc4/helper.c index e2932bfef774..eb08414b323f 100644 --- a/src/ipc/ipc4/helper.c +++ b/src/ipc/ipc4/helper.c @@ -1112,7 +1112,7 @@ void ipc4_base_module_cfg_to_stream_params(const struct ipc4_base_module_cfg *ba base_cfg->audio_fmt.valid_bit_depth, &frame_fmt, &valid_fmt, base_cfg->audio_fmt.s_type); - params->frame_fmt = valid_fmt; + params->frame_fmt = frame_fmt; for (i = 0; i < SOF_IPC_MAX_CHANNELS; i++) params->chmap[i] = (base_cfg->audio_fmt.ch_map >> i * 4) & 0xf;