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

Dhanunjanrao Katta katta.dhanunjanrao at amd.com
Sun Nov 29 23:10:20 PST 2026


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 at amd.com>
---
 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 c412ce49d634..ad28f0dee81c 100644
--- a/sound/soc/xilinx/xlnx_formatter_pcm.c
+++ b/sound/soc/xilinx/xlnx_formatter_pcm.c
@@ -110,7 +110,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




More information about the linux-arm-kernel mailing list