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:
Colin Guthrie 2011-08-10 10:39:57 +02:00
parent 0b5a181e1b
commit 6b1d9b8d6a
2 changed files with 6 additions and 0 deletions

View file

@ -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)