Jack <-> alsa connectivity

Optimize your system for ultimate performance.

Moderators: MattKingUSA, khz

Post Reply
User avatar
sadko4u
Established Member
Posts: 989
Joined: Mon Sep 28, 2015 9:03 pm
Has thanked: 2 times
Been thanked: 361 times

Jack <-> alsa connectivity

Post by sadko4u »

The short description: I need to route the signal from an ALSA application to JACK and back.
According to this manual: https://jackaudio.org/faq/routing_alsa.html
I've performed the following configuration:

Code: Select all

pcm.rawjack {
    type jack
    playback_ports {
        0 system:playback_1
        1 system:playback_2
    }
    capture_ports {
        0 system:capture_1
        1 system:capture_2
    }
}

pcm.jack {
    type plug
    slave { pcm "rawjack" }
    hint {
 	description "JACK Audio Connection Kit"
    }
}
aplay on 'rawjack' device works well but aplay on 'jack' always gives repeating noise.
Trying to configure the default device:

Code: Select all

pcm.!default
{
    type asym
    playback.pcm {
        type plug
        slave.pcm "rawjack"
    }
    capture.pcm {
        type plug
        slave.pcm "rawjack"
    }
}
GIves the repeating noise for any application when trying to play the audio.

For gmplayer, I see in console:
Audio device got stuck!
A: 0.0 (00.0) of 845.0 (14:05.0) ??,?%
Audio device got stuck!
A: 0.0 (00.0) of 845.0 (14:05.0) ??,?%
What I am doing wrong?
LSP (Linux Studio Plugins) Developer and Maintainer.
User avatar
bluebell
Established Member
Posts: 1924
Joined: Sat Sep 15, 2012 11:44 am
Location: Saarland, Germany
Has thanked: 112 times
Been thanked: 119 times

Re: Jack <-> alsa connectivity

Post by bluebell »

I can't find a configuration error. I used the same until I noticed that installing Pulseaudio already sets up a redirection from ALSA to Pulseaudio. Since I use jack_sink in Pulseaudio I don't need a separate ALSA-to-JACK redirection.

Do you have Pulseaudio installed? Maybe it messes with your .asoundrc.

Linux – MOTU UltraLite AVB – Qtractor – http://suedwestlicht.saar.de/

Post Reply