Mixer controls on the HiFiBerry boards

 

Mixer controls on the HiFiBerry boards

This is an archived documentation. It won't be updated anymore and it might not be accurate anymore.

Many HiFiBerry boards come with integrated volume control.

Preparations

In some distributions, the needed tools are not installed by default, therefore you should install them first. On Debian based distributions this can be done with the following command:

sudo apt-get install alsa-utils

Change volume

The easiest way is using “alsamixer”. You can also use “amixer” if you want to set a specific volume non-interactively.

Controls of the cards

DAC+, Amp2

While there are a lot of mixer controls on the DAC+, you only need to care about one named “Digital” which is the main volume control.

amixer sset PCM 90%

All other mixer control allow access to low-level functions of the sound chip, you won’t need them. Unfortunately it is not easy to remove these controls as they are part of a kernel driver that is not maintained by us. Just make sure the “Playback Boost” is set to 0%.

DAC2HD

The main volume control is named “DAC”.

Amp+ (not Amp2!)

There are two controls: Master and Channels. With the master control you control the overall volume while “Channels” can be used to set different volumes on the left and right channel. Note that excessive volumes can damage your speakers. Therefore we recommend setting the volume not too high on startup.

amixer sset Master 70%
amixer sset Channels 70%,70%

DAC+ Zero, DAC+ Light, MiniAmp

These boards do not feature a hardware volume control. Therefore, no ALSA mixer controls are available.

Store/restore volume settings

On Raspbian a shutdown script is used to store the current volume settings. However many people shutdown their system by removing the power (not optimal, but usually this works without problems). In this case, the latest volume settings are not stored. You can do this by hand with the command

alsactl store

Last updated: July 24, 2020