diff options
author | Cezary Rojewski <cezary.rojewski@intel.com> | 2025-04-04 11:03:31 +0200 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2025-04-07 15:07:57 +0100 |
commit | e6b9c7f5a32b3bde4e24ee74c0d4f954ce086272 (patch) | |
tree | 54791480b62b3dd8c4c46c6bd441beca4438c300 | |
parent | 83b9ae77f06607d19f7d3dcc6008742051137b27 (diff) |
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>
-rw-r--r-- | sound/hda/hdac_device.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/hda/hdac_device.c b/sound/hda/hdac_device.c index 3fbb9793dcfc..0053831eed2d 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; |