Will it run out-of-the-box on a RPI B+?

I am considering getting a brand new RPI B+ with the HifiBerry add-on board.
Will Pi Musicbox run without any re-configurations on a RPI B+ with the HifiBerry add-on?
Or should I better get an older RPI B ?

Thanks for any suggestions!

MusicBox 0.5.1 RC1 almost ran out of the box on my Pi model B+ with the Wifiberry DAC+.

The only thing I had to do after putting the image on my SDcard was updating the firmware to support the new Hifiberry using rpi-update (which had to be installed as well).

MusicBox 0.5.1 RC1 ran out of the box on my PI B+ with a HifiBerry. I didn’t do any updates.

However I do have some issues with RC1 (I don’t think hardware related). See my other posts.

Well I got a RPI B+ together with a hifiBerry DAC+. Unfortunately I’ve had no luck in getting it to work yet. When I set the output to analog Musicbox plays fine.
When I set the output to i2s there is no sound at all.

I tried the test tone image from higiBerry (http://www.hifiberry.com/guides/sd-card-images/) and the test tone plays fine.

Any suggestions where to look, what logfiles to check?

Are you setting output = i2s or output = hifiberry_dacplus ? You must set it to output = hifiberry_dacplus as per the comments in settings.ini. If you are setting it correctly then please try the very latest version (http://www.woutervanwijk.nl/pimusicbox/musicbox0.5.1rc2.zip) and provide the output of

  • lsmod
  • cat /sys/class/sound/card*/device/modalias
  • aplay -l
  • cat /etc/asound.conf
  • cat /etc/modules
  • cat /etc/modprobe.d/blacklist.conf

Thanks Nick. I was running MusicBox 0.5. Didn’t have the hifiberry_dacplus setting in settings.ini.
I will try with 0.5.1rc2.

Okay, I am now running Musicbox 0.5.1rc2 and have set output to hifiberry_dacplus.
I do have sound now! But when playing from Spotify the sound is very very stuttering.

Here are my settings as you asked:

============================================================
root@MusicBox:~# lsmod
Module                  Size  Used by
iptable_filter          1485  1
xt_REDIRECT             1968  1
xt_tcpudp               2110  2
iptable_nat             2607  1
nf_conntrack_ipv4      12965  1
nf_defrag_ipv4          1491  1 nf_conntrack_ipv4
nf_nat_ipv4             3630  1 iptable_nat
nf_nat                 15166  3 nf_nat_ipv4,xt_REDIRECT,iptable_nat
nf_conntrack           87622  4 nf_nat,nf_nat_ipv4,iptable_nat,nf_conntrack_ipv4
ip_tables              11694  2 iptable_filter,iptable_nat
x_tables               17030  4 ip_tables,xt_tcpudp,iptable_filter,xt_REDIRECT
snd_soc_hifiberry_dacplus     2327  0
bcm2708_wdog            3545  1
ipv6                  316254  20
snd_bcm2835            19584  0
snd_soc_wm8804          7932  0
snd_soc_pcm512x         9034  1
snd_soc_bcm2708_i2s     6202  2
regmap_mmio             2818  1 snd_soc_bcm2708_i2s
snd_soc_core          127841  4 snd_soc_pcm512x,snd_soc_wm8804,snd_soc_hifiberry_dacplus,snd_soc_bcm2708_i2s
snd_compress            8259  1 snd_soc_core
regmap_i2c              1661  3 snd_soc_pcm512x,snd_soc_wm8804,snd_soc_core
snd_pcm_dmaengine       5505  1 snd_soc_core
regmap_spi              1913  3 snd_soc_pcm512x,snd_soc_wm8804,snd_soc_core
snd_pcm                83845  4 snd_bcm2835,snd_soc_core,snd_pcm_dmaengine
snd_page_alloc          5132  1 snd_pcm
snd_seq                55484  0
snd_seq_device          6469  1 snd_seq
snd_timer              20998  2 snd_pcm,snd_seq
leds_gpio               2079  0
led_class               4118  1 leds_gpio
snd                    62252  8 snd_bcm2835,snd_soc_core,snd_timer,snd_pcm,snd_seq,snd_seq_device,snd_compress
i2c_bcm2708             4943  0

============================================================
root@MusicBox:~# cat /sys/class/sound/card*/device/modalias
platform:bcm2835_AUD0
platform:snd-rpi-hifiberry-dacplus

============================================================
root@MusicBox:~# aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: ALSA [bcm2835 ALSA], device 0: bcm2835 ALSA [bcm2835 ALSA]
  Subdevices: 8/8
  Subdevice #0: subdevice #0
  Subdevice #1: subdevice #1
  Subdevice #2: subdevice #2
  Subdevice #3: subdevice #3
  Subdevice #4: subdevice #4
  Subdevice #5: subdevice #5
  Subdevice #6: subdevice #6
  Subdevice #7: subdevice #7
card 0: ALSA [bcm2835 ALSA], device 1: bcm2835 ALSA [bcm2835 IEC958/HDMI]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: sndrpihifiberry [snd_rpi_hifiberry_dacplus], device 0: HiFiBerry DAC+ HiFi pcm512x-hifi-0 []
  Subdevices: 0/1
  Subdevice #0: subdevice #0

============================================================
root@MusicBox:~# cat /etc/asound.conf
pcm.!default {
    type hw
    card 1
}
ctl.!default {
    type hw
    card 1
}

============================================================
root@MusicBox:~# cat /etc/modprobe.d/blacklist.conf
cat: /etc/modprobe.d/blacklist.conf: No such file or directory

Edit: I managed to fix the sound. In Settings.ini I set the output to:

output = alsasink buffer-time=300000 latency-time=20000

Spotify is now playing fine!

I did not release that version yet :slight_smile: Wanted to make sure if everything worked well, but it’s out now… lol

Hehe sorry!