system.pa: load module-device-restore before module-udev-detect
authorTanu Kaskinen <tanuk@iki.fi>
Thu, 27 Oct 2016 14:59:28 +0000 (17:59 +0300)
committerTanu Kaskinen <tanuk@iki.fi>
Tue, 24 Oct 2017 17:05:18 +0000 (20:05 +0300)
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.

src/daemon/system.pa.in

index 06e3f1e..fc5019c 100755 (executable)
 # 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