mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-01 22:58:50 -04: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
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue