Ticket #139: pulseaudio-hal-alsa-devices-1.diff
| File pulseaudio-hal-alsa-devices-1.diff, 1.2 kB (added by juergbi, 3 years ago) |
|---|
-
src/modules/module-hal-detect.c
176 176 goto fail; 177 177 178 178 device = libhal_device_get_property_int(u->context, udi, "alsa.device", &error); 179 if (dbus_error_is_set(&error) || device != 0)179 if (dbus_error_is_set(&error)) 180 180 goto fail; 181 181 182 182 card = libhal_device_get_property_int(u->context, udi, "alsa.card", &error); … … 190 190 *sink_name = pa_sprintf_malloc("alsa_output.%s", strip_udi(udi)); 191 191 192 192 module_name = "module-alsa-sink"; 193 args = pa_sprintf_malloc("device=hw:%u sink_name=%s", card, *sink_name);193 args = pa_sprintf_malloc("device=hw:%u,%u sink_name=%s", card, device, *sink_name); 194 194 } else { 195 195 *source_name = pa_sprintf_malloc("alsa_input.%s", strip_udi(udi)); 196 196 197 197 module_name = "module-alsa-source"; 198 args = pa_sprintf_malloc("device=hw:%u source_name=%s", card, *source_name);198 args = pa_sprintf_malloc("device=hw:%u,%u source_name=%s", card, device, *source_name); 199 199 } 200 200 201 201 pa_log_debug("Loading %s with arguments '%s'", module_name, args);
