jack2 icon indicating copy to clipboard operation
jack2 copied to clipboard

jackd fails to work on Raspberry Pi & HiFiBerry DAC+ ADC Pro

Open vmsh0 opened this issue 2 years ago • 2 comments

Describe the bug

I'm trying to start jackd as:

jackd -dalsa -dhw:sndrpihifiberry -r96000 -p128 -o2 -i2

This successfully starts jackd with the following log:

pi@rpi:~ $ jackd -dalsa -dhw:sndrpihifiberry -r96000 -p128 -o2 -i2
jackdmp 1.9.21
Copyright 2001-2005 Paul Davis and others.
Copyright 2004-2016 Grame.
Copyright 2016-2022 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 Audio0
creating alsa driver ... hw:sndrpihifiberry|hw:sndrpihifiberry|128|2|96000|2|2|nomon|swmeter|-|32bit
configuring for 96000Hz, period = 128 frames (1.3 ms), buffer = 2 periods
ALSA: final selected sample format for capture: 32bit integer little-endian
ALSA: use 2 periods for capture
ALSA: final selected sample format for playback: 32bit integer little-endian
ALSA: use 2 periods for playback

However, as soon as I try to connect the first client, the client hangs for a few seconds and then this happens:

JackPosixProcessSync::LockedTimedWait error usec = 5000000 err = Connection timed out
Driver is not running
Cannot create new client
Unknown request 4294967295
CheckSize error size = 0 Size() = 12
CheckRead error

Environment

Following setup:

  • RPi 3B+ and RPi 5
  • RPiOS, Linux rpi 6.1.0-rpi7-rpi-2712 #1 SMP PREEMPT Debian 1:6.1.63-1+rpt1 (2023-11-24) aarch64 GNU/Linux
  • HiFiBerry board with PCM1863 ADC and PCM5122 DAC
  • Only ALSA audio card in the system, i.e. aplay -l && arecord -l only lists that single card
  • ALSA driver works correctly, i.e. arecord -f S32_LE -r 96000 -c 2 -d 5 "test"; sleep 1; aplay "test" records and plays back a wave
  • JACK Version: jackdmp version 1.9.21 tmpdir /dev/shm protocol 9
  • Installation: Tried both the Debian/RPiOS package and compiling the latest master

Steps To Reproduce

Install latest RPiOS, configure card as described here. Install jack. Mask all PulseAudio/Pipewire/etc systemd units. Reboot. Start jackd with command provided above. Start any client.

Expected vs. actual behavior

Error message not printed, audio system working.

Further info

I can try out stuff and recompile jack comfortably. I'm happy to put in some time to help getting to the bottom of this.

vmsh0 avatar Dec 11 '23 10:12 vmsh0

Uhm, might this have something to do with this commit from just a couple days ago? I'll compile, run, and report back

vmsh0 avatar Dec 11 '23 10:12 vmsh0

No - unfortunately it looks like it didn't make any difference

vmsh0 avatar Dec 11 '23 11:12 vmsh0