summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2009-06-06 03:26:55 +0200
committerLennart Poettering <lennart@poettering.net>2009-06-06 03:26:55 +0200
commite84644aa88acd7158bb174946dbff630ff2389ad (patch)
tree915a1d5b3e076f12f0b7949c0cb54259f275bfc9 /src
parent8080ab12597cfbffe9327271236b85054765a2d8 (diff)
hal,udev: deprecate HAL support in favour of udev
Diffstat (limited to 'src')
-rwxr-xr-xsrc/daemon/default.pa.in6
-rw-r--r--src/modules/module-hal-detect.c3
2 files changed, 5 insertions, 4 deletions
diff --git a/src/daemon/default.pa.in b/src/daemon/default.pa.in
index fa0683e1..a35ff8ff 100755
--- a/src/daemon/default.pa.in
+++ b/src/daemon/default.pa.in
@@ -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
diff --git a/src/modules/module-hal-detect.c b/src/modules/module-hal-detect.c
index 9ac87050..658b3e55 100644
--- a/src/modules/module-hal-detect.c
+++ b/src/modules/module-hal-detect.c
@@ -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);