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 <amadeuszx.slawinski@linux.intel.com>
Signed-off-by: Cezary Rojewski <cezary.rojewski@intel.com>
Link: https://patch.msgid.link/20250404090337.3564117-3-cezary.rojewski@intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
Cezary Rojewski 2025-04-04 11:03:31 +02:00 committed by Mark Brown
parent 83b9ae77f0
commit e6b9c7f5a3
No known key found for this signature in database
GPG Key ID: 24D68B725D5487D0

View File

@ -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;