-
Notifications
You must be signed in to change notification settings - Fork 131
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
HiFiBerryOS 64: Analogue input service fails to start #540
Comments
I have implemented some changes that seem to work her. Unfortunately I don't have an analog audio source here to test this. I recommend to try with the net alpha release when it's available (hopefully next week) |
Hi all, I'm also experiencing this issue on a RPi 4B with DAC+ ADC (not Pro). I'm running the latest build of HiFiBerryOS 64. Are there any workarounds available? |
@billkach, I haven't had time to test out HifiBerryOS 64 on alpha8 but I do have a working workaround for alpha7. Here are the steps:
You could try this workaround out on alpha8 (I suspect you can probably skip step 1 as that fix is already implemented). |
thanks for taking the time to follow up with me about this. I just tried this with alpha8 and found it didn't work for me. I would enable the analogue input, the button would stay filled in, and then when I would navigate away from the page it would reset back to a disabled state. I'll try again with alpha7 over the weekend! |
It's been a while since I first set this up for my own pi, so may have forgot some steps. Could you try running this command then restart the analogue service? Alternatively, rebooting the pi if the above still doesn't work. |
Describe the bug
On HifiBerryOS 64, the analogue Input / alsaloop service does not start or function as expected. When an attempt to enable the service is started, it instantly goes to a failed state.
I have attached a PR that partially fixes this issue (see "Additional context"). However, the issue with the Python script running the audio loopback still persists.
This bug and the fixes were performed on a Raspberry Pi 5.
HiFiBerryOS version
20240410
HiFiBerry sound card
DAC+ ADC Pro
Steps to reproduce the behavior:
Expected behavior
The analogue input / alsaloop service should start and audio loopback should begin as expected.
Additional context
Solving the issue with the
alsaloop
serviceInvestigating the
journalctl
logs, the issue seems to be thealsaloop
service failing to start.Relevant log
Which suggests that the D-Bus configuration file for the
alsaloop
does not exist. I created the following file in/usr/share/dbus-1/system.d/alsaloop.conf
which resolves thealsaloop
service failing to start./~https://github.com/Wassup789/hifiberry-os/blob/a3deffddff52f890f978b3170eb128dbdba131d7/buildroot/package/hifiberry-alsaloop/dbus.conf
I have submitted a PR for this fix here: #539
New issue with
alsaloop.py
Though the service starts, I encountered another error specifically with the
alsaloop.py
script that crashes when the script begins audio loopback.Relevant log
This appears to be a known issue with the pyalsaaudio package (see larsimmisch/pyalsaaudio#130), which suggests an issue with specifically v0.10.0.
I was able to confirm that the
alsaloop.py
script (and consequently the fullalsaloop
service) works when I downgraded the version ofpyalsaaudio
to v0.9.2 (by cross-compiling thepyalsaaudio
package and directly loading the compiled binaries from thealsaloop.py
script).This bug has been reverted, however, there have not been any releases that contain this fix (the latest version is still 0.10.0).
I am not sure what is the best fix for this as I was unable to figure out a way to get
alsaloop.py
to work with v0.10.0 and it seems that the other services in this repository depend on thepyalsaaudio
package as well, but this should provide a good jump start.The text was updated successfully, but these errors were encountered: