mirror of
https://gitlab.freedesktop.org/pipewire/pipewire
synced 2024-07-22 18:54:36 +00:00
alsa-plugin: use MIN_BUFFERS for max as well
To get a more reasonable max
This commit is contained in:
parent
5e9246e1f7
commit
32a3913933
|
@ -855,7 +855,7 @@ static int pipewire_set_hw_constraint(snd_pcm_pipewire_t *pw, int rate,
|
|||
min_rate, max_rate)) < 0 ||
|
||||
(err = snd_pcm_ioplug_set_param_minmax(&pw->io, SND_PCM_IOPLUG_HW_BUFFER_BYTES,
|
||||
MIN_BUFFERS*min_period_bytes,
|
||||
MAX_BUFFERS*max_period_bytes)) < 0 ||
|
||||
MIN_BUFFERS*max_period_bytes)) < 0 ||
|
||||
(err = snd_pcm_ioplug_set_param_minmax(&pw->io,
|
||||
SND_PCM_IOPLUG_HW_PERIOD_BYTES,
|
||||
min_period_bytes,
|
||||
|
|
Loading…
Reference in a new issue