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-03-18 18:21:52 +0100
commitf8866e7193e3f9d95e4a36cd08bb69ffc21fbaff (patch)
tree5bd26d9c2101511083198d22e67e12be70215c9f
parent999818f10b45cf516dc7e828d2f7e2cbe615cae3 (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),