summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDanny Kukawka <danny.kukawka@web.de>2009-03-18 18:21:52 +0100
committerDanny Kukawka <danny.kukawka@web.de>2009-05-22 17:19:46 +0200
commit02c852b8b8afbce16798c71d91678df1a72785c0 (patch)
treebe070cd871cfdffe42a5ddb3d14c7ba4d601ac1e
parentb40e19fd38a7ff5d01edbcd29b44f46582ce32ac (diff)
fix sound_compute_udi(): sound.card is int and not a string
Fixed sound_compute_udi(). The type of property sound.card is int and not string, use the correct function to get the value.
-rw-r--r--hald/linux/device.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hald/linux/device.c b/hald/linux/device.c
index 1b3316a2..02c456f7 100644
--- a/hald/linux/device.c
+++ b/hald/linux/device.c
@@ -3496,7 +3496,7 @@ sound_compute_udi (HalDevice *d)
hald_compute_udi (udi, sizeof (udi),
"%s_sound_card_%i",
hal_device_property_get_string (d, "info.parent"),
- hal_device_property_get_string (d, "sound.card"));
+ hal_device_property_get_int (d, "sound.card"));
} else if (hal_device_has_property(d, "alsa.card")) {
/* don't include card number as it may not be persistent across reboots */
hald_compute_udi (udi, sizeof (udi),