--- gstalsasink.c.orig	2007-02-06 20:45:11.000000000 +0100
+++ gstalsasink.c	2007-02-06 20:47:40.000000000 +0100
@@ -255,10 +255,15 @@
     case PROP_DEVICE_NAME:
       if (sink->handle) {
         snd_pcm_info_t *info;
+	int card;
+	char *name = NULL;
 
         snd_pcm_info_malloc (&info);
         snd_pcm_info (sink->handle, info);
-        g_value_set_string (value, snd_pcm_info_get_name (info));
+	card = snd_pcm_info_get_device (info);
+	snd_card_get_name (card, &name);
+        g_value_set_string (value, name);
+	free (name);
         snd_pcm_info_free (info);
       } else {
         g_value_set_string (value, NULL);
