Hello,
I tried to install Pi Musicbox on my B+ with the HiFiBerry Digi+ module for some weeks now. I always get the same error and no sound over spdif or toslink:
bcm2708-i2s bcm2708-i2s.0: I2S SYNC error!
Here is what I did:
I tried the latest stable Image of Pi Musicbox and also the Prerelease versions (last one was musicbox0.5.1rc2.img). After installation I get sound over HDMI. I checked the Digi+ module with the test image from HiFiBerry - it also works and prodcues the test tone over spdif and toslink. So basically Pi Musicbox installation and the Digi+ module seem to be okay.
The Pi Musicbox still automatically selects the HDMI output and ignores the Digi+ although it recognizes the presence of the Hifiberry digi. So I checked /opt/musicbox/setsound.sh – the script looks for the device
identification snd-rpi-hifiberry-digi:
elif [[ ${dev[1]} == "snd-rpi-hifiberry-digi" ]]; then
but the id supplied is simply snd-hifiberry-digi, so I changed it to:
elif [[ ${dev[1]} == "snd-hifiberry-digi" ]]; then
After rebooting the right output is selected but the SYNC error is shown and no sound at all.
bcm2708-i2s bcm2708-i2s.0: I2S SYNC error!
I posted this topic on the HiFiBerry support forum before but Daniel from the forum asked me to investigate in this forum. You can find more informations in my post there
Any help would be appreciated.
Thanks in advance, Uwe
Aside from Mopidy, shairport is the other process possibly using the soundcard. You’d maybe need to comment out the bottom part of /etc/monit/monitrc to prevent monit from automatically restarting it once you kill it.
Rene, thank you for the hint. I read your post before (and a lot other posts, too) and I think I did it all the same way, you did. Except that I use the Digi+ instead of the Dac plus. So I set output = hifiberry_digi instead of hifiberry_dacplus. The strange thing is that the Digi+ was still ignored so I had to change setsound.h as shown in my first post.
I have same issue. I previously used version 0.5 and with help of this thread I was able to listen through SPDIF. Can somebody to guide me how can I fix this in version 0.5.1rc2?
the configuration of the Digi and Digi+ is the same. Both boards are based on the same hardware, only the form factor is different. Do you have a Digi? I can also provide a Digi+ to you if you want to test this.
I noticed that as well as the sync error message, I was also getting ‘DMA transfer could not be terminated’ which would also prevent alsa force-reload from working once I had attempted to play any sound.
The same error would crop up again during shutdown - I don’t really understand these things, but I think something to do with the bcm2708_dmaengine driver is locking the digi somehow and not releasing.
I’ve hit the limit of my understanding/googling, so have given up and gone back to volumio (which is nowhere near as good - but I can get it to play music)
Hi,
This works!
Changing the asound.conf did the trick.
Is there someone who can make this work after a reboot?
Or tell me the how to fix it.
Maybe Wouter van Wijk himself?
Please help!
Musicbox is fantastic, but i need this digital output!
Hi kingosticks,
I am not sure if i use the latest version setsound.sh
I installed a fresh image from musicbox0.5.3 so i think i have the latest version.
Linux is new for me… but i am trying…
it keeps playing over my HDMI port
but if i use the sollution from Daniel Swenson (post of 12feb) it works ok, but after a reboot musicbox plays over HDMI again.
Just so we are 100% clear. You need to completely replace the old version
of setsound.sh with the one from github. You then need to make the file
executable. You then need to set hifiberry_digi (underscore, I think, not
hyphen) in settings.ini and reboot.
Yes, but i did the setting to hifiberry-digi first.
First tried with original setsound.sh, and setting audio output to hifiberry-digi. update and reboot…
this didn’t work. (i checked its setting in settings.ini)
I did edit the file setsound.sh . Removed all lines and then pasted your setsound.sh lines into the old file.
saved it (ctrl-o)
chmod +x setsound.sh
did a reboot.
Tried to play a stream and then i got the i2s sync error.
info:
Raspberry pi model B
DAC: Geekroo Digital DAC HiFi Picobber Using WM8804G