]> git.alsa-project.org Git - alsa-utils.git/commitdiff
print caption in hardware list only once
authorClemens Ladisch <clemens@ladisch.de>
Thu, 10 Jun 2004 15:50:58 +0000 (15:50 +0000)
committerClemens Ladisch <clemens@ladisch.de>
Thu, 10 Jun 2004 15:50:58 +0000 (15:50 +0000)
aplay/aplay.c

index 1e4831052a7a53b8a2e837ed2dce81efc631de64..c722d1d9fb3530cefc1ccf225c757f99afe8753c 100644 (file)
@@ -199,6 +199,7 @@ static void device_list(void)
                error("no soundcards found...");
                return;
        }
+       fprintf(stderr, "**** List of %s Hardware Devices ****\n", snd_pcm_stream_name(stream));
        while (card >= 0) {
                char name[32];
                sprintf(name, "hw:%d", card);
@@ -211,7 +212,6 @@ static void device_list(void)
                        snd_ctl_close(handle);
                        goto next_card;
                }
-               fprintf(stderr, "**** List of %s Hardware Devices ****\n", snd_pcm_stream_name(stream));
                dev = -1;
                while (1) {
                        unsigned int count;