diff options
author | 2024-10-08 14:09:34 +0300 | |
---|---|---|
committer | 2024-10-08 13:28:40 +0100 | |
commit | fdaf2291524c6a220bb051ad1a8d3c99b177b6f1 (patch) | |
tree | 71ebff85259d748380c170eedcef4e7606aa8705 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | ASoC: SOF: ipc4-topology: Use local variables in sof_ipc4_init_output_audio_fmt() (diff) | |
download | wireguard-linux-fdaf2291524c6a220bb051ad1a8d3c99b177b6f1.tar.xz wireguard-linux-fdaf2291524c6a220bb051ad1a8d3c99b177b6f1.zip |
ASoC: SOF: ipc4-topology: Simplify code to deal with process modules without output
Process modules are allowed to have zero outputs, thus zero output formats.
In this case there is no need for complicated if expressions to handle such
cases, we can just use a single if for the number of output formats and
the rest can be simplified.
Signed-off-by: Peter Ujfalusi <peter.ujfalusi@linux.intel.com>
Reviewed-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Reviewed-by: Bard Liao <yung-chuan.liao@linux.intel.com>
Reviewed-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
Link: https://patch.msgid.link/20241008110936.22534-7-peter.ujfalusi@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions