mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-29 05:40:27 -04:00
alsa: Actually write out pitch elem value during initial reset
Without this, we were assuming our inital rate of 1.0 was also what was applied to the feedback endpoint, but that was not actually true.
This commit is contained in:
parent
5a30d82d7e
commit
de2d7a583b
1 changed files with 1 additions and 0 deletions
|
|
@ -592,6 +592,7 @@ static int probe_pitch_ctl(struct state *state, const char* device_name)
|
|||
}
|
||||
|
||||
snd_ctl_elem_value_set_integer(state->pitch_elem, 0, 1000000);
|
||||
CHECK(snd_ctl_elem_write(state->ctl, state->pitch_elem), "snd_ctl_elem_write");
|
||||
state->last_rate = 1.0;
|
||||
|
||||
spa_log_info(state->log, "%s: found ctl %s", state->props.device, elem_name);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue