Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
vmsh0 opened this issue Dec 11, 2023 · 2 comments
Open

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

vmsh0 opened this issue Dec 11, 2023 · 2 comments
Labels

Comments

@vmsh0
Copy link

vmsh0 commented Dec 11, 2023

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 vmsh0 added the bug label Dec 11, 2023
@vmsh0
Copy link
Author

vmsh0 commented Dec 11, 2023

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

@vmsh0
Copy link
Author

vmsh0 commented Dec 11, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant