[PATCH 4/4] ASoC: xlnx: formatter: advertise up to eight channels

From: Dhanunjanrao Katta

Date: Wed Nov 25 2026 - 06:49:25 EST


channels_max is two, so a design synthesised for more than a stereo
stream cannot be used for all of its channels.

The active channel field in the control register is four bits wide,
and hw_params already rejects a request above the channel count it
reads out of the core configuration register. The advertised maximum
only has to cover the widest configuration, so raise it to eight. A
two channel design still refuses more than two.

Signed-off-by: Dhanunjanrao Katta <katta.dhanunjanrao@xxxxxxx>
---
sound/soc/xilinx/xlnx_formatter_pcm.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sound/soc/xilinx/xlnx_formatter_pcm.c b/sound/soc/xilinx/xlnx_formatter_pcm.c
index 57901c9466a0..d64b27a84177 100644
--- a/sound/soc/xilinx/xlnx_formatter_pcm.c
+++ b/sound/soc/xilinx/xlnx_formatter_pcm.c
@@ -109,7 +109,7 @@ static const struct snd_pcm_hardware xlnx_pcm_hardware = {
.formats = SNDRV_PCM_FMTBIT_S8 | SNDRV_PCM_FMTBIT_S16_LE |
SNDRV_PCM_FMTBIT_S24_LE,
.channels_min = 2,
- .channels_max = 2,
+ .channels_max = 8,
.rates = SNDRV_PCM_RATE_8000_192000,
.rate_min = 8000,
.rate_max = 192000,
--
2.34.1