From: Takashi Iwai Date: Mon, 12 Mar 2007 23:40:22 +0000 (+0100) Subject: Fix start/stop of multi plugin X-Git-Tag: v1.0.14rc4~16 X-Git-Url: https://git.alsa-project.org/?a=commitdiff_plain;h=1753ae794f73c041f38fa49fd328024f6a617079;p=alsa-lib.git Fix start/stop of multi plugin The start/stop of sync'ed stream of multi plugin. This should make some JACK users with multiple devices happier. --- diff --git a/src/pcm/pcm_multi.c b/src/pcm/pcm_multi.c index 85403c6d..68fcb3b5 100644 --- a/src/pcm/pcm_multi.c +++ b/src/pcm/pcm_multi.c @@ -621,7 +621,8 @@ static int snd_pcm_multi_link_fd(snd_pcm_t *pcm, int *fds, int count, int (**fai if (multi->slaves[i].linked) snd_pcm_unlink(multi->slaves[i].pcm); fds[i] = _snd_pcm_link_descriptor(multi->slaves[i].pcm); - multi->slaves[i].linked = 1; + if (i > 0) + multi->slaves[i].linked = 1; } *failed = snd_pcm_multi_link_fd_failed; return multi->slaves_count;