[alsa-devel] [PATCH] [-, JACK, plugin, 1/1] jack: use correct port names in 50-jack.conf

Alex Ivanov gnidorah at ya.ru
Tue Mar 19 18:51:44 CET 2019


Change port names in 50-jack.conf from "alsa_pcm" to "system".

JACK1 v0.125.0 still provides alsa_pcm:playback_* and alsa_pcm:capture_*
port names, but only as aliases:
$ jack_lsp -A
system:capture_1
   alsa_pcm:capture_1
system:capture_2
   alsa_pcm:capture_2
system:playback_1
   alsa_pcm:playback_1
system:playback_2
   alsa_pcm:playback_2

JACK2 v1.9.12 doesn't support alsa_pcm:playback_* and alsa_pcm:capture_*
aliases anymore, so 50-jack.conf will fail for JACK2 users:
$ jack_lsp -A
system:capture_1
   alsa_pcm:hw:0:out1
system:capture_2
   alsa_pcm:hw:0:out2
system:playback_1
   alsa_pcm:hw:0:in1
system:playback_2
   alsa_pcm:hw:0:in2

As you see in both cases system:playback_* and system:capture_* are
correct port names.

Signed-off-by: Alex Ivanov <gnidorah at ya.ru>
---
 jack/50-jack.conf | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/jack/50-jack.conf b/jack/50-jack.conf
index d780dfc..9948f2f 100644
--- a/jack/50-jack.conf
+++ b/jack/50-jack.conf
@@ -1,12 +1,12 @@
 pcm.jack {
 	type jack
 	playback_ports {
-		0 alsa_pcm:playback_1
-		1 alsa_pcm:playback_2
+		0 system:playback_1
+		1 system:playback_2
 	}
 	capture_ports {
-		0 alsa_pcm:capture_1
-		1 alsa_pcm:capture_2
+		0 system:capture_1
+		1 system:capture_2
 	}
 	hint {
 		show {
-- 
2.19.2



More information about the Alsa-devel mailing list