add conditional murphy module loading to default.pa.in 85/4285/1
authorJaska Uimonen <jaska.uimonen@intel.com>
Wed, 26 Jun 2013 13:09:25 +0000 (16:09 +0300)
committerJaska Uimonen <jaska.uimonen@intel.com>
Wed, 26 Jun 2013 16:22:16 +0000 (19:22 +0300)
src/daemon/default.pa.in

index 88b5944..3a83f77 100755 (executable)
@@ -35,15 +35,6 @@ load-sample-dir-lazy %WINDIR%\Media\*.wav
 
 .fail
 
-### Automatically restore the volume of streams and devices
-load-module module-device-restore
-load-module module-stream-restore
-load-module module-card-restore
-
-### Automatically augment property information from .desktop files
-### stored in /usr/share/application
-load-module module-augment-properties
-
 ### Load audio drivers statically
 ### (it's probably better to not load these drivers manually, but instead
 ### use module-udev-detect -- see below -- for doing this automatically)
@@ -139,9 +130,6 @@ load-module module-rescue-streams
 ### Make sure we always have a sink around, even if it is a null sink.
 load-module module-always-sink
 
-### Honour intended role device property
-load-module module-intended-roles
-
 ### Automatically suspend sinks/sources that become idle for too long
 load-module module-suspend-on-idle
 
@@ -195,6 +183,26 @@ ifelse(@HAVE_X11@, 1, [dnl
 
 load-module module-switch-on-port-available
 
+### Load the Murphy IVI module if it exists
+.ifexists module-murphy-ivi@PA_SOEXT@
+load-module module-murphy-ivi
+.else
+### Automatically restore the volume of streams and devices
+load-module module-device-restore
+load-module module-stream-restore
+load-module module-card-restore
+
+### Automatically augment property information from .desktop files
+### stored in /usr/share/application
+.ifexist module-augment-properties@PA_SOEXT@
+load-module module-augment-properties
+.endif
+
+### Honour intended role device property
+load-module module-intended-roles
+
+.endif
+
 ### Make some devices default
 #set-default-sink output
 #set-default-source input