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:
Arun Raghavan 2023-06-23 11:56:33 -04:00 committed by Wim Taymans
parent 5a30d82d7e
commit de2d7a583b

View file

@ -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);