Hi,
I can't get my HiFiBerry DAC working on my clean install raspian.
Some info about my system (outputed from your script):
./check-system.dac
Checking system
Linux nordlys 4.1.6+ #810 PREEMPT Tue Aug 18 15:19:58 BST 2015 armv6l GNU/Linux
Kernel: 4.1.6+
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"
bcm2708_dmaengine module not loaded
module file /lib/modules/4.1.6+/kernel/drivers/dma/bcm2708-dmaengine.ko not found
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 returned 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 error: 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 error: No such file or directory
ALSA lib conf.c:4720:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM default
aplay: main:682: audio open error: No such file or directory
So the issue seems to be on those lines:
bcm2708_dmaengine module not loaded
module file /lib/modules/4.1.6+/kernel/drivers/dma/bcm2708-dmaengine.ko not found
Why is that module file not found, and how could I get it (or work around it) for my kernel version.
As for other modules, everything seems to be loaded correctly
lsmod
Module Size Used by
snd_soc_hifiberry_dac 2911 0
snd_soc_bcm2708_i2s 7619 0
snd_soc_pcm512x 18001 0
regmap_spi 2315 0
regmap_i2c 3346 0
regmap_mmio 3556 1 snd_soc_bcm2708_i2s
snd_soc_pcm5102a 2101 0
snd_soc_core 168382 4 snd_soc_pcm512x,snd_soc_hifiberry_dac,snd_soc_pcm5102a,snd_soc_bcm2708_i2s
snd_compress 8824 1 snd_soc_core
snd_pcm_dmaengine 5778 1 snd_soc_core
snd_pcm 92573 4 snd_soc_pcm512x,snd_soc_core,snd_soc_hifiberry_dac,snd_pcm_dmaengine
snd_seq 62040 0
snd_seq_device 5130 1 snd_seq
snd_timer 23456 2 snd_pcm,snd_seq
snd 68161 6 snd_soc_core,snd_timer,snd_pcm,snd_seq,snd_seq_device,snd_compress
arc4 1972 2
rt2800usb 18922 0
rt2800lib 82001 1 rt2800usb
rt2x00usb 11926 1 rt2800usb
rt2x00lib 47841 3 rt2x00usb,rt2800lib,rt2800usb
mac80211 623160 3 rt2x00lib,rt2x00usb,rt2800lib
joydev 9909 0
cfg80211 501663 2 mac80211,rt2x00lib
evdev 11370 2
crc_ccitt 1620 1 rt2800lib
rfkill 22491 2 cfg80211
i2c_bcm2708 6252 0
spi_bcm2835 7796 0
uio_pdrv_genirq 3690 0
uio 10009 1 uio_pdrv_genirq
Ideas_
Thanks, and sorry for the long output copypastes
Date
Votes
24 comments
-
HiFiBerry team The check-system script is very old and does not work with Linux 4.x. You need to configure your system like documented here:
https://www.hifiberry.com/guides/configuring-linux-3-18-x/
Best regards
Daniel -
Jordi Frances I did that, and it works, or at least I get further than i used to. Now aplay -l lists the card. But still i can't get any sound out of it. Even worse...trying to get any sound out of it crashed the system completely...it brings down my ssh connection. And have to power cycle the board.
One peculiarity: My raspberry-blacklist file...was empty to start with.
To test the card I tried to play a flac file with mplayer
This is the error i get:
AO: [pulse] Init failed: Connection refused
Failed to initialize audio driver 'pulse'
Trying to run check script to play that .wav file....gives the same faulty behaviour.
Some help please -
Jordi Frances Addendum:
Dmesg shows some failure -517, as shown here:
pi@nordlys ~ $ dmesg | grep snd
[ 6.612511] snd-hifiberry-dac sound: ASoC: CPU DAI (null) not registered
[ 6.922899] snd-hifiberry-dac sound: snd_soc_register_card() failed: -517
[ 7.257755] snd-hifiberry-dac sound: ASoC: CODEC DAI pcm5102a-hifi not registered
[ 7.281434] snd-hifiberry-dac sound: snd_soc_register_card() failed: -517
[ 7.305457] snd-hifiberry-dac sound: pcm5102a-hifi <-> 20203000.i2s mapping ok -
HiFiBerry team The mplayer message says, that pulseaudio is not installed, which is perfectly ok.
The dmesg message is ok, it say that the driver is loaded correctly. If the system crashes, this looks like a resource conflict. Do you have any other driver loaded that uses the GPIOs, e.g. LIRC?
Best regards
Daniel -
Jordi Frances Sorry, I was out of home a few days. Lets try again.
This is my lsmod
jordi@nordlys ~ $ lsmod
Module Size Used by
snd_soc_pcm512x 18001 0
regmap_spi 2315 0
regmap_i2c 3346 0
arc4 1972 2
rt2800usb 18922 0
rt2800lib 82001 1 rt2800usb
rt2x00usb 11926 1 rt2800usb
rt2x00lib 47841 3 rt2x00usb,rt2800lib,rt2800usb
mac80211 623160 3 rt2x00lib,rt2x00usb,rt2800lib
cfg80211 501663 2 mac80211,rt2x00lib
crc_ccitt 1620 1 rt2800lib
rfkill 22491 2 cfg80211
snd_soc_bcm2708_i2s 7619 2
regmap_mmio 3556 1 snd_soc_bcm2708_i2s
snd_soc_hifiberry_dac 2911 0
snd_soc_pcm5102a 2101 1
snd_seq 62040 0
snd_soc_core 168382 4 snd_soc_pcm512x,snd_soc_hifiberry_dac,snd_soc_pc m5102a,snd_soc_bcm2708_i2s
snd_seq_device 5130 1 snd_seq
snd_compress 8824 1 snd_soc_core
snd_pcm_dmaengine 5778 1 snd_soc_core
snd_pcm 92573 4 snd_soc_pcm512x,snd_soc_core,snd_soc_hifiberry_d ac,snd_pcm_dmaengine
i2c_bcm2708 6252 0
snd_timer 23456 2 snd_pcm,snd_seq
spi_bcm2835 7796 0
snd 68161 6 snd_soc_core,snd_timer,snd_pcm,snd_seq,snd_seq_d evice,snd_compress
uio_pdrv_genirq 3690 0
uio 10009 1 uio_pdrv_genirq
I fail to see any conflicting modules that could interfere with GPIO usage, but i might be wrong. Does anyone see anything there? -
HiFiBerry team Looks good so far. I'm not sure if there is any issue with the 4.1.6 kernel. Kernels change often and we can't test every version.
Try the following - install a pure Raspbian without updating the kernel. The easiest way to to this and configure it correctly is our installer:
https://www.hifiberry.com/2015/09/help-us-to-help-you/
This should create a Raspbian that is correctly configured.
Best regards
Daniel -
Jordi Frances I will do that and let you know, at least then we will know if it is a 4.1.6 specific version.
I also bought an AMP+ for my Raspi2, again I'll try with vanilla raspian (latest kernel) and with the one from your tool. And post my findings. -
sangwinc Ok, I've got exactly the same problem I'm afraid! I've only just seen this post, after a couple of hours of playing around...
The instructions suggest (see https://www.hifiberry.com/guides/updating-the-linux-kernel/ ) we should update the kernel, so its reasonable to assume the latest kernel will be supported! I've pasted results from your check script below.
I write plenty of software Daniel, so I'm painfully aware of the difficulties of keeping software up to date against a moving background! Can you add a note to your install instructions about not yet supporting the latest version until it has been tested and a fix posted?
I'm very unwilling to reinstall an earlier kernel from scratch because my Pi is a home server running a number of other servers, e.g. weather monitoring, webcams etc. Reinstating this would be days of work. A reinstall assumes the pi is only going to be a music server. If I'd wanted a dedicated music server I'd have purchased one off the shelf.....
Chris
------------------
Linux raspberrypi174 4.1.7+ #817 PREEMPT Sat Sep 19 15:25:36 BST 2015 armv6l GNU/Linux
Kernel: 4.1.7+
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"
bcm2708_dmaengine module not loaded
module file /lib/modules/4.1.7+/kernel/drivers/dma/bcm2708-dmaengine.ko not found -
HiFiBerry team Hi Sang,
I'm not sure if this is a problem with the 4.1.7 kernel. You can downgrade the kernel with rpi-update without reinstalling the system.
You say that you have the same problem, but I'm not sure which one you're referring to. Is the driver loaded? Is the card listed? What exactly isn't working?
Best regards
Daniel -
sangwinc Ok Daniel.
Message to self: RTFM.
Thanks, what a great little product!
C -
Thomas Parquier Hello, same problem here : system upgraded to 4.x kernel. So I used the following command :sudo rpi-update af4ff92ff9cf585c9cf4ada6ece8671cfce0a8e3
but still no bcm2708_dmaengine.ko...
[edit]
I wanted to use installer, but no linux version...
[/edit] -
HiFiBerry team The bcm2708_dmaengine.ko isn't used anymore since a long time. This is not a problem. What exactly isn't working for you?
Best regards
Daniel -
Thomas Parquier check-system.dac is telling me there are missings things. Also I can't hear any sound.
kernel : 3.18.13+
hifiberry dac+ light
$ aplay -l
Sound cards
**** Liste des Périphériques Matériels PLAYBACK ****
carte 0: sndrpihifiberry [snd_rpi_hifiberry_dac], périphérique 0: HifiBerry DAC HiFi pcm5102a-hifi-0 []
Sous-périphériques: 1/1
Sous-périphérique #0: subdevice #0
$ aplay -L
null
Discard all samples (playback) or generate zero samples (capture)
pulse
PulseAudio Sound Server
sysdefault:CARD=sndrpihifiberry
snd_rpi_hifiberry_dac,
Default Audio Device
$ aplay /usr/share/scratch/Media/Sounds/Vocals/Singer2.wav
Lecture WAVE '/usr/share/scratch/Media/Sounds/Vocals/Singer2.wav' : Signed 16 bit Little Endian, Fréquence 11025 Hz, Mono
aplay: set_params:1087: Nombre de canaux non disponible
Here is an error from syslog :
Oct 15 18:49:17 soundsystem kernel: [ 7.092882] snd-hifiberry-dac sound: snd_soc_register_card() failed: -517
Finally, I also added the following in config.txt :
# uncomment to force a HDMI mode rather than DVI. This can make audio work in
# DMT (computer monitor) modes
hdmi_drive=2
# Uncomment some or all of these to enable the optional hardware interfaces
dtparam=i2c_arm=on
dtparam=i2s=on
dtparam=spi=on
# Additional overlays and parameters are documented /boot/overlays/README
dtoverlay=hifiberry-dac -
HiFiBerry team The card is configured correctly. You're trying to play back a file with 11kHz sample rate. This is not supported. You need to use at least 44.1kHz sample rate. Also Mono playback is not supported. Use mplayer instead of aplay. It might be able to convert it to the correct channel count and sample rate (but I'm not sure about it).
Best regards
Daniel -
Thomas Parquier check-system.dac is not audible neither, although it plays a 48KHz audio file...
same thing with mplayer :/
I cant set volume with alsamixer neither.
I've checked cables, I'm gonna check again config, and will reinstall pulseaudio. -
HiFiBerry team The DAC+ light does not have volume control, therefore you can't control the volume with alsamixer. Pulseaudio configuration is very complex, please do not use this for tests! There are too many things that can go wrong with pulseaudio.
check-system.dac is an old outdated script that should not be used anymore.
For a good test, remove pulseaudio completely and then use mplayer or sox to play back a test tone.
Best regards
Daniel -
Thomas Parquier I've completely remove pulseaudio (yet I'll have to share dac+ light between multiple apps), still I cant get no sound...
I've tried the following command$ mplayer sin1000_48khz.wav
everything seems to work, excepted there is no sound out of speakers. -
HiFiBerry team Ok, let's check further. How do you connect the loudspeaker to your Raspberry Pi? Did you check the whole cabling?
To make sure it is not some problem with the installation, I recommend to use our test image from here:
https://www.hifiberry.com/guides/sd-card-images/
Best regards
Daniel -
Thomas Parquier Cabling is ok, since it was working since then with initial onboard device.
I'll try the raspbian image with autodetection. Will it work with dac+ light ? -
HiFiBerry team Hi Thomas,
please try the "Test tone image". It creates a 1kHz sine test tone. What amplifier do you use?
Best regards
Daniel -
Thomas Parquier OK...
the amplifier is an old AKAI with RCA inputs. -
Thomas Parquier Ok, same thing : no sound... :/ -
Thomas Parquier some errors appeared while booting, but I didnt have time to read them. -
HiFiBerry team Hi Thomas,
at this point I can't say what might be wrong. We have to check the card here. I will send you an email with further details.
Best regards
Daniel
Please sign in to leave a comment.