Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 1 commit into from
Nov 5, 2024

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 <[email protected]>
@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
45 of 47 checks passed
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