get additional device data from udev

This commit is contained in:
Lennart Poettering 2009-03-01 20:34:07 +01:00
parent cc8d51ad62
commit 784ac5b0da
10 changed files with 268 additions and 11 deletions

View file

@ -89,6 +89,9 @@ int pa_hal_get_info(pa_core *core, pa_proplist *p, int card) {
pa_proplist_sets(p, "hal.udi", udis[i]);
/* The data HAL stores in info.product is not actually a product
* string but simply the ALSA card name. We will hence not write
* it to PA_PROP_DEVICE_PRODUCT_NAME */
t = libhal_device_get_property_string(hal, udis[i], "info.product", &error);
if (dbus_error_is_set(&error))
dbus_error_free(&error);