Good Morning,
I am a Newbie on the HiFiBerry. a couple of days ago, I got the new DAC+. The installation went well and I was able to configure and update all the things mentioned in the Guide/support section.
While booting the Pi, the gree LED is flashing, so I assume that the board is correct connected. Within XBMC, I can set the Audio Output to the Alsa hifiberry soundcard. But the soundcard there, is listed as DAC, not as DAC+ (DACPLUS).
Issuing aplay -l will show me two installed cards:
=====================================================
pi@raspbmc:~$ 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
card 1: sndrpihifiber_1 [snd_rpi_hifiberry_dacplus], device 0: HiFiBerry DAC+ HiFi pcm512x-hifi-0 []
Subdevices: 1/1
Subdevice #0: subdevice #0
====================================================
I don't know if this is correct, but at the end, I am not getting any sound out of my amplifier. Maybe it is connected wrong? I do have a Denon AVT-700RD and connected the DAC+ first on the VCR input (no success) and then on the Phono (no success.
Please advice, what I am doing wrong.
Many thanks in advance
Bernd
Date
Votes
20 comments
-
HiFiBerry team Hi,
it seems, that you have also configrued the HiFiBerry DAC in /etc/modules. Remove the line "snd_soc_hifiberry_dac" from /etc/modules.
Best regards
Daniel -
bernd Thanks Daniel,
but see below the extract of the /etc/modules
snd_soc_bmc2708
bcm2708_dmaengine
snd_soc_hifiberry_dacplus
no line for snd_soc_hifiberry_dac
Thx
Bernd -
HiFiBerry team Hi Bernd,
I guess, you use Raspbmc - right? It seems, that it somehow loads this module. I guess there is some start script that loads the module using "modprobe". Can you check the start scripts?
Maybe it is even configured somewhere in the XBMC configuration.
Best regards
Daniel -
bernd Hi Daniel,
right, I am on RASPBMC with XBMC 13. I updated raspbmc to the lates kernel, release on August 30.
The version is:
Linux raspbmc 3.12.26+ #707 PREEMPT Sat Aug 30 17:39:19 BST 2014 armv6l GNU/Linux
In XBMC, I don't have changed the Audio-Output. It is pointing to HDMI. In there, I could change it Alsa:snd_rpi_hifiberry_dac
but not to snd_rpi_hifiberry_dacplus
Issuing lsmod will give me the following module list:
=====================================================
Module Size Used by
bcm2708_wdog 3545 1
snd_soc_hifiberry_dacplus 2327 0
snd_soc_hifiberry_dac 2091 0
snd_soc_pcm5102a 1390 1
snd_soc_iqaudio_dac 2509 0
ipv6 315765 31
xt_state 1174 1
iptable_mangle 1514 0
iptable_nat 2607 0
nf_conntrack_ipv4 12965 2
nf_defrag_ipv4 1491 1 nf_conntrack_ipv4
nf_nat_ipv4 3630 1 iptable_nat
nf_nat 15166 2 nf_nat_ipv4,iptable_nat
nf_conntrack 87622 5 nf_nat,xt_state,nf_nat_ipv4,iptable_nat,nf_conntrack_ipv4
iptable_filter 1485 1
ip_tables 11694 3 iptable_filter,iptable_mangle,iptable_nat
x_tables 17030 4 ip_tables,xt_state,iptable_filter,iptable_mangle
snd_soc_pcm512x 9034 1
snd_soc_wm8804 7932 0
snd_soc_bcm2708_i2s 6202 2
regmap_mmio 2818 1 snd_soc_bcm2708_i2s
snd_soc_core 127841 7 snd_soc_pcm512x,snd_soc_wm8804,snd_soc_hifiberry_dac,snd_soc_iqaudio_dac,snd_soc_pcm5102a,snd_soc_hifiberry_dacplus,snd_soc_bcm2708_i2s
snd_compress 8259 1 snd_soc_core
regmap_i2c 1661 3 snd_soc_pcm512x,snd_soc_wm8804,snd_soc_core
snd_pcm_dmaengine 5505 1 snd_soc_core
regmap_spi 1913 3 snd_soc_pcm512x,snd_soc_wm8804,snd_soc_core
snd_pcm 83845 4 snd_soc_core,snd_soc_hifiberry_dac,snd_soc_iqaudio_dac,snd_pcm_dmaengine
snd_page_alloc 5132 1 snd_pcm
snd_seq 55484 0
snd_seq_device 6469 1 snd_seq
snd_timer 20998 2 snd_pcm,snd_seq
leds_gpio 2079 0
snd 62252 10 snd_soc_core,snd_timer,snd_pcm,snd_seq,snd_seq_device,snd_compress
led_class 4118 1 leds_gpio
spi_bcm2708 4960 0
i2c_bcm2708 4943 0
=========================================================================
The content of /etc/modprob.d is having the following configuration scripts:
8192cu.conf alsa-base-blacklist.conf alsa-base.conf fbdev-blacklist.conf
the content of 8192.cu:
options 8192cu rtw_power_mgnt=0 rtw_enusbss=0
the content of alsa-base.conf:
# autoloader aliases
install sound-slot-0 /sbin/modprobe snd-card-0
install sound-slot-1 /sbin/modprobe snd-card-1
install sound-slot-2 /sbin/modprobe snd-card-2
install sound-slot-3 /sbin/modprobe snd-card-3
install sound-slot-4 /sbin/modprobe snd-card-4
install sound-slot-5 /sbin/modprobe snd-card-5
install sound-slot-6 /sbin/modprobe snd-card-6
install sound-slot-7 /sbin/modprobe snd-card-7
# Cause optional modules to be loaded above generic modules
install snd /sbin/modprobe --ignore-install snd && { /sbin/modprobe --quiet snd-ioctl32 ; /sbin/modprobe --quiet snd-seq ; : ; }
install snd-rawmidi /sbin/modprobe --ignore-install snd-rawmidi && { /sbin/modprobe --quiet snd-seq-midi ; : ; }
install snd-emu10k1 /sbin/modprobe --ignore-install snd-emu10k1 && { /sbin/modprobe --quiet snd-emu10k1-synth ; : ; }
# Keep snd-pcsp from beeing loaded as first soundcard
options snd-pcsp index=-2
# Keep snd-usb-audio from beeing loaded as first soundcard
options snd-usb-audio index=-2
# Prevent abnormal drivers from grabbing index 0
options bt87x index=-2
options cx88_alsa index=-2
options snd-atiixp-modem index=-2
options snd-intel8x0m index=-2
options snd-via82xx-modem index=-2
What else to check?
Thanks
Bernd -
HiFiBerry team Hi Bernd,
I'm still not sure how Raspbmc loads this module. Another user has suggested to blacklist the snd_soc_hifiberry_dac module. This might block the loading of the module. Can you try this?
Best regards
Daniel -
bernd Hi Daniel,
I'll like to do that, but which blacklist do I need to modify?
I tried /etc/modprobe.d/fbdev-blacklist.conf and added:
blacklist snd_soc_hifiberry_dac
to it, did a sync and reboot, but the module still gets loaded.
I think I will switch to raspbian...
Thanks so far
Bernd -
bernd Hi Daniel,
now I am running raspbian with the latest kernel.
The card is now listed. Output of aplay -l
**** Liste der Hardware-Geräte (PLAYBACK) ****
Karte 0: ALSA [bcm2835 ALSA], Gerät 0: bcm2835 ALSA [bcm2835 ALSA]
Sub-Geräte: 8/8
Sub-Gerät #0: subdevice #0
Sub-Gerät #1: subdevice #1
Sub-Gerät #2: subdevice #2
Sub-Gerät #3: subdevice #3
Sub-Gerät #4: subdevice #4
Sub-Gerät #5: subdevice #5
Sub-Gerät #6: subdevice #6
Sub-Gerät #7: subdevice #7
Karte 0: ALSA [bcm2835 ALSA], Gerät 1: bcm2835 ALSA [bcm2835 IEC958/HDMI]
Sub-Geräte: 1/1
Sub-Gerät #0: subdevice #0
Karte 1: sndrpihifiberry [snd_rpi_hifiberry_dacplus], Gerät 0: HiFiBerry DAC+ HiFi pcm512x-hifi-0 []
Sub-Geräte: 1/1
Sub-Gerät #0: subdevice #0
Issuing lsmod
Module Size Used by
snd_soc_hifiberry_dacplus 2327 0
snd_bcm2835 19584 0
snd_soc_pcm512x 9034 1
snd_soc_wm8804 7932 0
snd_soc_bcm2708_i2s 6202 2
regmap_mmio 2818 1 snd_soc_bcm2708_i2s
snd_soc_core 127841 4 snd_soc_pcm512x,snd_soc_wm8804,snd_soc_hifiberry_dacplus,snd_soc_bcm2708_i2s
snd_compress 8259 1 snd_soc_core
regmap_i2c 1661 3 snd_soc_pcm512x,snd_soc_wm8804,snd_soc_core
snd_pcm_dmaengine 5505 1 snd_soc_core
regmap_spi 1913 3 snd_soc_pcm512x,snd_soc_wm8804,snd_soc_core
snd_pcm 83845 3 snd_bcm2835,snd_soc_core,snd_pcm_dmaengine
snd_page_alloc 5132 1 snd_pcm
joydev 9257 0
snd_seq 55484 0
snd_seq_device 6469 1 snd_seq
leds_gpio 2079 0
evdev 10661 6
snd_timer 20998 2 snd_pcm,snd_seq
led_class 4118 1 leds_gpio
snd 62252 7 snd_bcm2835,snd_soc_core,snd_timer,snd_pcm,snd_seq,snd_seq_device,snd_compress
i2c_bcm2708 4943 0
And the green LED is continously on, but unfortunatly no sound at all.
Any ideas?
Thx in advance
Bernd -
HiFiBerry team You still have the onboard sound enabled. You should remove this, because most software will use the first sound card that is found. Remove the bcm2835 sound module from /etc/modules and reboot.
Best regards
Daniel -
bernd o.k., removed and now I have only the hifiberry listed, but still no sound output.
mplayer is installed.
Thx
Bernd -
HiFiBerry team You're using mplayer now - right? What is the output of mplayer?
Also check your mixer settings with the "amixer" command.
Best regards
Daniel -
bernd 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' 'Ringing-less low latency FIR'
Item0: 'FIR interpolation with de-emphasis'
Simple mixer control 'Playback Digital',0
Capabilities: volume pswitch penum
Playback channels: Front Left - Front Right
Capture channels: Front Left - Front Right
Limits: 40 - 255
Front Left: 247 [96%] [0.00dB] Playback [on]
Front Right: 247 [96%] [0.00dB] Playback [on]
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'
Item0: '21ms'
Simple mixer control 'Auto Mute Time Right',0
Capabilities: enum
Items: '21ms' '106ms' '213ms' '533ms' '1.07s' '2.13s' '5.33s'
Item0: '21ms'
Simple mixer control 'Clock Missing Period',0
Capabilities: enum
Items: '1s' '2s' '3s' '4s' '5s' '6s' '7s'
Item0: '1s'
Simple mixer control 'Deemphasis',0
Capabilities: pswitch pswitch-joined penum
Playback channels: Mono
Mono: Playback [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'
mplayer is giving me the following by a list of options
MPlayer svn r34540 (Debian), built with gcc-4.6 (C) 2000-2012 MPlayer Team
Usage: mplayer [options] [url|path/]filename
Thx
Bernd -
HiFiBerry team Everything looks good so far. What happens if you play a music file with mplayer?
Best regards
Daniel -
bernd Hi,
I mounted the NAS drive and let mplayer play a .m4a file against /dev/null
=================================================================================
time mplayer -ao pcm:nowaveheader:file=/dev/null /test/test.m4a
MPlayer svn r34540 (Debian), built with gcc-4.6 (C) 2000-2012 MPlayer Team
mplayer: could not connect to socket
mplayer: No such file or directory
Failed to open LIRC support. You will not be able to use your remote control.
Playing /test/test.m4a.
libavformat version 53.21.1 (external)
Mismatching header version 53.19.0
libavformat file format detected.
[lavf] stream 0: audio (aac), -aid 0, -alang und
Clip info:
major_brand: M4A
minor_version: 0
compatible_brands: M4A mp42isom
creation_time: 2009-02-28 18:15:53
title: Rock 'n' Roll Train
artist: AC/DC
composer: Young, Malcolm
album: Black Ice
genre: Rock
track: 1/15
disc: 1/1
date: 2008
gapless_playback: 0
encoder: iTunes 8.0.2.20, QuickTime 7.5.5
album_artist: AC/DC
Load subtitles in /test/
==========================================================================
Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
libavcodec version 53.35.0 (external)
Mismatching header version 53.32.2
AUDIO: 44100 Hz, 2 ch, s16le, 125.9 kbit/8.92% (ratio: 15733->176400)
Selected audio codec: [ffaac] afm: ffmpeg (FFmpeg AAC (MPEG-2/MPEG-4 Audio))
==========================================================================
[AO PCM] File: /dev/null (RAW PCM)
PCM: Samplerate: 44100Hz Channels: Stereo Format s16le
[AO PCM] Info: Faster dumping is achieved with -benchmark -vc null -vo null -ao pcm:fast
[AO PCM] Info: To write WAVE files use -ao pcm:waveheader (default).
AO: [pcm] 44100Hz 2ch s16le (2 bytes per sample)
Video: no video
Starting playback...
A: 261.6 (04:21.5) of 261.6 (04:21.5) 6.8%
Exiting... (End of file)
real 0m20.076s
user 0m14.550s
sys 0m0.640s -
HiFiBerry team I don't understand what you are doing with /dev/null? Why aren't you just doing mplayer filename?
Best regards
Daniel -
bernd ...o.k., here the result playing it directly:
pi@raspberrypi ~ $ mplayer /test/test.m4a
MPlayer svn r34540 (Debian), built with gcc-4.6 (C) 2000-2012 MPlayer Team
mplayer: could not connect to socket
mplayer: No such file or directory
Failed to open LIRC support. You will not be able to use your remote control.
Playing /test/test.m4a.
libavformat version 53.21.1 (external)
Mismatching header version 53.19.0
libavformat file format detected.
[lavf] stream 0: audio (aac), -aid 0, -alang und
Clip info:
major_brand: M4A
minor_version: 0
compatible_brands: M4A mp42isom
creation_time: 2009-02-28 18:15:53
title: Rock 'n' Roll Train
artist: AC/DC
composer: Young, Malcolm
album: Black Ice
genre: Rock
track: 1/15
disc: 1/1
date: 2008
gapless_playback: 0
encoder: iTunes 8.0.2.20, QuickTime 7.5.5
album_artist: AC/DC
Load subtitles in /test/
==========================================================================
Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
libavcodec version 53.35.0 (external)
Mismatching header version 53.32.2
AUDIO: 44100 Hz, 2 ch, s16le, 125.9 kbit/8.92% (ratio: 15733->176400)
Selected audio codec: [ffaac] afm: ffmpeg (FFmpeg AAC (MPEG-2/MPEG-4 Audio))
==========================================================================
AO: [pulse] Init failed: Connection refused
Failed to initialize audio driver 'pulse'
AO: [alsa] 44100Hz 2ch s16le (2 bytes per sample)
Video: no video
Starting playback...
A: 261.1 (04:21.1) of 261.6 (04:21.5) 6.2%
Exiting... (End of file)
Thanks
Bernd -
HiFiBerry team Hi Bernd,
this looks correct. I'm not sure if it is a configuration or a hardware problem. I will provide a test image for the new boards soon. This will help us to make sure, that it is not a configuration problem.
How is the DAC+ connected to your amplifier? With an RCA cable or over the phone jack? What amplifier are you using?
Best regards
Daniel -
bernd Hi Daniel,
the DAC+ is connected via RCA cable to my amplifier. I do have a Denon AVT-700RD and connected the DAC+ first on the VCR input (no success) and then on the Phono (no success).
Thanks
Bernd -
HiFiBerry team Hi Bernd,
the phono output won't work, however the VCR input should work. Please wait until we have uploaded our test SD card image. This should help to clarify it it might be a hardware issue.
Best regards
Daniel -
balu2005 Hi,
whats the current state of raspbmc. When we can use DAC+ with XBMC?
Best regards -
HiFiBerry team Check out OpenElec, users reported that it worked already. Sam from Raspbmx told me that he will include the new drivers in the next release. I can't say, when this will be released.
Best regards
Daniel
Please sign in to leave a comment.