Log in

View Full Version : Config change for piCorePlayer & Hifiberry Digi+



aBe
28-06-2015, 04:10
Need the advise from our Linux experts here.

I noticed that the piCorePlayer running with Hifiberry Digi+ seems to have the gain being set a bit far too high.
My wee class-D amp simply gets into distortion mode prematurely.

If I'm using the USB output from RP2, I can SSH in and tweak the Audio Output Level by changing the gain via Alsamixer command. But, it is not working out with Hifiberry Digi+.

The piCorePlayer path : /usr/local/sbin/config.cfg shows that

ALSAlevelout="Default"

Is there any way for me to play around with this command ?
I wonder what is the acceptable range of gain level that I should enter...from Min to Max

Light Dependant Resistor
28-06-2015, 05:56
Command amixer has ability to alter any soundcard setting
it is described here http://linuxcommand.org/man_pages/amixer1.html

open a Terminal type amixer - will list devices attached
You have to specify which device it is to alter
This is how a terminal looks altering the Line input

amixer -c 1 sset Line,0 60%

Simple mixer control 'Line',0
Capabilities: pvolume pswitch
Playback channels: Front Left - Front Right
Limits: Playback 0 - 31
Mono:
Front Left: Playback 19 [61%] [-6.00dB] [off]
Front Right: Playback 19 [61%] [-6.00dB] [off]

For most operating systems Pulse is the main sound card platform
and here amixer does the same thing in a terminal

amixer -D pulse sset Master 50%

Simple mixer control 'Master',0
Capabilities: pvolume pswitch pswitch-joined
Playback channels: Front Left - Front Right
Limits: Playback 0 - 65536
Mono:
Front Left: Playback 32768 [50%] [on]
Front Right: Playback 32768 [50%] [on]


amixer takes a bit of getting used to how to address it, but like anything on command line it is very capable and works
ie I must turn my volume up now !

Cheers / Chris

Krisbee
28-06-2015, 08:21
The Hifiberry Digi+ has no hardware volume control, so alsamixer, or amixer, are of no use to you. Either control the volume in software, for example on the main LMS web interface or an Andriod app on smartphone/tablet, and/or at the hifi amp itself.

aBe
30-06-2015, 22:43
OK thanks for the replies.
I'll try to dive a bit deeper into linux setting.

Not so keen in turning down the volume on Lms though, I'm afraid that it would affect overall SQ