mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-29 05:40:27 -04:00
alsa: only use graph rate when nothing else is fixed
Only fall back to suggest the graph rate when we don't have a forced rate or the card was not already in a format. See #1892
This commit is contained in:
parent
7ef2b27376
commit
68cd9ac738
1 changed files with 2 additions and 1 deletions
|
|
@ -687,7 +687,8 @@ static int add_rate(struct state *state, uint32_t scale, bool all, uint32_t inde
|
|||
spa_pod_builder_push_choice(b, &f[0], SPA_CHOICE_None, 0);
|
||||
choice = (struct spa_pod_choice*)spa_pod_builder_frame(b, &f[0]);
|
||||
|
||||
rate = state->position ? state->position->clock.rate.denom : DEFAULT_RATE;
|
||||
if (rate == 0)
|
||||
rate = state->position ? state->position->clock.rate.denom : DEFAULT_RATE;
|
||||
|
||||
spa_pod_builder_int(b, SPA_CLAMP(rate, min, max) * scale);
|
||||
if (min != max) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue