From: Cezary Rojewski Date: Fri, 4 Apr 2025 09:03:31 +0000 (+0200) Subject: ALSA: hda: Allow for 16 channels configuration X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=e6b9c7f5a32b3bde4e24ee74c0d4f954ce086272;p=users%2Fjedix%2Flinux-maple.git ALSA: hda: Allow for 16 channels configuration As per HDAudio specification, up to 16 channels are supported. Reflect that in the code. Reviewed-by: Amadeusz Sławiński Signed-off-by: Cezary Rojewski Link: https://patch.msgid.link/20250404090337.3564117-3-cezary.rojewski@intel.com Signed-off-by: Mark Brown --- diff --git a/sound/hda/hdac_device.c b/sound/hda/hdac_device.c index 3fbb9793dcfce..0053831eed2de 100644 --- a/sound/hda/hdac_device.c +++ b/sound/hda/hdac_device.c @@ -801,7 +801,7 @@ unsigned int snd_hdac_stream_format(unsigned int channels, unsigned int bits, un if (!rate_bits[i].hz) return 0; - if (channels == 0 || channels > 8) + if (channels == 0 || channels > 16) return 0; val |= channels - 1;