]> www.infradead.org Git - users/jedix/linux-maple.git/commit
ASoC: SOF: ipc4-topology: Add helper function to print the module's in/out audio...
authorPeter Ujfalusi <peter.ujfalusi@linux.intel.com>
Tue, 8 Oct 2024 11:09:36 +0000 (14:09 +0300)
committerMark Brown <broonie@kernel.org>
Tue, 8 Oct 2024 12:28:42 +0000 (13:28 +0100)
commit47701a85af0c0d655e06dd23f6b8761848147450
treed0b29e4def747ef06b91dcc277a9bf5b815834e5
parent22408b8f625d85b5453fde8627aa6dd49f87c281
ASoC: SOF: ipc4-topology: Add helper function to print the module's in/out audio format

Introduce a helper function to print out the audio format(s) used by a
module in a consistent way.

The printed text depends on the module format configuration, taking into
account if they have both input and output support, the format is changed
by the module and the number of formats supported on input/output.

For example, if a module does not change format, there is no point of
printing both in and out format, it is adequate to just state the format
the module is using.

While the function to generate the print is fairly complex (but not too
much), it will create a cleaner experience on the reader side by handling
the filtering of the information and present it in a way that it - I hope -
makes the developer's live a bit more easier when tracking format changes.

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-9-peter.ujfalusi@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/sof/ipc4-topology.c