Skip to content

Commit

Permalink
ipc4: helper: fix stream params frame format update
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
iganakov committed Nov 5, 2024
1 parent c041966 commit e1b8d23
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ipc/ipc4/helper.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit e1b8d23

Please sign in to comment.