I am having trouble getting the pi-dac to work with PiMusicbox. I have loaded the modules and the sound card appears in ‘aplay -l’ but Musicbox doesn’t use it as the sound card.
Sound output works through ‘analogue’ in settings, but changing it to ‘i2s’ does not seem to have any effect.
Is there any other files that you need to edit? I know that in Volumio you have to edit ‘/etc/mpd.conf’ but I do not seem to be able to find that file in Pi Musicbox.
Edited /opt/musicbox/setsound.sh and changed this line
elif [[ ${dev[1]} == "snd-hifiberry-dac" ]]; then
I2S_CARD=$num
log_progress_msg "found i2s device: card$I2S_CARD" "$NAME"
fi
to
elif [[ ${dev[1]} == "snd"* ]]; then
I2S_CARD=$num
log_progress_msg "found i2s device: card$I2S_CARD" "$NAME"
fi
And reboot.
The change is persistent and the sound continues to work. The only problem I have had is with the hardware volume control on the Pi Dac. I changed the settings to enable hardware volume control but it seems to go between either really quiet or really loud.
I rewrote parts of the startup scripts. IQ Dac is working. You can try this alpha version: http://pimusicbox.com/musicbox0.5.1alpha.zip The setup page does not work though.
If you do, please share if it works!