Skip to content

ASoC: SOF: ipc4-topology: Improve the audio format selection logic

Peter Ujfalusi alsa-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest9 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/9ASoC: SOF: ipc4-topology: Handle input/output audio format special casesound/soc/sof/ipc4-topology.c+10 -10 replies
2/9ASoC: SOF: ipc4-topology: Add a helper function for output format selectionsound/soc/sof/ipc4-topology.c+21 -90 replies
3/9ASoC: SOF: ipc4-topology: Move the call to init output formatsound/soc/sof/ipc4-topology.c+23 -60 replies
4/9ASoC: SOF: ipc4-topology: Rename sof_ipc4_init_audio_fmt()sound/soc/sof/ipc4-topology.c+26 -250 replies
5/9ASoC: SOF: ipc4-topology: Handle output format special casesound/soc/sof/ipc4-topology.c+50 -50 replies
6/9ASoC: SOF: ipc4-topology: Add a new helper function to get the valid bitssound/soc/sof/ipc4-topology.c+18 -140 replies
7/9ASoC: SOF: ipc4-topology: Modify the output format selection logicsound/soc/sof/ipc4-topology.c+107 -200 replies
8/9ASoC: SOF: ipc4-topology: New helper to check if all output formats are the samesound/soc/sof/ipc4-topology.c+31 -220 replies
9/9ASoC: SOF: ipc4-topology: Modify input audio format selection logicsound/soc/sof/ipc4-topology.c+32 -1000 replies

Reviews trailers per patch

All 9 patches have a Reviewed-by or Acked-by.

PatchBard LiaoPierre-Louis Bossart
1/9R-b R-b
2/9R-b R-b
3/9R-b R-b
4/9R-b R-b
5/9R-b R-b
6/9R-b R-b
7/9R-b R-b
8/9R-b R-b
9/9R-b R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/9] ASoC: SOF: ipc4-topology: Improve the audio format selection logic

Hi,

Improve the logic to account for the current restrictions in topology while making it extensible for future topology modifications.

The current topology definitions assume that input/output formats come in pairs. For example even if there's only 1 output format for a module, we add 3 output formats to match that of the input format count with the same parameters. This is unnecessary but we have to deal with it until the topologies are modified.

Additionally, choosing the input/output audio format should depend only on the pipeline params or the runtime FE hw_params depending on where the module is in the pipeline.
This PR modifies the logic for selection based on this and removes unnecessary dependencies between the input and output formats.

Regards,
Peter
---
Ranjani Sridharan (9):
ASoC: SOF: ipc4-topology: Handle input/output audio format special
case
ASoC: SOF: ipc4-topology: Add a helper function for output format
selection
ASoC: SOF: ipc4-topology: Move the call to init output format
ASoC: SOF: ipc4-topology: Rename sof_ipc4_init_audio_fmt()
ASoC: SOF: ipc4-topology: Handle output format special case
ASoC: SOF: ipc4-topology: Add a new helper function to get the valid
bits
ASoC: SOF: ipc4-topology: Modify the output format selection logic
ASoC: SOF: ipc4-topology: New helper to check if all output formats
are the same
ASoC: SOF: ipc4-topology: Modify input audio format selection logic

 sound/soc/sof/ipc4-topology.c | 358 ++++++++++++++++++++++------------
 1 file changed, 237 insertions(+), 121 deletions(-)
Signature · 1 line
2.40.1