[Solved] rasp b+ hifiberry dac+ nohardware volume control

Hi
first of all thank you for this beautiful piece of software.
Unfortunately i have a problem which i can’t solve on my own.
Since I updated to Volumio 1.55 (raspberry b+ hifiberry dac+) the hardware mixer can’t be controlled from the UI. Volume control does not react.
It allways jumps back to 100.

aplay -l returns

root@volumio:~# aplay -l **** List of PLAYBACK Hardware Devices **** card 0: sndrpihifiberry [snd_rpi_hifiberry_dacplus], device 0: HiFiBerry DAC+ HiFi pcm512x-hifi-0 [] Subdevices: 0/1 Subdevice #0: subdevice #0 card 1: ALSA [bcm2835 ALSA], device 0: bcm2835 ALSA [bcm2835 ALSA] Subdevices: 8/8 Subdevice #0: subdevice #0 Subdevice #1: subdevice #1 Subdevice #2: subdevice #2 Subdevice #3: subdevice #3 Subdevice #4: subdevice #4 Subdevice #5: subdevice #5 Subdevice #6: subdevice #6 Subdevice #7: subdevice #7 card 1: ALSA [bcm2835 ALSA], device 1: bcm2835 ALSA [bcm2835 IEC958/HDMI] Subdevices: 1/1 Subdevice #0: subdevice #0

so it seems that Volumio recognizes the dac+

mpd.conf looks like this

[code]###################################

Auto generated mpd.conf file

please DO NOT edit it manually!

Use player-UI MPD config section

###################################

follow_outside_symlinks “yes”
follow_inside_symlinks “yes”
db_file “/var/lib/mpd/tag_cache”
sticker_file “/var/lib/mpd/sticker.sql”
log_file “/var/log/mpd/mpd.log”
pid_file “/var/run/mpd/pid”
music_directory “/var/lib/mpd/music”
playlist_directory “/var/lib/mpd/playlists”
state_file “/var/lib/mpd/state”
user “mpd”
bind_to_address “any”
port “6600”
zeroconf_enabled “yes”
zeroconf_name “volumio”
samplerate_converter “Fastest Sinc Interpolator”
volume_normalization “yes”
audio_buffer_size “2048”
buffer_before_play “20%”
filesystem_charset “UTF-8”
id3v1_encoding “UTF-8”
gapless_mp3_playback “yes”
auto_update “yes”
group “audio”
max_connections “20”

decoder {
plugin “ffmpeg”
enabled “yes”
}

input {
plugin “curl”
}

audio_output {

             type           "alsa"
             name           "Output"
             device         "hw:0,0"
             mixer_control  "Playback Digital"
             mixer_device   "hw:0"
             mixer_index    "0"
             dop    "no"

}[/code]

It seems to be a correct configuration, but volume does not work :cry:

Does anyone have similar prolems???
Do I miss something??? I am not a Unix expert but I tried to figure it out myself, but can’t find a solution therefore any help is apreceated.

Greetings from Germany
Peer

Hi…
please check your /boot/config.txt file. Volumio 1.55 now uses device tree overlay support for your HiFiBerry Dac+. There should be a line in /boot/config.txt

dtoverlay=hifiberry-dacplus

now go to /etc/mpd.conf and change the mixer control to:

mixer_control   "PCM"

Does this help?

Hello tracer5

I have exactly the same problem. I added dtoverlay=hifiberry-dacplus to /boot/config.txt (the line was missing).

I also changed mixer_control "PCM" in /etc/mpd.conf and restarted MPD.

But this does not change anything, I still can not control the volume via the hardware. Do you have any other idea ?

The weird thing is that amixer does not give any result, but aplay detects my hifiberry

# aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: sndrpihifiberry [snd_rpi_hifiberry_dac], device 0: HifiBerry DAC HiFi pcm5102a-hifi-0 []
  Subdevices: 1/1
  Subdevice #0: subdevice #0
# amixer
#

Hi…
Do you have the Hifiberry DAC or the DAC+?
Your aplay -l output shows the DAC, not the DAC+. The aplay -l output for the DAC+ is

aplay -l The hifiberry dacplus is the only installed soundcard (normally card 0):

**** List of PLAYBACK Hardware Devices **** card 0: sndrpihifiberry [snd_rpi_hifiberry_dacplus], device 0: HiFiBerry DAC+ HiFi pcm512x-hifi-0 [] Subdevices: 1/1 Subdevice #0: subdevice #0

It is possible that the in /boot/config.txt file there is a second

line causing the wrong driver to be used. Please check.

Hi tracer5,
this worked for me. Thank you very much!!!
The /boot/config.txt allready had the dtoverlay set correctly, but mixer was on “Player Digital”.
I changed accordingly rebooted and all is fine now.
Thanks again.
Peer

Hello tracer5,

You’re absolutely right I have the DAC, not the DAC+. Silly I am ^^ Can the volume of the DAC be controlled by the hardware ?

I tried to set dtoverlay=hifiberry-dac in /boot/config.txt and rebooted, but it still does not work.

Hi…
The HiFiBerry DAC uses the PCM5102A chip, so does not have hardware volume control. You need to use software volume control.

The HiFiBerry DAC+ uses the PCM5122 chip and does have hardware volume control.

Hello,
I have the DAC (not the DAC +) and I didn’t find the way to manage volume under Volumio when I listen music from a NAS. You write that is not possible because this modul haven-t the good process but with Airplay I can control it.
So I don’t understand where is my problem.
My Volumio version is 1.5
My config.txt :
dtoverlay=hifiberry-dac

In my /etc/mpd.conf
audio_output {

             type           "alsa"
             name           "Output"
             device         "hw:0,0"
             mixer_control  "PCM"
             mixer_device   "hw:0"
             mixer_index    "0"
             dop    "no"

}
In the system interface, only Hifyberry works (no Hifyberry +)
Any idea ?
Thx
Nicolas