mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-10-31 22:25:33 -04:00
core: save volume/mute changes coming from the hardware automatically
Volume changes coming from the lower layers are most likely changes triggered by the user, so let's save them automatically.
This commit is contained in:
parent
aa7408b54b
commit
51b3899348
6 changed files with 34 additions and 29 deletions
|
|
@ -1165,10 +1165,10 @@ static void sink_input_info_cb(pa_pdispatch *pd, uint32_t command, uint32_t tag
|
|||
pa_cvolume_equal(&volume, &u->sink->virtual_volume))
|
||||
return;
|
||||
|
||||
pa_sink_volume_changed(u->sink, &volume, FALSE);
|
||||
pa_sink_volume_changed(u->sink, &volume);
|
||||
|
||||
if (u->version >= 11)
|
||||
pa_sink_mute_changed(u->sink, mute, FALSE);
|
||||
pa_sink_mute_changed(u->sink, mute);
|
||||
|
||||
return;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue