]> code.delx.au - pulseaudio/commitdiff
hal,udev: deprecate HAL support in favour of udev
authorLennart Poettering <lennart@poettering.net>
Sat, 6 Jun 2009 01:26:55 +0000 (03:26 +0200)
committerLennart Poettering <lennart@poettering.net>
Sat, 6 Jun 2009 01:26:55 +0000 (03:26 +0200)
src/daemon/default.pa.in
src/modules/module-hal-detect.c

index fa0683e10e54e14b171f2254d5b0276c63d25eb7..a35ff8ff480f9e2e108cbc2c4b985567620ca5dd 100755 (executable)
@@ -49,11 +49,11 @@ load-module module-augment-properties
 #load-module module-pipe-sink
 
 ### Automatically load driver modules depending on the hardware available
-.ifexists module-hal-detect@PA_SOEXT@
-load-module module-hal-detect
+.ifexists module-udev-detect@PA_SOEXT@
+load-module module-udev-detect
 .else
 ### Alternatively use the static hardware detection module (for systems that
-### lack HAL support)
+### lack udev support)
 load-module module-detect
 .endif
 
index 9ac8705050226c198ab1668b1c4ac2262e2cf803..658b3e556335589cf73f1fb80003286adac13f75 100644 (file)
@@ -64,6 +64,7 @@ PA_MODULE_USAGE("api=<alsa> "
 #elif defined(HAVE_OSS)
 PA_MODULE_USAGE("api=<oss>");
 #endif
+PA_MODULE_DEPRECATED("Please use module-udev-detect instead of module-hal-detect!");
 
 struct device {
     char *udi, *originating_udi;
@@ -232,7 +233,7 @@ static int hal_device_load_alsa(struct userdata *u, const char *udi, struct devi
         goto fail;
 
     card_name = pa_sprintf_malloc("alsa_card.%s", strip_udi(originating_udi));
-    args = pa_sprintf_malloc("device_id=%u name=%s card_name=%s tsched=%i", card, strip_udi(originating_udi), card_name, (int) u->use_tsched);
+    args = pa_sprintf_malloc("device_id=%u name=\"%s\" card_name=\"%s\" tsched=%i card_properties=\"module-hal-detect.discovered=1\"", card, strip_udi(originating_udi), card_name, (int) u->use_tsched);
 
     pa_log_debug("Loading module-alsa-card with arguments '%s'", args);
     m = pa_module_load(u->core, "module-alsa-card", args);