audio: don't use SPA_AUDIO_MAX_CHANNELS in some places

When we know the max size of the array, just use this instead of the
SPA_AUDIO_MAX_CHANNELS constant.
This commit is contained in:
Wim Taymans 2025-10-20 15:28:51 +02:00
parent c94aff8cae
commit f453b1545d
14 changed files with 22 additions and 18 deletions

View file

@ -175,7 +175,7 @@ static int codec_enum_config(const struct media_codec *codec, uint32_t flags,
a2dp_lc3plus_hr_t conf;
struct spa_pod_frame f[2];
struct spa_pod_choice *choice;
uint32_t position[SPA_AUDIO_MAX_CHANNELS];
uint32_t position[2];
uint32_t i = 0;
if (caps_size < sizeof(conf))