You can control the volume of the headphone jack and input RCA connectors by default using the commandline tools alsamixer or amixer. However if you want to control the RCA line output volume, you would have noticed that you need to use the potentiometers. If however you want to control it from the command line, then this post explains how to setup the softvol plugin to allow you to control the RCA output connector volume from the command line.
The only audio channel which you can't control in the audio chip of this device is the output RCA connectors. If you look at the wm8731 datasheet you can confirm that Wolfson Micro haven't got a volume control in hardware for that audio channel. For that reason we can use ALSA's softvol plugin to control the volume from the command line or alsamixer, as well as the potentiometer.
Reading the information on softvol here, we need to setup out asoundrc file. After setting up (see the file listing below) we can play music to this new device like so :
Code: Select all
aplay -DRCAVolume awesome.track.wav
Code: Select all
amixer set Master 60%
If you want this type of volume as the default playback device (so that you don't have to use -DRCAVolume as the audio device) it is explained how to do it here : here
For example, save the following as ~/.asoundrc :
Code: Select all
pcm.!default {
type hw
card 0
}
ctl.!default {
type hw
card 0
}
pcm.RCAVolume {
type softvol
slave.pcm "default"
control.name "Master"
control.card 0
}
Hope you are enjoying the use of this product.
Matt