Hello,
my HifiBerry DAC does not work with the latest Openelec versions. I usualy use the Builds Milhouse and i also described the problem .
The last Openelec version still have this problem. Could it be a Kernel releated problem because with Raspbmc i dont have the problem even with miappa´s builds of the newest XBMC version. So i dont think its XBMC related. Raspbmc use Kernel 3.12.28+ and Openelec use 3.16.2
It would be great to get information how i can fix this issue because in the other forum i get no answer. Only a other user with a DAC+ have similar problems.
Sorry for my bad english ;)
Date
Votes
30 comments
-
-
HiFiBerry team Hi,
are you using the DAC or the DAC+. For the "+" boards we have heard about problems with LIRC (it seems to access the GPIO pins reserved for the HiFiBerry). However the OpenElec developers have to look into this. They have their own packaging system, therefore we're not able to simply replace the kernel and see if this is the problem.
However if XBMC is working, but not OpenElec, I would recommend asking this in the OpenElec forum as the developers will look there first.
Best regards
Daniel -
boberze Hi Daniel,
thank you for the fast replay. I use the "old" HifiBerry. The Kernel for Openelec is stored in the FAT partition of the SD-Card. So it should be able to replace the kernel with a working version. Could you provide me one? OpenElec use at the Moment Kernel 3.16.2.
Thank you,
René -
HiFiBerry team Hi Rene,
as the kernel also contains modules that need to be in the right directory, we can't send a kernel that can just be copied to the filesystem. However 3.16.2 seems quite old, there should be a newver version already available from the OpenElec developers.
Best regards
Daniel -
alan.phelan Hi
I am also a newbie. I have installed the DAC+ on a RPi Model B+ and have followed instructions to set up /etc/modules and have also blacklisted LIRC. Audio output shows ALSA:Default(snd_rpi_hifiberry_dac Analog).
However, I get no sound via the amplifier. aplay -l results in:
card 0: sndrpihifiberry [snd_rpi_hifiberry_dac], device 0: HifiBerry DAC HiFi pcm5102a-hifi-0 []
Subdevices: 0/1
Subdevice #0: subdevice #0
any advice?
Thanks
Alan -
HiFiBerry team Dear Alan,
you're using the wrong module. For the DAC+ you have to use the dacplsu module, not the hifiberry_dac
Best regards
Daniel -
alan.phelan Hi daniel
Many thanks for speedy reply. So do I amend /etc/modules to:
snd_soc_bcm2708_i2s
bcm2708_dmaengine
snd_soc_pcm5102a
snd_soc_dacplsu_dac
and then change audio output device in Openelec System Settings accordingly?
thanks again
Alan -
HiFiBerry team you don't need the snd_soc_pcm5102a module
See here: http://www.hifiberry.com/guides/hifiberry-software-configuration/snd_soc_bcm2708
bcm2708_dmaengine
snd_soc_hifiberry_dacplus
I don't know OpenElec specifically and therefore can't say if you still need any specific configuration in the GUI.
Best regards
Daniel -
alan.phelan Daniel
I will try. Again Many thans
Alan -
alan.phelan Daniel
Many thanks. Everything now seems working. I also hadn't created /etc/asound.conf. Perhaps I will learn to read one day ;)
Sorry to be a pain.....
Best wishes
Alan
PS It's a great product and a great improvement on native RPi audio output -
boberze Hello again,
my Problem still exist. I found a thread in the OpenElec forum that gets me one step further.
I greated "disable-lirc.conf" file in /storage/.config/modprobe.d/ which contains "blacklist lirc_rpi"
Now the Pi does not freez when i switch the audio output to the HifiBerry DAC. But now i get no sound.
Any other hints?
Thank you. -
alan.phelan Hi Boberze
Mine is now fully functional with great sound. Have you created /etc/asound.conf? See:
http://www.hifiberry.com/guides/hifiberry-software-configuration/
Follow towards the bottom of the page to Configure ALSA.
Good luck
Alan -
boberze Hi Alan,
that is not working for me because OpenElec is read only. So i followed ths HowTo: Click here.
I created the file -> nano -w /storage/.config/asound.conf
It contains (without "---"):
---
pcm.!default {
type hw card 0
}
ctl.!default {
type hw card 0
}
---
aplay -l give me (with or without asound.conf)
---
**** List of PLAYBACK Hardware Devices ****
card 0: sndrpihifiberry [snd_rpi_hifiberry_dac], device 0: HifiBerry DAC HiFi pcm5102a-hifi-0 []
Subdevices: 1/1
Subdevice #0: subdevice #0
---
When i try to play a sample wav i get no error but hear no sound
---
aplay -vv /storage/download/M1F1-int16WE-AFsp.wav
Playing WAVE '/storage/download/M1F1-int16WE-AFsp.wav' : Signed 16 bit Little Endian, Rate 8000 Hz, Stereo
Hardware PCM card 0 'snd_rpi_hifiberry_dac' device 0 subdevice 0
Its setup is:
stream : PLAYBACK
access : RW_INTERLEAVED
format : S16_LE
subformat : STD
channels : 2
rate : 8000
exact rate : 8000 (8000/1)
msbits : 16
buffer_size : 4000
period_size : 1000
period_time : 125000
tstamp_mode : NONE
period_step : 1
avail_min : 1000
period_event : 0
start_threshold : 4000
stop_threshold : 4000
silence_threshold: 0
silence_size : 0
boundary : 2097152000
appl_ptr : 0
hw_ptr : 0
# + | 07%
---
Thank you -
HiFiBerry team Hi,
do you use the DAC or the DAC+? It seems that you configured the DAC, which is the wrong driver if you're using the DAC+.
Best regards
Daniel -
boberze Hi Daniel,
i have HifiBerry DAC, the old one.
Do you have any hint for me?
Thank you. -
HiFiBerry team Hi,
Have you tested the DAC bfore with our test image? Sometimes people have problems soldering the P5 header. Therefore it is best to first check that the hardware is working.
Best regards
Daniel -
boberze My HifiBerry works fine. The Problem comes up since Kernel 3.16.x is in use.
The Problem is that the Pi immediately freeze if i set the DAC as default audio output. When i blacklist 'lirc_rpi' the Pi wont freeze but i get no sound.
Its possibe to test this behavior by your self with the latest openelec version?
Thank you -
boberze Me again,
please see this thread. This is the same behavior just with the HifiBerry Digi.
popcornmix wrote
---
dvdplayer is not as efficient as omxplayer but is hardware accelerated (for any formats that omxplayer can play).
There does appear to be a bug in the hifiberry alsa driver when using the 3.16 kernel.
Might be worth creating as issue here:
github.com/raspberrypi/linux/issues
where a hifiberry dev is more likely to see it.
---
could it be that the alsa driver is broken since kernel 3.16.x is in use?
Thank you -
alan.phelan Hi Boberze
Yeah I also changed the default omxplayer to dvdplayer. See:
http://www.hifiberry.com/guides/hifiberry-raspbmc/
Section Optional: Route all sound to the HiFiBerry card
This enabled to get sound from recorded tv and audio
Alan -
HiFiBerry team Hi Boberze,
the "bug" in the HiFiBerry driver occured only when using an older kernel without the Raspberry Pi B+ patch. The 3.16.x should work fine. Maybe one user that has it running can post a working SD card image somewhere?
Best regards
Daniel -
boberze Hello Alan and Daniel,
i use ne latest OpenElec Version from Milhouse. It could be you use RaspBMC or an older OpenElec version, RaspBMC is using a older Kernel. You can check this via "uname -a" in a SSH session. My Problem is not XBMC related because i still get no sound with e.g. aplay -vv test.wav in a SSH sesson.
It could be a alsa driver problem with the latest Kernel (3.16.2) but i have to wait for Daniel for more informations
The last working OpenElec Version is this. This Version use Kernel 3.15.8 and the DAC works perfectly. All newer OpenElec builds use Kernel 3.16.x and at this point my HifiBerry DAC stops working.
At the moment i use again this build and all is fine.
I dont know where the problem is :( -
alan.phelan Hi
Whoops - sorry. I'm using Openelec 4.1.6. Everything seems fine
Alan -
boberze Hello,
OpenElec 4.1.6 use kernel 3.16.2. But you have a DAC+ and the DAC+ use module
"snd_soc_hifiberry_dacplus". I have the "old" DAC without + and use "snd_soc_hifiberry_dac". Unfortunately thats not comparable in my Eyes.
I think its an error in the snd_soc_hifiberry_dac module.
Thanks
EDIT
---
Alan, can you install this build and give me a short feedback if you still have sound? Just copy the tar file in your Pi´s Update folder and reboot.
This is the ver latest Milhouse Build with many improvements for the RaspBerry -
HiFiBerry team Hi Boberze,
our official driver is for Linux 3.12.x. It seems that the OpenElec developers use newer kernels and integrate the drivers. As they have their own build system, I can't say why it does not work with a specific release. Please ask in the OpenElec developer forum, maybe somebody of the OpenElec developers has an idea. While we can provide samples to developers we're not able to support specific builds that use kernels other than the standard Raspbian kernel.
Best regards
Daniel -
Trept259 Hi boberze,
i use the last openelec with DAC (Kernel 3.16.2) without any problems.
snd_soc_bcm2708
snd_soc_bcm2708_i2s
bcm2708_dmaengine
snd_soc_pcm5102a
snd_soc_hifiberry_dac
in /storage/.config/modules-load.d/hifiberry.conf
and
<advancedsettings>
<video>
<defaultplayer>dvdplayer</defaultplayer>
<defaultdvdplayer>dvdplayer</defaultdvdplayer>
</video>
<audio>
<defaultplayer>paplayer</defaultplayer>
<streamsilence>false</streamsilence>
</audio>
</advancedsettings>
in /storage/.xbmc/userdata/advancedsettings.xml -
boberze Hi Trept259,
sorry for my late feedback. I have tested OpenElec Version:4.1.6 (Diskimage). I used a fresh SD-Card. But the error is still the same. Did you get a error on startup too? Its because you try to load snd_soc_bcm2708. We dont need to load this module.
Could you provide me your SD-Card Image?
Many Thanks.
PS: i have start a own thread in the OpenElec forum for this problem. -
hoffmann5928 Hi Trept259
I have the same problem.
OpenELEC 4.2 (new.)
raspberry B +
DAC +
Have executed your statement.
For audio output devices will appear DAC +.
When I select this light the green LED on the DAC + and PI unresponsive.
After the restart the same.
I as well as the DAC + select them ....
I did that.
snd_soc_bcm2708
snd_soc_bcm2708_i2s
bcm2708_dmaengine
snd_soc_pcm5102a
snd_soc_hifiberry_dacplus
in /storage/.config/modules-load.d/hifiberry.conf
and
<advanced settings>
<video>
<default player> dvdplayer </ default player>
<defaultdvdplayer> dvdplayer </ defaultdvdplayer>
</ video>
<audio>
<default player> paplayer </ default player>
<stream silence> false </ stream silence>
</ audio>
</ advanced settings>
in /storage/.xbmc/userdata/advancedsettings.xml
Perhaps you have an idea and can help.
Where is my mistake?
Thank you
Maik -
HiFiBerry team Hi,
what is the output of
aplay -l
uname -a
Best regards
Daniel -
-
HiFiBerry team Hi,
the 24bit problem is an issue with XBMC and 24bit playback on the Raspberry Pi I2S stack. Some people are looking into this at the moment. However it is not clear if and when this can be fixed. However you can still playback 24bit files in 32bit mode.
Best regards
Daniel
Please sign in to leave a comment.