From: Abramo Bagnara Date: Tue, 10 Oct 2000 15:39:09 +0000 (+0000) Subject: Dump order fix X-Git-Tag: v1.0.3~1106 X-Git-Url: https://git.alsa-project.org/?a=commitdiff_plain;h=17e8adabdb15e0ae0e41097e6b2b749030a6f1e6;p=alsa-lib.git Dump order fix --- diff --git a/src/pcm/pcm_multi.c b/src/pcm/pcm_multi.c index a2ead720..9e5d7ab5 100644 --- a/src/pcm/pcm_multi.c +++ b/src/pcm/pcm_multi.c @@ -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 = {