alsa: use the amount of positions we will write

This commit is contained in:
Wim Taymans 2025-10-20 18:09:11 +02:00
parent 13b8c23767
commit 9e7cae13df

View file

@ -643,7 +643,7 @@ static int snd_pcm_pipewire_pause(snd_pcm_ioplug_t * io, int enable)
#define _FORMAT_BE(p, fmt) p ? SPA_AUDIO_FORMAT_UNKNOWN : SPA_AUDIO_FORMAT_ ## fmt ## _OE #define _FORMAT_BE(p, fmt) p ? SPA_AUDIO_FORMAT_UNKNOWN : SPA_AUDIO_FORMAT_ ## fmt ## _OE
#endif #endif
static int set_default_channels(uint32_t channels, uint32_t position[MAX_CHANNELS]) static int set_default_channels(uint32_t channels, uint32_t position[8])
{ {
switch (channels) { switch (channels) {
case 8: case 8: