Pi Musicbox volume control (for Amp hat) not working with Spotify Connect

Sum up :

#. /opt/musicbox/setsound.sh

  • Edit etc/asound.sh to remplace by ( change X and Y by your values ) :
pcm.!default {
    type plug
    slave.pcm  "softvol"
}
ctl.!default {
    type hw
    card X

}

pcm.softvol {
    type            softvol
    slave {
        pcm         "hw: X, Y"  
    }
    control {
        name        "PCM"
        card         X
    }
}
  • Use the following command to set the global volume (xx = desired volume). You can add it to a script that run at the startup.

amixer set PCM xx%

1 Like