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

Audio: TDFB: Fix firmware crash caused by TDFB sink format set #9131

Conversation

singalsu
Copy link
Collaborator

The code in tdfb_params() was incorrect for a component that can have different number of channels in source and sink. The update of sink format can it worst case crash the successive component in pipeline if the source channels count has changed from the value the component has been initialized for.

The channels count need to be retrieved from input and output pins information in extended IPC4 base config. To get the extension the rimage toml files need to add for TDFB component the line init_config = "1".

The code in tdfb_params() was incorrect for a component that can
have different number of channels in source and sink. The update
of sink format can it worst case crash the successive component
in pipeline if the source channels count has changed from the
value the component has been initialized for.

The channels count need to be retrieved from input and output pins
information in extended IPC4 base config. To get the extension the
rimage toml files need to add for TDFB component the line
init_config = "1".

Signed-off-by: Seppo Ingalsuo <seppo.ingalsuo@linux.intel.com>
@singalsu singalsu marked this pull request as ready for review May 17, 2024 15:38
@singalsu singalsu requested review from ranj063 and lyakh May 20, 2024 15:50
@lgirdwood lgirdwood merged commit 8c71b7e into thesofproject:main May 22, 2024
45 of 48 checks passed
@singalsu singalsu deleted the tdfb_handle_not_same_source_sink_channels_counts branch August 21, 2024 08:02
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.

3 participants