From 6afdebb55f05652833eda39c609217408ee969e6 Mon Sep 17 00:00:00 2001 From: Arun Raghavan Date: Wed, 12 Jan 2022 13:22:39 -0500 Subject: [PATCH] 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. --- src/pulsecore/sink.c | 2 +- src/pulsecore/source.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pulsecore/sink.c b/src/pulsecore/sink.c index 479e0915c..e6236fb91 100644 --- a/src/pulsecore/sink.c +++ b/src/pulsecore/sink.c @@ -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; } diff --git a/src/pulsecore/source.c b/src/pulsecore/source.c index a5542428d..77a4fe626 100644 --- a/src/pulsecore/source.c +++ b/src/pulsecore/source.c @@ -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; }