]> code.delx.au - pulseaudio/commit
sink/source: Initialize port before fixate hook (fixes volume/mute not saved)
authorDavid Henningsson <david.henningsson@canonical.com>
Fri, 21 Mar 2014 09:19:19 +0000 (10:19 +0100)
committerDavid Henningsson <david.henningsson@canonical.com>
Fri, 28 Mar 2014 09:59:03 +0000 (10:59 +0100)
commite0e6bf687573ea8ee3b6b53f8e44bcb30f4914ec
treefaec384e17375f539ddc7bc600d7da5b6104ca3d
parent633bc529e2643adbcd09a211887e0b788a69e6c2
sink/source: Initialize port before fixate hook (fixes volume/mute not saved)

In case a port has not yet been saved, which is e g often the case
if a sink/source has only one port, reading volume/mute will be done
without port, whereas writing volume/mute will be done with port.

Work around this by setting a default port before the fixate hook,
so module-device-restore can read volume/mute for the correct port.

BugLink: https://bugs.launchpad.net/bugs/1289515
Signed-off-by: David Henningsson <david.henningsson@canonical.com>
src/pulsecore/device-port.c
src/pulsecore/device-port.h
src/pulsecore/sink.c
src/pulsecore/source.c