JACK issues on RPi 4B

Discussion of all things Raspberry Pi / Raspberry Pi 2 related

Moderators: MattKingUSA, khz

Post Reply
hippie403
Established Member
Posts: 23
Joined: Sat Apr 17, 2021 3:47 am
Has thanked: 5 times
Been thanked: 4 times

JACK issues on RPi 4B

Post by hippie403 »

Has anyone got jackd working with Pi 4B onboard audio recently on a fully patched up Raspberry Pi OS?

I'll try and keep this brief.

I used to have jackd configured to use my USB audio interface for input and HDMI for sound output.

When pulseaudio was made the default sound config instead of straight ALSA it became necessary to suspend or disable pulseaudio so jackd could have access to the HDMI sound device. I was able to get things going again using pasuspender.

Some time later jackd stopped being able to access the HDMI sound device again.
There have been some kernel and firmware updates to Raspberry Pi OS since it was last working for me.

There is no problem using jackd with my USB audio interface for input and output.

Any ideas anyone?

jackdmp 1.9.12
Copyright 2001-2005 Paul Davis and others.
Copyright 2004-2016 Grame.
Copyright 2016-2017 Filipe Coelho.
jackdmp comes with ABSOLUTELY NO WARRANTY
This is free software, and you are welcome to redistribute it
under certain conditions; see the file COPYING for details
JACK server starting in realtime mode with priority 10
self-connect-mode is "Don't restrict self connect requests"
audio_reservation_init
Acquire audio card Audio1
Acquire audio card Audio2
creating alsa driver ... hw:b1|hw:CODEC|1024|2|48000|0|0|nomon|swmeter|-|32bit
configuring for 48000Hz, period = 1024 frames (21.3 ms), buffer = 2 periods
ALSA: final selected sample format for capture: 16bit little-endian
ALSA: use 2 periods for capture
ALSA: final selected sample format for playback: 16bit little-endian
ALSA: use 2 periods for playback
port created: Midi-Through:midi/playback_1
port created: Midi-Through:midi/capture_1
port created: UM-1G:midi/playback_1
port created: UM-1G:midi/capture_1
ALSA: poll time out, polled for 31999042 usecs
JackAudioDriver::ProcessAsync: read error, stopping...

No problems using hw:CODEC
hw:b1 dies.
Baggypants
Established Member
Posts: 188
Joined: Fri Jul 31, 2015 11:28 pm
Has thanked: 14 times
Been thanked: 8 times

Re: JACK issues on RPi 4B

Post by Baggypants »

I think the onboard audio devices changed names. Check with aplay -l.
hippie403
Established Member
Posts: 23
Joined: Sat Apr 17, 2021 3:47 am
Has thanked: 5 times
Been thanked: 4 times

Re: JACK issues on RPi 4B

Post by hippie403 »

The device names are still the same, jackd would have failed with a different error if the device didn't exist.

greg@PiPad:~ $ aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: b1 [bcm2835 HDMI 1], device 0: bcm2835 HDMI 1 [bcm2835 HDMI 1]
Subdevices: 4/4
Subdevice #0: subdevice #0
Subdevice #1: subdevice #1
Subdevice #2: subdevice #2
Subdevice #3: subdevice #3
card 1: Headphones [bcm2835 Headphones], device 0: bcm2835 Headphones [bcm2835 Headphones]
Subdevices: 4/4
Subdevice #0: subdevice #0
Subdevice #1: subdevice #1
Subdevice #2: subdevice #2
Subdevice #3: subdevice #3
greg@PiPad:~ $
Post Reply