mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-04 13:29:59 -05:00
alsa: Ensure that volumes are written to the h/w at startup.
If the device support SYNC_VOLUMES then we need to do an additional push to get the actual change on to the h/w.
This commit is contained in:
parent
0b5a181e1b
commit
6b1d9b8d6a
2 changed files with 6 additions and 0 deletions
|
|
@ -1935,6 +1935,9 @@ pa_source *pa_alsa_source_new(pa_module *m, pa_modargs *ma, const char*driver, p
|
|||
u->source->get_mute(u->source);
|
||||
}
|
||||
|
||||
if ((data.volume_is_set || data.muted_is_set) && u->source->write_volume)
|
||||
u->source->write_volume(u->source);
|
||||
|
||||
pa_source_put(u->source);
|
||||
|
||||
if (profile_set)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue