system.pa: load module-device-restore before module-udev-detect

module-device-restore doesn't restore the state of devices that already
exist during the module loading, so the module has to be loaded early.
This commit is contained in:
Tanu Kaskinen 2016-10-27 17:59:28 +03:00
parent 2c9a2aa01e
commit b35b9641e3

View file

@ -19,6 +19,10 @@
# mode.
changequote(`[', `]')dnl Set up m4 quoting
### Automatically restore the volume of streams and devices
load-module module-device-restore
load-module module-stream-restore
### Automatically load driver modules depending on the hardware available
ifelse(@HAVE_UDEV@, 1, [dnl
.ifexists module-udev-detect@PA_SOEXT@
@ -45,10 +49,6 @@ load-module module-esound-protocol-unix
.endif
load-module module-native-protocol-unix
### Automatically restore the volume of streams and devices
load-module module-stream-restore
load-module module-device-restore
### Automatically restore the default sink/source when changed by the user
### during runtime
### NOTE: This should be loaded as early as possible so that subsequent modules