From de2d7a583bc61b51853e168998a6f2f5f13f1338 Mon Sep 17 00:00:00 2001 From: Arun Raghavan Date: Fri, 23 Jun 2023 11:56:33 -0400 Subject: [PATCH] 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. --- spa/plugins/alsa/alsa-pcm.c | 1 + 1 file changed, 1 insertion(+) diff --git a/spa/plugins/alsa/alsa-pcm.c b/spa/plugins/alsa/alsa-pcm.c index f23ff4065..df32700a0 100644 --- a/spa/plugins/alsa/alsa-pcm.c +++ b/spa/plugins/alsa/alsa-pcm.c @@ -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);