Skip to content

ipc4: helper: fix stream params frame format update#9638

Merged
lgirdwood merged 1 commit intothesofproject:mainfrom
iganakov:iganakov/fix_frame_fmt
Nov 5, 2024
Merged

ipc4: helper: fix stream params frame format update#9638
lgirdwood merged 1 commit intothesofproject:mainfrom
iganakov:iganakov/fix_frame_fmt

Conversation

@iganakov
Copy link
Contributor

@iganakov iganakov commented Nov 4, 2024

Fix ipc4_base_module_cfg_to_stream_params() which uses valid bit depth value from IPC4 base module config instead of container size (depth) to set frame_fmt.

Copy link
Collaborator

@kv2019i kv2019i left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch!

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 <ievgen.ganakov@intel.com>
@iganakov iganakov force-pushed the iganakov/fix_frame_fmt branch from c365ad0 to e1b8d23 Compare November 5, 2024 10:39
@lgirdwood lgirdwood merged commit c019576 into thesofproject:main Nov 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants