]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
ASoC: SOF: ipc4-topology: Validate the number of in/out formats for src/asrc
authorPeter Ujfalusi <peter.ujfalusi@linux.intel.com>
Tue, 26 May 2026 10:57:47 +0000 (13:57 +0300)
committerMark Brown <broonie@kernel.org>
Tue, 26 May 2026 16:50:15 +0000 (17:50 +0100)
commit21a5adffad463344e9aca6ee697f45a079cb3ef5
tree3763db343d9eea6eb08dda0b54aea438322a9db4
parente7ae89a0c97ce2b68b0983cd01eda67cf373517d
ASoC: SOF: ipc4-topology: Validate the number of in/out formats for src/asrc

SRC and ASRC modules must have at least one input and on one output formats
to be usable.
Do a sanity check during setup type and fail if either the number of input
or output formats are 0.

Signed-off-by: Peter Ujfalusi <peter.ujfalusi@linux.intel.com>
Link: https://patch.msgid.link/20260526105748.26149-2-peter.ujfalusi@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/sof/ipc4-topology.c