mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-29 05:40:27 -04:00
alsa: scale min value back to nominal rate
This commit is contained in:
parent
7057cca05e
commit
903f831b2d
1 changed files with 1 additions and 1 deletions
|
|
@ -797,7 +797,7 @@ static int add_rate(struct state *state, uint32_t scale, uint32_t interleave, bo
|
|||
spa_log_debug(state->log, "min:%u max:%u min-allowed:%u scale:%u interleave:%u all:%d",
|
||||
min, max, min_allowed_rate, scale, interleave, all);
|
||||
|
||||
min = SPA_MAX(min_allowed_rate * scale / interleave, min);
|
||||
min = SPA_MAX(min_allowed_rate * scale / interleave, min) * interleave / scale;
|
||||
max = max * interleave / scale;
|
||||
if (max < min)
|
||||
return 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue