Skip to content

ASoC: SOF: ipc4-topology: Allow the use of multiple formats for src output#5694

Open
ujfalusi wants to merge 1 commit intothesofproject:topic/sof-devfrom
ujfalusi:peter/sof/pr/src_multiple_out
Open

ASoC: SOF: ipc4-topology: Allow the use of multiple formats for src output#5694
ujfalusi wants to merge 1 commit intothesofproject:topic/sof-devfrom
ujfalusi:peter/sof/pr/src_multiple_out

Conversation

@ujfalusi
Copy link
Collaborator

…utput

The SRC module can only change the rate, it keeps the format and channels intact, but this does not mean the the num_output_formats must be 0: The SRC module can support different formats/channels, we just need to check if the output format lists the correct combination of out rate and the input format/channels.

Change the logic to prioritize the sink_rate of the module as target rate, then the rate of the FE in case of capture or in case of playback check the single rate specified in the output formats.

@ujfalusi ujfalusi requested a review from singalsu March 13, 2026 07:32
@ujfalusi ujfalusi changed the title ASoC: SOF: ipc4-topology: format print update and allow the use of multiple formats for src output ASoC: SOF: ipc4-topology: Allow the use of multiple formats for src output Mar 13, 2026
sof_ipc4_update_resource_usage(sdev, swidget, &src->data.base_config);

out_audio_fmt = &available_fmt->output_pin_fmts[output_fmt_index].audio_fmt;
src->data.sink_rate = out_audio_fmt->sampling_frequency;
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

this is a bogus change.

@ujfalusi ujfalusi force-pushed the peter/sof/pr/src_multiple_out branch from 9f533aa to a8e7689 Compare March 13, 2026 10:23
…utput

The SRC module can only change the rate, it keeps the format and channels
intact, but this does not mean the the num_output_formats must be 0:
The SRC module can support different formats/channels, we just need to
check if the output format lists the correct combination of out rate and
the input format/channels.

Change the logic to prioritize the sink_rate of the module as target rate,
then the rate of the FE in case of capture or in case of playback check the
single rate specified in the output formats.

Signed-off-by: Peter Ujfalusi <peter.ujfalusi@linux.intel.com>
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.

1 participant