acp: probe max 192 channels

Thr 256 channel probe can cause overflows because we use uint8_t for the
channel count in some places.

Fixes #4669
This commit is contained in:
Wim Taymans 2025-04-28 09:45:04 +02:00
parent 7e4dd9524f
commit 14f48c7a1c

View file

@ -16,7 +16,7 @@ void *_acp_log_data;
struct spa_i18n *acp_i18n;
#define DEFAULT_CHANNELS 256u
#define DEFAULT_CHANNELS 255u
#define DEFAULT_RATE 48000u
#define VOLUME_ACCURACY (PA_VOLUME_NORM/100) /* don't require volume adjustments to be perfectly correct. don't necessarily extend granularity in software unless the differences get greater than this level */