I have a raspberry pi with a phat dac and trying to play music with MOC (music on console).
I configured it using the bash script from pimoroni:
curl -sS https://get.pimoroni.com/phatdac | bash
When I try to start MOC server, I get the error: FATAL_ERROR: No valid sound driver!
When I test it, sound works fine (I am using:
speaker-test -c2 -t wav)
I went a bit further and when running MOC in debug mode (
mocp -SF), it turns out, that it doesn’t find a mixer.
alsa.c:365 alsa_init_mixer_channel(): ERROR: Can’t find mixer PCM
When checking out
alsamixer: I get the error: This device does not have any controls the card that is set (top left) is snd_rpi_hifiberry_dac.
Anybody know how to get the PHAT DAC working with MOC? How can you set the correct mixer?