Hi all,
I have a Hifiberry DAC+ installed in my RasPi and Raspbian as the operating system. Since I used rpi-update some days ago, my soundcard isn't working correctly.
The drivers are installed as described in the documentation. The aplay -l command shows:
**** 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
In the syslog file the hardware gets detected but I am not sure whether everything is correct there.
May 15 21:14:39 raspberrypi kernel: [ 7.414069] snd-rpi-hifiberry-dacplus sound: ASoC: CPU DAI (null) not registered
May 15 21:14:39 raspberrypi kernel: [ 7.528058] snd-rpi-hifiberry-dacplus sound: snd_soc_register_card() failed: -517
May 15 21:14:39 raspberrypi kernel: [ 7.560263] usb 1-1.3: reset high-speed USB device number 4 using dwc_otg
May 15 21:14:39 raspberrypi kernel: [ 7.693040] platform sound: Driver snd-rpi-hifiberry-dacplus requests probe deferral
May 15 21:14:39 raspberrypi kernel: [ 7.760117] ieee80211 phy0: rt2x00_set_rt: Info - RT chipset 5592, rev 0222 detected
May 15 21:14:39 raspberrypi kernel: [ 7.857192] snd-rpi-hifiberry-dacplus sound: pcm512x-hifi <-> 20203000.i2s mapping ok
Especially the second line looks not very promising.
And the last thing. Starting the alsamixer tool, does not show any PCM settings.
Does anyone have an idea what is wrong with my Hifiberry?
Thanks
Date
Votes
20 comments
-
HiFiBerry team Hi,
the driver is loaded correctly, no problems here. Run alsamixer as root, your default user might not have the rights to access it.
Best regards
Daniel -
fr43nk Hi,
thank you for the reply. That helped me a lot not searching in the wrong direction. I was a little confused since the PCM mixer setter isn't available anymore - instead I use "Digital" for volume control and sound output.
Best regards,
Frank -
Andrew Pattison I have been having trouble with this as well. This prevents MediaPlayer (see http://petemanchester.github.io/MediaPlayer/) from accessing the volume control for the HifiBerry. Instead I am forced to use a software volume control in mpd and MediaPlayer itself.
Can you tell me if the HifiBerry DAC supports a hardware volume control? Also, is it not conventional to support a PCM volume control in ALSA? -
Andrew Pattison I have had a closer look at the volume controls available in amixer and alsamixer and I cannot find where there is a volume control for the HifiBerry DAC+ output, now that the PCM volume control is no longer present. Was this removed, or is this a bug? I have run alsamixer and amixer as both 'pi' and 'root'.
There is a volume control labelled 'digital' but this is set to 38% and causes distortion when I increase it to towards the top of its range.
Something looks not quite right to me. I would have expected the PCM volume control to still be there - it was working fine before I updated my Raspberry Pi's software. -
HiFiBerry team Mixer control name is "Digital"Simple mixer control 'Digital',0
Capabilities: pvolume pswitch penum
Playback channels: Front Left - Front Right
Limits: Playback 0 - 255
Mono:
Front Left: Playback 204 [80%] [-1.50dB] [on]
Front Right: Playback 204 [80%] [-1.50dB] [on]
Setting it to 70-80% should not result in any distortions. Maybe your amplification after the DAC is too high.
Best regards
Daniel -
Andrew Pattison Something is not right. I noticed that as well as the name of the mixer apparently changing from 'PCM' to 'Digital Playback Volume' (or 'Digital' in the list of simple controls) that the command 'amixer contents' now prints out the volume control somewhere in the middle of the list of controls - previously it was the first control listed. I don't know if this makes a difference. Something has gone wrong with how HifiBerry is being set up on the Pi with the latest software.
There is definitely a problem with the HifiBerry DAC+ on the latest Rasbian. The 'Digital' volume control defaults to 38% which results in a volume that seems to be the same as what the volume was before things broke. Before things broke I set the master volume to 84% to avoid distortion. The distortion was only slight at very high volumes and seems to have been caused by my equipment not liking the high levels the HifiBerry DAC+ was producing. Now what happens is that setting the 'Digital' volume to as little as 70% causes serious distortion.
I then noticed that I had set the control 'Playback Volume', now called 'Analogue Playback Volume' to 0,0 on the old software but on the new software it was set to 1,1. I therefore changed it to 0,0 and increased the master volume to 84% like is was with the old software. This resulted in serious distortion.
So two things are broken for me:
- MediaPlayer can't find a volume control for the HifiBerry DAC+ card
- the volume control that does exist is broken since it causes serious distortion towards the top end of its range, where it did not previously
Can you tell me if these changes are the result of work you, the makers of HifiBerry, have done on the software or if something else has changed? -
HiFiBerry team Hi Andrew,
we did not do any changes. However we do not have control over the Raspberry Pi kernel. I'm not aware of any changes in the last time. Can you please list the complete output of aplay -l. What is your kernel version?
Best regards
Daniel
-
Andrew Pattison pi@raspi3 ~ $ aplay -l
**** 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
pi@raspi3 ~ $ uname -a
Linux raspi3 3.18.11-v7+ #781 SMP PREEMPT Tue Apr 21 18:07:59 BST 2015 armv7l GNU/Linux
I configured the HifiBerry as per the instructions on your website at https://www.hifiberry.com/guides/configuring-linux-3-18-x/ -
HiFiBerry team Looks good so far. Please also post the output of amixer.
What media player software do you use? -
Andrew Pattison pi@raspi3 ~ $ amixer
Simple mixer control 'DSP Program',0
Capabilities: enum
Items: 'FIR interpolation with de-emphasis' 'Low latency IIR with de-emphasis' 'High attenuation with de-emphasis' 'Fixed process flow' 'Ringing-less low latency FIR'
Item0: 'FIR interpolation with de-emphasis'
Simple mixer control 'Analogue',0
Capabilities: pvolume penum
Playback channels: Front Left - Front Right
Limits: Playback 0 - 1
Mono:
Front Left: Playback 1 [100%] [0.00dB]
Front Right: Playback 1 [100%] [0.00dB]
Simple mixer control 'Analogue Playback Boost',0
Capabilities: volume penum
Playback channels: Front Left - Front Right
Capture channels: Front Left - Front Right
Limits: 0 - 1
Front Left: 0 [0%] [0.00dB]
Front Right: 0 [0%] [0.00dB]
Simple mixer control 'Auto Mute',0
Capabilities: pswitch penum
Playback channels: Front Left - Front Right
Mono:
Front Left: Playback [on]
Front Right: Playback [on]
Simple mixer control 'Auto Mute Mono',0
Capabilities: pswitch pswitch-joined penum
Playback channels: Mono
Mono: Playback [on]
Simple mixer control 'Auto Mute Time Left',0
Capabilities: enum
Items: '21ms' '106ms' '213ms' '533ms' '1.07s' '2.13s' '5.33s' '10.66s'
Item0: '21ms'
Simple mixer control 'Auto Mute Time Right',0
Capabilities: enum
Items: '21ms' '106ms' '213ms' '533ms' '1.07s' '2.13s' '5.33s' '10.66s'
Item0: '21ms'
Simple mixer control 'Clock Missing Period',0
Capabilities: enum
Items: '1s' '2s' '3s' '4s' '5s' '6s' '7s' '8s'
Item0: '1s'
Simple mixer control 'Deemphasis',0
Capabilities: pswitch pswitch-joined penum
Playback channels: Mono
Mono: Playback [on]
Simple mixer control 'Digital',0
Capabilities: pvolume pswitch penum
Playback channels: Front Left - Front Right
Limits: Playback 0 - 255
Mono:
Front Left: Playback 205 [80%] [-1.00dB] [on]
Front Right: Playback 205 [80%] [-1.00dB] [on]
Simple mixer control 'Volume Ramp Down Emergency Rate',0
Capabilities: enum
Items: '1 sample/update' '2 samples/update' '4 samples/update' 'Immediate'
Item0: '1 sample/update'
Simple mixer control 'Volume Ramp Down Emergency Step',0
Capabilities: enum
Items: '4dB/step' '2dB/step' '1dB/step' '0.5dB/step'
Item0: '4dB/step'
Simple mixer control 'Volume Ramp Down Rate',0
Capabilities: enum
Items: '1 sample/update' '2 samples/update' '4 samples/update' 'Immediate'
Item0: '1 sample/update'
Simple mixer control 'Volume Ramp Down Step',0
Capabilities: enum
Items: '4dB/step' '2dB/step' '1dB/step' '0.5dB/step'
Item0: '1dB/step'
Simple mixer control 'Volume Ramp Up Rate',0
Capabilities: enum
Items: '1 sample/update' '2 samples/update' '4 samples/update' 'Immediate'
Item0: '1 sample/update'
Simple mixer control 'Volume Ramp Up Step',0
Capabilities: enum
Items: '4dB/step' '2dB/step' '1dB/step' '0.5dB/step'
Item0: '1dB/step'
The media player I am using is simply called MediaPlayer and can be found here: http://petemanchester.github.io/MediaPlayer/. It is basically an enhanced UPnP network music player. -
Andrew Pattison I've just noticed that amixer reports 'Digital' is at 80%, which is at odds with what alsamixer shows. It is alsamixer that has a control named 'Digital Volume Control' that is initially set to 38% and causes serious distortion if set to high values.
It looks like the alsamixer app has also been broken by changes on the Pi. -
HiFiBerry team So far, so good. I don't see why this should result in clipping. Volume is now at 80%, You say you get clipping for volumes > 38%?
I suppose, the playback software has some problems here. Please try the following:
sudo apt-get install sox
play -n synth sine 1000
This will create full-scale sine signal. Check until what volume it works without clipping.
Best regards
Daniel -
Manuel Das Neves Hello !
I am in the same scenario with Volumio 1.55 . Just installed my new HiFiBerry Dac + and no volume hardware possibility ! -
HiFiBerry team Hi Manuel,
check with the Volumio developers. You might need to change the mpd configuration file to use the correct mixer device. However, if software volume control works well, there is no real need to change it.
Best regards
Daniel -
Andrew Pattison So far, so good. I don’t see why this should result in clipping. Volume is now at 80%, You say you get clipping for volumes > 38%?
No. The volume is at 80% in amixer. Using the alsamixer command, the volume in alsamixer is only at 38%, which looks wrong. Increasing the volume to around 60% or more in alsamixer causes distortion. amixer looks OK. It looks like whatever has changed on the Pi has broken MediaPlayer and alsamixer. -
HiFiBerry team What was your previous kernel version? -
cyril.cadenel Same thing here. The volume must be very low to avoid clipping. -
Andrew Pattison What was your previous kernel version?
I don't know but it was about 60 days old as my Pi was last rebooted about 60 days ago, before the reboot that loaded the problem kernel. -
DCLXVI I have the same problem with mplayer/DAC+ and I think its a problem in the newer kernel. if I install raspbian from last january mplayer adjust the alsamixer just fine. But when I install the latest raspbian, it only adjusts software wise. -
D Rush I had hardware audio working nicely on Volumio until I ran `sudo apt-get update` today. I am going back to that volumio image until someone comes up with a proper solution to this.
Please sign in to leave a comment.