Setting the max volume of the HiFiBerry

Not sure if this is hardware or software.

Is it possible to set the max volume of the HIFIBerry? Running it directly into my Focusrite interface the signal is very hot.
is there a config file some where that it can be set to either +4 dBu or -10 dBV?

Thanks

John

Hi @john

Have you tried using alsamixer?
I use it to configure the audioinjector.

Regards!

ok, that helped thanks.
now what I set does it stay that way on reboot?

Yes, changes in alsamixer will be saved and restore after reboot.
In the other hand, should we add a configuration option for this in the webconf tool, @mheidt ? :wink:

Regards!

1 Like

Within the Audio-pane?
The challenge will be to enhance the generic config_block.html with a slider input.
I will check…

1 Like

like this?

Yessss!

If a slider input is too complex to have, we could live with a select box :wink:

Regards!

it’s checked into my branch.
The varname is ALSA_MASTER_VOLUME

We might have an issue. I mean challenge.
I tried to make it work and used amixer to get and set the volume.
I checked something in, which works for my Dac+Pro.
But other soundcards might have differently named mixer controls.
So I guess, I need to iterate over all Playback pvolume pswitch mixer controls and provide n sliders?
Or do you have a better idea?

Now with a picture:

Not all of those playback sliders are really adjustable. not even in alsamixer.
Some are 0-1 but i use 0-100%
Analogue f.e.: if i set it to 30, it will save as 0.
My proposal is to define filters for each soundcard.
In my case (DAC+) it’s only “Digital”, that i need.
Now we need to collect the mixer control names of the other cards.

2 Likes

Edit: After I posted this, I realized we are basically identical.

root@zynthian:~# amixer scontrols
Simple mixer control 'DSP Program',0
Simple mixer control 'Analogue',0
Simple mixer control 'Analogue Playback Boost',0
Simple mixer control 'Auto Mute',0
Simple mixer control 'Auto Mute Mono',0
Simple mixer control 'Auto Mute Time Left',0
Simple mixer control 'Auto Mute Time Right',0
Simple mixer control 'Clock Missing Period',0
Simple mixer control 'Deemphasis',0
Simple mixer control 'Digital',0
Simple mixer control 'Max Overclock DAC',0
Simple mixer control 'Max Overclock DSP',0
Simple mixer control 'Max Overclock PLL',0
Simple mixer control 'Volume Ramp Down Emergency Rate',0
Simple mixer control 'Volume Ramp Down Emergency Step',0
Simple mixer control 'Volume Ramp Down Rate',0
Simple mixer control 'Volume Ramp Down Step',0
Simple mixer control 'Volume Ramp Up Rate',0
Simple mixer control 'Volume Ramp Up Step',0

My /boot/config has these lines:

# Soundcard Config
dtoverlay=hifiberry-dacplus

My webconf for audio looks like this (which I think is pretty standard):

The changes are not in the master branch yet.
You need to checkout mheidt.
Or you wait, until it is merged.
But I could use more results of “amixer scontrols” of people with other soundcards.

Yes. My code is not in the master branch yet. Did you checkout the branch mheidt? Montag, 12 Juni 2017, 04:58vorm. +02:00 von beckdac discourse@zynthian.org :

beckdac
June 12
root@zynthian:~# amixer scontrols
Simple mixer control ‘DSP Program’,0
Simple mixer control ‘Analogue’,0
Simple mixer control ‘Analogue Playback Boost’,0
Simple mixer control ‘Auto Mute’,0
Simple mixer control ‘Auto Mute Mono’,0
Simple mixer control ‘Auto Mute Time Left’,0
Simple mixer control ‘Auto Mute Time Right’,0
Simple mixer control ‘Clock Missing Period’,0
Simple mixer control ‘Deemphasis’,0
Simple mixer control ‘Digital’,0
Simple mixer control ‘Max Overclock DAC’,0
Simple mixer control ‘Max Overclock DSP’,0
Simple mixer control ‘Max Overclock PLL’,0
Simple mixer control ‘Volume Ramp Down Emergency Rate’,0
Simple mixer control ‘Volume Ramp Down Emergency Step’,0
Simple mixer control ‘Volume Ramp Down Rate’,0
Simple mixer control ‘Volume Ramp Down Step’,0
Simple mixer control ‘Volume Ramp Up Rate’,0
Simple mixer control ‘Volume Ramp Up Step’,0
My /boot/config has these lines:

Soundcard Config

dtoverlay=hifiberry-dacplus