Hi again,
Currently using Mopidy on a Raspberry Pi 4 with Hifiberry DAC2 HD. This is a pretty new configuration and I’m still trying to get the hardware mixer to work with it. Without any mixer configured, playback is good, but I’m losing about 20db of gain on my amplifier. I just had a small breakthrough with amixer so I think I’m close.
Poking at amixer, I found:
amixer -c 2
Simple mixer control 'DAC',0
Capabilities: pvolume
Playback channels: Front Left - Front Right
Limits: Playback 0 - 240
Mono:
Front Left: Playback 200 [83%] [-20.00dB]
Front Right: Playback 200 [83%] [-20.00dB]
Simple mixer control 'DAC Invert Output',0
Capabilities: pswitch pswitch-joined
Playback channels: Mono
Mono: Playback [off]
Simple mixer control 'DAC Rolloff Filter',0
Capabilities: pswitch pswitch-joined
Playback channels: Mono
Mono: Playback [off]
setting the DAC’s simple control to 240 gives me 0dB gain on my amp:
amixer -c 2 sset DAC
Simple mixer control 'DAC',0
Capabilities: pvolume
Playback channels: Front Left - Front Right
Limits: Playback 0 - 240
Mono:
Front Left: Playback 240 [100%] [0.00dB]
Front Right: Playback 240 [100%] [0.00dB]
so, I’m thinking my mopidy.conf should have something like:
[audio]
output = alsasink device=hw:2,0
mixer = alsamixer
mixer_volume = 100
[alsamixer]
card = 2
control = DAC
min_volume = 0
max_volume = 240
volume_scale = linear
Looking at alsamixer’s source, I think this should work. I’m going to test and report back.