]> git.ipfire.org Git - thirdparty/linux.git/commit
ASoC: SOF: ipc4-topology: set playback channel mask
authorBard Liao <yung-chuan.liao@linux.intel.com>
Mon, 15 Dec 2025 13:07:23 +0000 (15:07 +0200)
committerMark Brown <broonie@kernel.org>
Mon, 15 Dec 2025 14:07:29 +0000 (23:07 +0900)
commitda230e232352750a80c8fc883eac1c87c8849027
tree170cae9f92e967f268a8c6400ede78d9b83ee9dd
parent84085139290a38c5f8a14e5bba60936392c17c7f
ASoC: SOF: ipc4-topology: set playback channel mask

Currently, we send all channels to all amps and copy the channel_mask
to all ALH DMAs in playback. However, the amp may not have the
capability to run any process and SOF may need to split the channels
and send specific data channel to each amp. In that case, we need
to split the channel_mask in ALH DMA.
Copy the channel mask only if the widget channel count is the same
the FE channels for playback, otherwise, split the channels among the
aggregated DAIs. Like what we did in capture.

Signed-off-by: Bard Liao <yung-chuan.liao@linux.intel.com>
Reviewed-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
Reviewed-by: Péter Ujfalusi <peter.ujfalusi@linux.intel.com>
Reviewed-by: Liam Girdwood <liam.r.girdwood@intel.com>
Signed-off-by: Peter Ujfalusi <peter.ujfalusi@linux.intel.com>
Link: https://patch.msgid.link/20251215130723.31081-1-peter.ujfalusi@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/sof/ipc4-topology.c