Hello, I need help with configuring RaspiOS so that I can select the HiFi Berry DAC-XLR as my default audio device.
Can somebody please help me do this? thanks
Hello, I need help with configuring RaspiOS so that I can select the HiFi Berry DAC-XLR as my default audio device.
Can somebody please help me do this? thanks
Just disable the onboard sound:
https://www.hifiberry.com/docs/software/configuring-linux-3-18-x/
I have three important questions
1. The guide is missing the command for the device tree overlay when using the dac XLR, Do you know what the command is? Please consider updating this guide with the commands for all of your hardware an not just some of them
For example: "dtoverlay=hifiberry-dacxlr" instead of "dtoverlay=hifiberry-amp"
2. I do not know if I have "vc4-fkms-v3d overlay". How can I check if I have that? I only have RaspiOS 64bit (stock image).
3. How do I know if I have Linux 5.4 and higher or not? I only know that I have the latest "bullseye" build of RaspiOS 64bit.
My config.txt
has the following changes:
I added the comment symbol in front, on the first line, then added the second line
# dtparam=audio=on
dtoverlay=hifiberry-dacplus
force_eeprom_read=0
(i still have no audio)
What's the output of
aplay -l
This is what it says
And this is the error I get when I try to launch my jukebox software
The program will stop loading and say "Couldn't Reserve Audio Samples".
Oh and I forgot to mention that I already added the "force_eeprom_read=0" line in addition to the first two lines. I updated the previous post too
You still haven't disabled the onboard sound. See the linked document:
If your system uses the vc4-fkms-v3d overlay, make sure, audio is also disabled on this:
dtoverlay=vc4-fkms-v3d,audio=off
added that line, there is no way for me to know if i have that thing so i didn't know I had to add the line. it is added now. still, there is no audio. looks like line 65 is very similar to line 55. Do I have to delete line 65? I just added the command in the guide. The guide is very poorly written unfortunately so I need your (human) help. I added a new photo of "aplay -l" and of the error I get when running my music program ("fruitbox").
Yes, you're trying to load 2 different V3D drivers. That won't work at all. The easiest way might be to disable both lines by adding a "#" in front of it.
You can see if it is right by checking the aplay -l output. Only the hifiberry sound card should be listed.
I can now confirm that this worked. I put the # in front of line 65, but left line 55 intact.
and the fruitbox program is working with the sound card! perfect!
Well actually, the audio still works, but now I am getting that error on the fruitbox program again.
"XDG_Runtime_Dir not set in environment"
"Could not reserve audio samples"
Since this error only began to appear after I attempted to setup the Hifiberry DAC+XLR, i thought it would be fixed once the sound card started to work.
All I can think of, which I have not yet done is to "Setup ALSA". But the Fruitbox mp3 player did work once already with this sound card, I am not sure why its not working again after a reboot.
Do you have any idea what these errors mean? I will ask at the fruitbox jukebox github as well. any help or clues are appreciated.
No idea, it's probably best to directly ask the developers.