don't open the alsa devices in hw:xxx mode
authorLennart Poettering <lennart@poettering.net>
Sun, 15 Feb 2009 19:34:38 +0000 (20:34 +0100)
committerLennart Poettering <lennart@poettering.net>
Sun, 15 Feb 2009 19:34:38 +0000 (20:34 +0100)
src/modules/module-detect.c

index 9ed262db4e454ef8b09df354d44ac679cd5204dc..773e1d8757ca64c6ed714b6131fe194ef8a8e451 100644 (file)
@@ -100,7 +100,7 @@ static int detect_alsa(pa_core *c, int just_one) {
         if (subdevice != 0)
             continue;
 
-        pa_snprintf(args, sizeof(args), "device=hw:%u", device);
+        pa_snprintf(args, sizeof(args), "device_id=%u", device);
         if (!pa_module_load(c, is_sink ? "module-alsa-sink" : "module-alsa-source", args))
             continue;