]> git.alsa-project.org Git - alsa-utils.git/commitdiff
Fix argument for snd_device_name_hint().
authorTakashi Iwai <tiwai@suse.de>
Mon, 6 Nov 2006 16:27:50 +0000 (17:27 +0100)
committerTakashi Iwai <tiwai@suse.de>
Mon, 6 Nov 2006 16:27:50 +0000 (17:27 +0100)
Fix the iface argument for snd_device_name_hint().

aplay/aplay.c

index dc85af34e5e4b48bcb541d375239df92bf1a4bc6..3b0bf9e9f9656ae7f576a5dd1e78712c2c009388 100644 (file)
@@ -264,7 +264,7 @@ static void pcm_list(void)
 {
        char **hints, **n, *delim, *filter;
 
-       if (snd_device_name_hint(-1, SND_CTL_ELEM_IFACE_PCM, &hints) < 0)
+       if (snd_device_name_hint(-1, "pcm", &hints) < 0)
                return;
        n = hints;
        filter = stream == SND_PCM_STREAM_CAPTURE ? "{Playback}" : "{Capture}";