]> git.alsa-project.org Git - alsa-plugins.git/commit
jack: Support to connect multiple JACK ports with same ALSA channel
authorTimo Wischer <twischer@de.adit-jv.com>
Tue, 29 Jan 2019 14:30:56 +0000 (15:30 +0100)
committerTakashi Iwai <tiwai@suse.de>
Tue, 29 Jan 2019 15:19:09 +0000 (16:19 +0100)
commit905e177ff00f4382151e61eb0360162bba4448b7
tree0c3d23fd058a7ef63c59955d782e70eeb8f78e3c
parentf51fba2dfe061f2be9e01b23fd6f077158c50d45
jack: Support to connect multiple JACK ports with same ALSA channel

The following example will connect ALSA channel 0 to JACK port
"system:playback_1" and "system:playback_3" and ALSA channel 1 to JACK
port "system:playback_2" and "system:playback_4":

pcm.jack {
type jack
playback_ports {
0 [ system:playback_1 system:playback_3 ]
1 [ system:playback_2 system:playback_4 ]
}
}

The old syntax with only one port for one channel is still supported:
playback_ports {
0 system:playback_1
1 system:playback_2
}

Without this patch an additional JACK client has to be used to
automatically connect the second JACK port but this could take some
time. Therefore it misses for example the first audio period on the
second port.

Signed-off-by: Timo Wischer <twischer@de.adit-jv.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
jack/pcm_jack.c