mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-26 07:00:07 -05:00
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:
parent
b550fa5628
commit
6afdebb55f
2 changed files with 2 additions and 2 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue