sink, source: Don't force refresh while saving volume for passthrough

There's no reason to go to the h/w to refresh the volume when we are
just saving the value for restoration later.
This commit is contained in:
Arun Raghavan 2022-01-12 13:22:39 -05:00
parent b550fa5628
commit 6afdebb55f
2 changed files with 2 additions and 2 deletions

View file

@ -1545,7 +1545,7 @@ int pa_sink_reconfigure(pa_sink *s, pa_sample_spec *spec, pa_channel_map *map, b
s->saved_map = s->channel_map;
/* Save the volume, we're going to reset it to NORM while in passthrough */
s->saved_volume = *pa_sink_get_volume(s, true);
s->saved_volume = *pa_sink_get_volume(s, false);
s->saved_save_volume = s->save_volume;
}

View file

@ -1108,7 +1108,7 @@ int pa_source_reconfigure(pa_source *s, pa_sample_spec *spec, pa_channel_map *ma
s->saved_map = s->channel_map;
/* Save the volume, we're going to reset it to NORM while in passthrough */
s->saved_volume = *pa_source_get_volume(s, true);
s->saved_volume = *pa_source_get_volume(s, false);
s->saved_save_volume = s->save_volume;
}