(for use with raspbmc, may update)
I have purchased an Hifiberry Digi with an S/PDIF connector on it.
The P5 connector is soldered and the green light is visible on the printboard.
When I add the following lines (according to the setup manual) in /etc/modules
snd_soc_bcm2708
snd_soc_bcm2708_i2s
bcm2708_dmaengine
snd_soc_wm8804
snd_soc_hifiberry_digi
I provide the command sync and then reboot. No soundcard is available.
Then perform a testrun with ./check-system.dac, below is the logging:
Linux raspbmc 3.12.20 #2 PREEMPT Fri May 23 03:00:38 UTC 2014 armv6l GNU/Linux
Kernel: 3.12.20
PRETTY_NAME="Raspbian GNU/Linux 7 (wheezy)"
NAME="Raspbian GNU/Linux"
VERSION_ID="7"
VERSION="7 (wheezy)"
ID=raspbian
ID_LIKE=debian
ANSI_COLOR="1;31"
HOME_URL="http://www.raspbian.org/"
SUPPORT_URL="http://www.raspbian.org/RaspbianForums"
BUG_REPORT_URL="http://www.raspbian.org/RaspbianBugs"
snd_soc_pcm5102a module not loaded
snd_soc_hifiberry_dac module not loaded
Sound cards
aplay: device_list:252: no soundcards found...
ALSA lib confmisc.c:768:(parse_card) cannot find card '0'
ALSA lib conf.c:4241:(_snd_config_evaluate) function snd_func_card_driver return ed error: No such file or directory
ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings
ALSA lib conf.c:4241:(_snd_config_evaluate) function snd_func_concat returned er ror: No such file or directory
ALSA lib confmisc.c:1251:(snd_func_refer) error evaluating name
ALSA lib conf.c:4241:(_snd_config_evaluate) function snd_func_refer returned err or: No such file or directory
ALSA lib conf.c:4720:(snd_config_expand) Evaluate error: No such file or directo ry
ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM default
aplay: main:682: audio open error: No such file or directory
When I add the lines in /etc/modules for the analog hifiberry, see below:
snd_soc_bcm2708
snd_soc_bcm2708_i2s
bcm2708_dmaengine
#snd_soc_wm8804
#snd_soc_hifiberry_digi
snd_soc_pcm5102a
snd_soc_hifiberry_dac
Save the modules, sync and reboot.
Run the testscript ./check-system.dac again, below is the logging:
pi@raspbmc:~$ aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: sndrpihifiberry [snd_rpi_hifiberry_dac], device 0: HifiBerry DAC HiFi pc m5102a-hifi-0 []
Subdevices: 1/1
Subdevice #0: subdevice #0
pi@raspbmc:~$ ./check-system.dac
Checking system
Linux raspbmc 3.12.20 #2 PREEMPT Fri May 23 03:00:38 UTC 2014 armv6l GNU/Linux
Kernel: 3.12.20
PRETTY_NAME="Raspbian GNU/Linux 7 (wheezy)"
NAME="Raspbian GNU/Linux"
VERSION_ID="7"
VERSION="7 (wheezy)"
ID=raspbian
ID_LIKE=debian
ANSI_COLOR="1;31"
HOME_URL="http://www.raspbian.org/"
SUPPORT_URL="http://www.raspbian.org/RaspbianForums"
BUG_REPORT_URL="http://www.raspbian.org/RaspbianBugs"
Sound cards
**** List of PLAYBACK Hardware Devices ****
card 0: sndrpihifiberry [snd_rpi_hifiberry_dac], device 0: HifiBerry DAC HiFi pc m5102a-hifi-0 []
Subdevices: 1/1
Subdevice #0: subdevice #0
Playing WAVE 'sin1000_48khz.wav' : Signed 16 bit Little Endian, Rate 48000 Hz, S tereo
What am I doing wrong? The Digital sound is not working
Date
Votes
16 comments
-
HiFiBerry team It looks like you used the test script for the HiFiBerry DAC, not the Digi. It seems, that the driver in the Linux 3.12 kernel is broken, go back to Linux 3.10. We're working on a fix.
Downgrade to 3.10:
rpi-update f6eef32dd6388c3b04dbf462bd324d93281bf397
Do not use the PCM5102 und HiFiBerry DAC driver in /etc/modules.
Best regards
Daniel -
Bas Hendrikx Hi Daniel,
Thank you for your quick response.
I have removed the DAC lines from /etc/modules.
Downgrade is not working at the moment, an error occurs when I try to downgrade:
pi@raspbmc:~$ rpi-update f6eef32dd6388c3b04dbf462bd324d93281bf397
-bash: rpi-update: command not found
pi@raspbmc:~$ sudo apt-get install rpi-update
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package rpi-update
Any idea?
The test script that I used is described on the DIGI HifiBerry, if it is not correct maybe the page must be updated. :)
Thank you.. -
HiFiBerry team What distribution are you using? -
Bas Hendrikx Hi Daniel,
The latest version of Sam's Raspbmc (was a clean install).
Linux raspbmc 3.12.20 #2 PREEMPT Fri May 23 03:00:38 UTC 2014 armv6l GNU/Linux
Br,
Bas -
HiFiBerry team We've got reports from other users having problems with the May release of Raspbmc. I recommend notifying Sam about the issue. He has a Digi board and can try to find the problem. As Raspbmc is not using the standard Linux kernel, I have no idea, what is the problem with it.
Alternatively have a look at OpenElec.
Best regards
Daniel -
HiFiBerry team Hi,
You can install the rpi-update script on RaspBMC by, (I'm writing this from memory, so may have missed some 'apt-get install' tools needed)
sudo apt-get update
sudo apt-get install git-core binutils curl
sudo curl -L --output /usr/bin/rpi-update https://raw.github.com/Hexxeh/rpi-update/master/rpi-update && sudo chmod +x /usr/bin/rpi-update
Then running it using,
sudo -E RPI_UPDATE_UNSUPPORTED=0 rpi-update f6eef32dd6388c3b04dbf462bd324d93281bf397
to revert the kernel. This will put a "stock" Raspbian 3.10.38+ kernel on, but it works for me - I'm a RaspBMC user too.
Hopefully, the 3.12.x kernel will be ready to be patched by the time Sam does another kernel update.
Cheers, Craig -
HiFiBerry team Hi Craig,
thanks for sharing this information.
Best regards
Daniel -
Bas Hendrikx Hi Guys,
Downgrade worked but it looks like the Hifiberry Digi is not supported in the older kernels.
See the conversation and findings in the following link:
http://forum.stmlabs.com/showthread.php?tid=14455&pid=103692#pid103692
We will just wait till the kernel will be updated.
Regards,
Bas -
Bas Hendrikx Hi,
I got a response from Sam himself regarding the kernel issue with the Hifiberry.
I need to supply a syslog of the modprobe, or if I qoute Sam:
I would need syslog after modprobe to work out what's going wrong, not had much to go on here.
Can someone help how to get the syslog so we can provide Sam a lead to solve the Hifiberry problem with Raspbmc -
Bas Hendrikx SOLVED
From a raspbmc thread: http://forum.stmlabs.com/showthread.php?tid=14659
[quote='Sam Nazarko' pid='104346' dateline='1402542664']
I've had a stab at what I think might be causing HiFiBerry issues, which requires a new kernel. I suspect the Wolfson DAC which reconfigures the IRQs in bcm2708.c has been causing issues. Try with:
[code]
sudo rm /scripts/upd_hist/kver
sudo reboot
[/code]
After reboot, I was able to see my Hifiberry again, and when I play movies with dvdplayer (DTS) sound comes through the speakers -
info10 Hi guys,
Everything worked fine until I updated raspmbc. I have tried a clean install twice, tried Sam's solution, but I just can't get it to work. After I (clean) install raspmbc and follow the guide I see the digi card in raspbmc, but it outputs an awful noise. When I reboot it's gone. After a reboot sometimes the DAC card shows in the raspbmc settings (but not the HIFI card) and sometimes now card shows. I also see some kind of error while booting (during the pink raspberry logo screen). It shows just a split second, but I can see the word 'alas'.
When I use aplay -l I get the following (it seems the card is listed):**** 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
card 1: sndrpihifiber_1 [snd_rpi_hifiberry_digi], device 0: HifiBerry Digi HiFi wm8804-spdif-0 []
Subdevices: 1/1
Subdevice #0: subdevice #0
Can someone help me out please?
Br. -
HiFiBerry team Hi,
you need to remove the HiFiBerry DAC driver from /etc/modules.
Best regards
Daniel -
info10 Hi Daniel,
Thx for your fast replay. But I only see the digi drivers there?# /etc/modules: kernel modules to load at boot time.
#
# This file contains the names of kernel modules that should be loaded
# at boot time, one per line. Lines beginning with "#" are ignored.
# Parameters can be specified after the module name.
snd_soc_bcm2708_i2s
bcm2708_dmaengine
snd_soc_wm8804
snd_soc_hifiberry_digi -
HiFiBerry team I guess, Raspbmc is loading it with "modprobe", otherwise the "card0" HiFiBerry DAC should not be there. Unfortuately I don't know when Raspbmc is loading it. Please ask in the Raspbmc forum how to disable loading of teh HiFiBerry DAC driver.
Best regards
Daniel -
Jean-Baptiste HEREN Hi All,
I had the same issue, first it worked by reducing the volume to a very low value, but last RASPBMC update broke it.
I tried :
sudo -E RPI_UPDATE_UNSUPPORTED=0 rpi-update f6eef32dd6388c3b04dbf462bd324d93281bf397
Now I have one card,
pi@raspbmc:~$ cat /proc/asound/cards
0 [sndrpihifiberry]: snd_rpi_hifiber - snd_rpi_hifiberry_digi
snd_rpi_hifiberry_digi
Then XBMC sound interface ok but video playback sound will make NOISE only and slow down video display. Initially I followed the tuto from http://www.hifiberry.com/guides/hifiberry-raspbmc/
on dmesg I can see This[ 11.011273] snd-rpi-iqaudio-dac snd-rpi-iqaudio-dac.0: ASoC: CODEC pcm512x.1-004c not registered
[ 11.011358] snd-rpi-iqaudio-dac snd-rpi-iqaudio-dac.0: snd_soc_register_card() failed: -517
[ 11.011393] platform snd-rpi-iqaudio-dac.0: Driver snd-rpi-iqaudio-dac requests probe deferral
[ 11.151816] snd-rpi-iqaudio-dac snd-rpi-iqaudio-dac.0: ASoC: CODEC pcm512x.1-004c not registered
[ 11.151888] snd-rpi-iqaudio-dac snd-rpi-iqaudio-dac.0: snd_soc_register_card() failed: -517
[ 11.151920] platform snd-rpi-iqaudio-dac.0: Driver snd-rpi-iqaudio-dac requests probe deferral
[ 11.299990] snd_soc_hifiberry_dac:-2' invalid for parameter
index'
[ 13.131986] smsc95xx 1-1.1:1.0 eth0: hardware isn't capable of remote wakeup
[ 13.132405] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[ 13.918451] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
[ 14.298444] wm8804 1-003b: revision E
[ 14.326233] snd-hifiberry-digi snd-hifiberry-digi.0: wm8804-spdif <-> bcm2708-i2s.0 mapping ok
[ 14.342496] snd-rpi-iqaudio-dac snd-rpi-iqaudio-dac.0: ASoC: CODEC pcm512x.1-004c not registered
[ 14.342571] snd-rpi-iqaudio-dac snd-rpi-iqaudio-dac.0: snd_soc_register_card() failed: -517
[ 14.342604] platform snd-rpi-iqaudio-dac.0: Driver snd-rpi-iqaudio-dac requests probe deferral -
HiFiBerry team Dear Jean-Baptiste,
as Raspbmc isn't developed anymore and XBMC won't be fixed, I recommend upgrading to OSMC or OpenElec 5. At the moment OpenElec 5 seems to be more stable. The current OSMC alpha is still missing a few features (e.g. WLAN configuration).
Best regards
Daniel
Please sign in to leave a comment.