]> git.alsa-project.org Git - alsa-lib.git/commitdiff
Dump order fix
authorAbramo Bagnara <abramo@alsa-project.org>
Tue, 10 Oct 2000 15:39:09 +0000 (15:39 +0000)
committerAbramo Bagnara <abramo@alsa-project.org>
Tue, 10 Oct 2000 15:39:09 +0000 (15:39 +0000)
src/pcm/pcm_multi.c

index a2ead720d671f315e2f5060df8939854f291aaec..9e5d7ab5f9dac7e48edfe3646735e87906d47ef9 100644 (file)
@@ -475,6 +475,14 @@ static void snd_pcm_multi_dump(snd_pcm_t *pcm, FILE *fp)
        snd_pcm_multi_t *multi = pcm->private;
        unsigned int k;
        fprintf(fp, "Multi PCM\n");
+       fprintf(fp, "\nChannel bindings:\n");
+       for (k = 0; k < multi->channels_count; ++k) {
+               snd_pcm_multi_channel_t *c = &multi->channels[k];
+               if (c->slave_idx < 0)
+                       continue;
+               fprintf(fp, "%d: slave %d, channel %d\n", 
+                       k, c->slave_idx, c->slave_channel);
+       }
        if (pcm->valid_setup) {
                fprintf(fp, "\nIts setup is:\n");
                snd_pcm_dump_setup(pcm, fp);
@@ -483,14 +491,6 @@ static void snd_pcm_multi_dump(snd_pcm_t *pcm, FILE *fp)
                fprintf(fp, "\nSlave #%d: ", k);
                snd_pcm_dump(multi->slaves[k].pcm, fp);
        }
-       fprintf(fp, "\nChannel bindings:\n");
-       for (k = 0; k < multi->channels_count; ++k) {
-               snd_pcm_multi_channel_t *c = &multi->channels[k];
-               if (c->slave_idx < 0)
-                       continue;
-               fprintf(fp, "Channel #%d: slave %d[%d]\n", 
-                       k, c->slave_idx, c->slave_channel);
-       }
 }
 
 struct snd_pcm_ops snd_pcm_multi_ops = {