Setting the max volume of the HiFiBerry


#1

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


#2

Hi @john

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

Regards!


#3

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


#4

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!


#5

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


#6

like this?


#7

Yessss!

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

Regards!


#8

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


#9

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?


#10

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.


#11

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):


#12

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.


#13

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