Repository navigation
ASoC: SOF: ipc4-topology: update pipeline_params in process prepare - #4185
Merged
ranj063 merged 3 commits intoFeb 16, 2023
Merged
Conversation
ranj063
requested review from
ajitkupandey,
bardliao,
dbaluta,
kuanhsuncheng,
kv2019i,
lgirdwood,
plbossart,
ujfalusi and
yaochunhung
as code owners
February 9, 2023 17:24
kv2019i
previously approved these changes
Feb 9, 2023
bardliao
previously approved these changes
Feb 10, 2023
ujfalusi
reviewed
Feb 10, 2023
Member
|
@ranj063 any update ? |
libinyang
reviewed
Feb 14, 2023
Copy the output format only if the returned index is less than the available number of output formats and it is meant for Pin 0. Signed-off-by: Ranjani Sridharan <[email protected]>
…format count Initialize the input format in the base config only if a module has input formats available. Signed-off-by: Ranjani Sridharan <[email protected]>
Some modules may modify the audio format during processing. So, update the pipeline params based on pin 0's output format during process prepare. Signed-off-by: Libin Yang <[email protected]> Signed-off-by: Ranjani Sridharan <[email protected]>
ranj063
force-pushed
the
fix/process_output_params
branch
from
February 14, 2023 18:00
9e23068 to
a6a7837
Compare
plbossart
approved these changes
Feb 14, 2023
plbossart
left a comment
Member
There was a problem hiding this comment.
I can't pretend I fully understand what's behind this PR but the code looks good to me.
bardliao
approved these changes
Feb 15, 2023
libinyang
approved these changes
Feb 15, 2023
Collaborator
Author
|
@ujfalusi could you please take a look at this one? |
Collaborator
Collaborator
|
SOFCI TEST |
ujfalusi
approved these changes
Feb 16, 2023
| sizeof(struct sof_ipc4_audio_format)); | ||
| /* copy Pin 0 output format */ | ||
| if (available_fmt->num_output_formats && ret < available_fmt->num_output_formats && | ||
| !available_fmt->output_pin_fmts[ret].pin_index) |
Collaborator
There was a problem hiding this comment.
nitpick: it would be cleaner to available_fmt->output_pin_fmts[ret].pin_index == 0 as the comment is also telling that we are looking for pin0
Collaborator
Author
There was a problem hiding this comment.
pin_index is a u32, so !available_fmt->output_pin_fmts[ret].pin_index == 0 is doing the same no?
Collaborator
There was a problem hiding this comment.
I know, they do the same thing, I was just saying that in this context !pin_index is not easily translates to the intention of pin_index == 0.
It was a nitpick observation.
aiChaoSONG
approved these changes
Feb 16, 2023
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Some modules may modify the audio format during processing. So, update the pipeline params based on pin 0's output format during process prepare.
Signed-off-by: Libin Yang [email protected]
Signed-off-by: Ranjani Sridharan [email protected]