Sum up :
-
Save/copy the current etc/asound.sh somewhere
-
Use “aplay -l” to get a list of the devices on your system. The hw:X,Y comes from this mapping of your hardware – in this case, X is the card number, while Y is the device number.(linux - What do ALSA devices like "hw:0,0" mean? How do I figure out which to use? - Super User)
-
Edit /opt/musicbox/startup.sh to comment out line 39 :
#. /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%