After installing and configuring my new HifiBerry DAC+ everything seems to work fine. The device shows up as a soundcard, I can change the volume with alsamixer, the LED lights up.
But now whenever I try to play any sound through the device the Pi crashes. It just hangs completely and does not accept any input or network traffic. I tried speaker-test, aplay and mpd and the problem is always the same.
Do you have any idea what could be causing this?
Date
Votes
8 comments
-
HiFiBerry team Hi,
this is something we haven't seen before. Can you please login with 2 sessions. Have one session running the following command line:
while [ 1 ]; do dmesg; done
Then start playing sound from the other ssh session. And post the last lines of output the "dmesg" command shows.
Best regards
Daniel -
flowlee When I used "while [ 1 ]; do dmesg; done" the output just stopped at some random place in the rotation of dmesg. With "while [ 1 ]; do dmesg|tail -15; done" I just got the output that was last logged from the boot sequence:
[ 5.578898] bcm2708_i2c_init_pinmode(1,3)
[ 5.618786] bcm2708_i2c bcm2708_i2c.1: BSC1 Controller at 0x20804000 (irq 79) (baudrate 100000)
[ 6.286167] bcm2708-i2s bcm2708-i2s.0: Failed to create debugfs directory
[ 7.427123] pcm512x 1-004d: No SCLK, using BCLK: -2
[ 7.450873] pcm512x 1-004d: Completed initialisation - pcm512x_probe
[ 7.459641] pcm512x 1-004c: Failed to reset device: -5
[ 7.466683] pcm512x: probe of 1-004c failed with error -5
[ 10.914958] EXT4-fs (mmcblk0p2): re-mounted. Opts: (null)
[ 11.417355] EXT4-fs (mmcblk0p2): re-mounted. Opts: (null)
[ 12.177248] snd-rpi-hifiberry-dacplus snd-rpi-hifiberry-dacplus.0: pcm512x-hifi <-> bcm2708-i2s.0 mapping ok
[ 17.389828] FAT-fs (mmcblk0p1): Volume was not properly unmounted. Some data may be corrupt. Please run fsck.
[ 20.136305] smsc95xx 1-1.1:1.0 eth0: hardware isn't capable of remote wakeup
[ 21.684689] smsc95xx 1-1.1:1.0 eth0: link up, 100Mbps, full-duplex, lpa 0xC5E1
[ 23.123453] fuse init (API version 7.22)
[ 27.966447] Adding 102396k swap on /var/swap. Priority:-1 extents:1 across:102396k SSFS
There seems to be a problem with the module though. Is "Failed to reset device: -5" something to worry about? -
flowlee OKay, I think I figured it out. Lirc seems to be the culprit in my setup, once I deactivated that everything started to work as intended. Right now I'm enjoying high quality sound from my Pi!
Do you know of any incompatibilities with Lirc? -
HiFiBerry team Hi Flowlee,
we haven't heard about this, but this is possible. If LIRC reconfigures some of the pins used by the DAC, this might crash the system.
The "Failed to reset device: -5" is not a problem. The Linux kernel looks for the sound chip at different addresses.
Best regards
Daniel -
Peter Schwartz Hi Daniel,
hi flowlee,
I have the same problem. Today I received my DAC+ and installed it onto my RaspiB+. I am running raspbmc. I have an IR sensor attached to the raspi at GPIO18. The Software Installation worked liked explained (kernel update via rpi-update, put needed modules in /etc/modules). The Dac+ shows up when doing an "aplay -l". When starting to play a Sound, the green LED on the DAC+ goes on and after a short while the raspi crashes and reboots.
After doing a "service lirc stop" playing sounds worked fine.
So does anyone have an solution to this? Or is an IR sensor on GPIO18 incompatible with DAC+? -
HiFiBerry team Hi Peter,
the IR sensor on Pin 18 is incompatible with the HiFiBerry DAC+. Pins 18-21 are needed for the sound transport. Therefore you need to move the IR sensor to another GPIO.
Best regards
Daniel -
Peter Schwartz Hi Daniel,
thanks for the reply. I moved the IR sensor from GPIO18=Pin12 to GPIO22=Pin15 and everything works fine. Great.
For those who whish to do the same:- move/resolder the data out Connection from the IR Receiver (TSOP...) from PIN12 to PIN15
- tell LIRC to use a GPIO22 instead of GPIO18 (the default) by passing an Option to lirq_rpi:
- reboot
nano /etc/modprobe.d/lirq_rpi.conf
options lirc_rpi gpio_in_pin=22
save by pressing ^X
Peter -
HiFiBerry team Dear Peter,
thank you for this guide.
Best regards
Daniel
Please sign in to leave a comment.