mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-29 05:40:27 -04:00
alsa: use the amount of positions we will write
This commit is contained in:
parent
13b8c23767
commit
9e7cae13df
1 changed files with 1 additions and 1 deletions
|
|
@ -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:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue