0

DAC+ standard no audio

There have been several posts on here about DAC+ and no sound, but none of them really helped me. I'm also quite the audio/electronics noob so, so I'm gonna go barebones first and ask whether this setup is enough to test the hifiberry:

I have no amp setup with this yet and those are just some regular headphones.

Onboard sound without the with "dtparam=audio=on" in /boot/config.txt works.

If the setup in the picture is not enough to verify whether the dac+ is working and/or if an amp is mandatory for testing, ignore the rest of my post.

Else here are all the information I could gather so far.

Raspberry Pi 3 with raspbian jessie lite.

Kernel:

Linux raspberrypi 4.14.22-v7+ #1096 SMP Mon Feb 26 19:14:22 GMT 2018 armv7l GNU/Linux


I put "dtoverlay=hifiberry-dacplus" in the /boot/config.txt and I configured /etc/asound.conf as mentioned here

My aplay output is the following:

pi@raspberrypi:~ $ 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

My mplayer output with a flac-file is this

pi@raspberrypi:~ $ mplayer test.flac 
MPlayer2 2.0-728-g2c378c7-4+b1 (C) 2000-2012 MPlayer Team
Cannot open file '/home/pi/.mplayer/input.conf': No such file or directory
Failed to open /home/pi/.mplayer/input.conf.
Cannot open file '/etc/mplayer/input.conf': No such file or directory
Failed to open /etc/mplayer/input.conf.

Playing test.flac.
Detected file format: raw FLAC (libavformat)
[flac @ 0x75b595b8]max_analyze_duration 5000000 reached
[lavf] stream 0: audio (flac), -aid 0
[lavf] stream 1: video (mjpeg), -vid 0
Clip info:
TITLE: Maniac
ARTIST: Carpenter Brut
DATE: 2017
COMMENT: Visit http://carpenterbrut.bandcamp.com
ALBUM: CARPENTERBRUTLIVE
track: 18
album_artist: Carpenter Brut
Load subtitles in .
Selected audio codec: FLAC (Free Lossless Audio Codec) [libavcodec]
AUDIO: 44100 Hz, 2 ch, s16le, 0.0 kbit/0.00% (ratio: 0->176400)
AO: [pulse] Init failed: Connection refused
AO: [alsa] 44100Hz 2ch s16le (2 bytes per sample)
[AO_ALSA] Unable to find simple control 'Master',0.
Video: no video
Starting playback...
A: 7.7 (07.7) of 297.4 (04:57.3) 1.1%

with an mp3-file:

pi@raspberrypi:~ $ mplayer test.mp3
MPlayer2 2.0-728-g2c378c7-4+b1 (C) 2000-2012 MPlayer Team
Cannot open file '/home/pi/.mplayer/input.conf': No such file or directory
Failed to open /home/pi/.mplayer/input.conf.
Cannot open file '/etc/mplayer/input.conf': No such file or directory
Failed to open /etc/mplayer/input.conf.

Playing test.mp3.
Detected file format: Audio only
Load subtitles in .
Selected audio codec: MPEG 1.0/2.0/2.5 layers I, II, III [mpg123]
AUDIO: 44100 Hz, 2 ch, s16le, 320.0 kbit/22.68% (ratio: 40000->176400)
AO: [pulse] Init failed: Connection refused
AO: [alsa] 44100Hz 2ch s16le (2 bytes per sample)
[AO_ALSA] Unable to find simple control 'Master',0.
Video: no video
Starting playback...
A:   6.4 (06.3) of 283.0 (04:43.0)  2.9%

with a wav-file:

pi@raspberrypi:~ $ mplayer sin1000_48khz.wav 
MPlayer2 2.0-728-g2c378c7-4+b1 (C) 2000-2012 MPlayer Team
Cannot open file '/home/pi/.mplayer/input.conf': No such file or directory
Failed to open /home/pi/.mplayer/input.conf.
Cannot open file '/etc/mplayer/input.conf': No such file or directory
Failed to open /etc/mplayer/input.conf.

Playing sin1000_48khz.wav.
Detected file format: WAV / WAVE (Waveform Audio) (libavformat)
[wav @ 0x75be25b8]max_analyze_duration 5000000 reached
[lavf] stream 0: audio (pcm_s16le), -aid 0
Load subtitles in .
Selected audio codec: Uncompressed PCM [pcm]
AUDIO: 48000 Hz, 2 ch, s16le, 1536.0 kbit/100.00% (ratio: 192000->192000)
AO: [pulse] Init failed: Connection refused
AO: [alsa] 48000Hz 2ch s16le (2 bytes per sample)
[AO_ALSA] Unable to find simple control 'Master',0.
Video: no video
Starting playback...
A:   3.2 (03.1) of 30.0 (30.0)  0.1%

Here is my aplay output with the wav-file:

pi@raspberrypi:~ $ aplay sin1000_48khz.wav 
Playing WAVE 'sin1000_48khz.wav' : Signed 16 bit Little Endian, Rate 48000 Hz, Stereo

And if you still need more information:

pi@raspberrypi:~ $ lsmod |grep hifi
snd_soc_hifiberry_dacplus    16384  0
snd_soc_core          188416  3 snd_soc_pcm512x,snd_soc_hifiberry_dacplus,snd_soc_bcm2835_i2s
snd_pcm                98304  5 snd_soc_pcm512x,snd_pcm_dmaengine,snd_soc_hifiberry_dacplus,snd_soc_bcm2835_i2s,snd_soc_core
clk_hifiberry_dacpro    16384  1
pi@raspberrypi:~ $ dmesg 
[...]
[    3.605229] snd-rpi-hifiberry-dacplus soc:sound: ASoC: CODEC DAI pcm512x-hifi not registered - will retry
[    3.644756] EXT4-fs (mmcblk0p2): re-mounted. Opts: (null)
[    3.721249] snd-rpi-hifiberry-dacplus soc:sound: pcm512x-hifi <-> 3f203000.i2s mapping ok
[...]
[ 216.567378] pcm512x 1-004d: No SCLK, using BCLK: -2
[ 1572.447225] pcm512x 1-004d: No SCLK, using BCLK: -2
[ 1668.399447] pcm512x 1-004d: No SCLK, using BCLK: -2
[ 1751.455920] pcm512x 1-004d: No SCLK, using BCLK: -2
[ 1801.005312] pcm512x 1-004d: No SCLK, using BCLK: -2
pi@raspberrypi:~ $ sudo vcdbg log msg
001125.353: brfs: File read: /mfs/sd/config.txt
001126.287: brfs: File read: 1693 bytes
001147.699: HDMI:EDID version 1.3, 1 extensions, screen size 47x26 cm
001147.766: HDMI:EDID features - videodef 0x81 !standby !suspend active off; colour encoding:RGB444|YCbCr444|YCbCr422; sRGB is default colourspace; preferred format is native; does not support GTF
001147.887: HDMI:EDID found unknown detail timing format: 1024x600p hfp:44 hs:88 hbp:188 vfp:3 vs:6 vbp:16 pixel clock:50 MHz
001147.929: HDMI:EDID found DMT format: code 4, 640x480p @ 60 Hz in established timing I/II
001147.965: HDMI:EDID found DMT format: code 5, 640x480p @ 72 Hz in established timing I/II
001148.003: HDMI:EDID found DMT format: code 6, 640x480p @ 75 Hz in established timing I/II
001148.040: HDMI:EDID found DMT format: code 8, 800x600p @ 56 Hz in established timing I/II
001148.079: HDMI:EDID found DMT format: code 9, 800x600p @ 60 Hz in established timing I/II
001148.114: HDMI:EDID found DMT format: code 10, 800x600p @ 72 Hz in established timing I/II
001148.153: HDMI:EDID found DMT format: code 11, 800x600p @ 75 Hz in established timing I/II
001148.193: HDMI:EDID found DMT format: code 16, 1024x768p @ 60 Hz in established timing I/II
001148.232: HDMI:EDID found DMT format: code 17, 1024x768p @ 70 Hz in established timing I/II
001148.269: HDMI:EDID found DMT format: code 18, 1024x768p @ 75 Hz in established timing I/II
001148.311: HDMI:EDID found DMT format: code 36, 1280x1024p @ 75 Hz in established timing I/II
001148.399: HDMI:EDID standard timings block x 8: 0x0101 0101 0101 0101 0101 0101 0101 0101
001161.410: HDMI:EDID parsing v3 CEA extension 0
001161.447: HDMI:EDID monitor support - underscan IT formats:no, basic audio:yes, yuv444:yes, yuv422:yes, #native DTD:1
001161.491: HDMI:EDID found preferred CEA detail timing format: 720x576p @ 50 Hz (17)
001161.534: HDMI:EDID found CEA detail timing format: 1920x1080i @ 60 Hz (5)
001161.576: HDMI:EDID found CEA detail timing format: 1920x1080i @ 50 Hz (20)
001161.618: HDMI:EDID found CEA detail timing format: 1280x720p @ 50 Hz (19)
001161.664: HDMI:EDID found CEA detail timing format: 1920x1080p @ 50 Hz (31)
001161.698: HDMI:EDID found CEA format: code 6, 1440x480i @ 60Hz
001161.730: HDMI:EDID found CEA format: code 7, 1440x480i @ 60Hz
001161.763: HDMI:EDID found CEA format: code 2, 720x480p @ 60Hz
001161.793: HDMI:EDID found CEA format: code 3, 720x480p @ 60Hz
001161.824: HDMI:EDID found CEA format: code 21, 1440x576i @ 50Hz
001161.857: HDMI:EDID found CEA format: code 22, 1440x576i @ 50Hz (native)
001161.890: HDMI:EDID found CEA format: code 17, 720x576p @ 50Hz
001161.921: HDMI:EDID found CEA format: code 18, 720x576p @ 50Hz
001161.954: HDMI:EDID found CEA format: code 19, 1280x720p @ 50Hz
001161.986: HDMI:EDID found CEA format: code 4, 1280x720p @ 60Hz
001162.018: HDMI:EDID found CEA format: code 20, 1920x1080i @ 50Hz
001162.051: HDMI:EDID found CEA format: code 5, 1920x1080i @ 60Hz
001162.083: HDMI:EDID found CEA format: code 31, 1920x1080p @ 50Hz
001162.117: HDMI:EDID found CEA format: code 16, 1920x1080p @ 60Hz (native)
001162.171: HDMI:EDID found audio format 2 channels PCM, sample rate: 32|44|48 kHz, sample size: 16|20|24 bits
001162.187: HDMI:EDID found HDMI VSDB length 5
001162.212: HDMI:EDID HDMI VSDB has physical address 1.0.0.0
001162.227: HDMI:EDID HDMI VSDB has no extension fields
001162.269: HDMI:EDID filtering formats with pixel clock > 162 MHz or h. blanking > 1023
001162.501: HDMI:EDID preferred mode is updated to DMT (87) 0x0p @ 0 Hz with pixel clock 0 Hz
001176.978: brfs: File read: /mfs/sd/config.txt
001177.780: HDMI:Setting property pixel encoding to Default
001177.801: HDMI:Setting property pixel clock type to PAL
001177.820: HDMI:Setting property content type flag to No data
001177.840: HDMI:Setting property fuzzy format match to enabled
001377.876: hdmi: HDMI:>>>>>>>>>>>>>Rx sensed, reading EDID<<<<<<<<<<<<<
001389.947: hdmi: HDMI:EDID version 1.3, 1 extensions, screen size 47x26 cm
001390.016: hdmi: HDMI:EDID features - videodef 0x81 !standby !suspend active off; colour encoding:RGB444|YCbCr444|YCbCr422; sRGB is default colourspace; preferred format is native; does not support GTF
001390.145: hdmi: HDMI:EDID failed to find a matching detail format for 1024x600p hfp:44 hs:88 hbp:188 vfp:3 vs:6 vbp:16 pixel clock:50 MHz
001390.169: hdmi: HDMI:EDID calculated refresh rate is 60 Hz
001390.199: hdmi: HDMI:EDID guessing the format to be 1024x600p @60 Hz
001390.255: hdmi: HDMI:EDID found preferred DMT detail timing format: 1024x600p @ 60 Hz (87)
001390.300: hdmi: HDMI:EDID found DMT format: code 4, 640x480p @ 60 Hz in established timing I/II
001390.340: hdmi: HDMI:EDID found DMT format: code 5, 640x480p @ 72 Hz in established timing I/II
001390.382: hdmi: HDMI:EDID found DMT format: code 6, 640x480p @ 75 Hz in established timing I/II
001390.422: hdmi: HDMI:EDID found DMT format: code 8, 800x600p @ 56 Hz in established timing I/II
001390.463: hdmi: HDMI:EDID found DMT format: code 9, 800x600p @ 60 Hz in established timing I/II
001390.504: hdmi: HDMI:EDID found DMT format: code 10, 800x600p @ 72 Hz in established timing I/II
001390.546: hdmi: HDMI:EDID found DMT format: code 11, 800x600p @ 75 Hz in established timing I/II
001390.590: hdmi: HDMI:EDID found DMT format: code 16, 1024x768p @ 60 Hz in established timing I/II
001390.632: hdmi: HDMI:EDID found DMT format: code 17, 1024x768p @ 70 Hz in established timing I/II
001390.673: hdmi: HDMI:EDID found DMT format: code 18, 1024x768p @ 75 Hz in established timing I/II
001390.719: hdmi: HDMI:EDID found DMT format: code 36, 1280x1024p @ 75 Hz in established timing I/II
001390.810: hdmi: HDMI:EDID standard timings block x 8: 0x0101 0101 0101 0101 0101 0101 0101 0101
001403.824: hdmi: HDMI:EDID parsing v3 CEA extension 0
001403.866: hdmi: HDMI:EDID monitor support - underscan IT formats:no, basic audio:yes, yuv444:yes, yuv422:yes, #native DTD:1
001403.911: hdmi: HDMI:EDID found CEA detail timing format: 720x576p @ 50 Hz (17)
001403.957: hdmi: HDMI:EDID found CEA detail timing format: 1920x1080i @ 60 Hz (5)
001404.004: hdmi: HDMI:EDID found CEA detail timing format: 1920x1080i @ 50 Hz (20)
001404.049: hdmi: HDMI:EDID found CEA detail timing format: 1280x720p @ 50 Hz (19)
001404.099: hdmi: HDMI:EDID found CEA detail timing format: 1920x1080p @ 50 Hz (31)
001404.137: hdmi: HDMI:EDID found CEA format: code 6, 1440x480i @ 60Hz
001404.172: hdmi: HDMI:EDID found CEA format: code 7, 1440x480i @ 60Hz
001404.208: hdmi: HDMI:EDID found CEA format: code 2, 720x480p @ 60Hz
001404.243: hdmi: HDMI:EDID found CEA format: code 3, 720x480p @ 60Hz
001404.278: hdmi: HDMI:EDID found CEA format: code 21, 1440x576i @ 50Hz
001404.315: hdmi: HDMI:EDID found CEA format: code 22, 1440x576i @ 50Hz (native)
001404.351: hdmi: HDMI:EDID found CEA format: code 17, 720x576p @ 50Hz
001404.386: hdmi: HDMI:EDID found CEA format: code 18, 720x576p @ 50Hz
001404.423: hdmi: HDMI:EDID found CEA format: code 19, 1280x720p @ 50Hz
001404.457: hdmi: HDMI:EDID found CEA format: code 4, 1280x720p @ 60Hz
001404.492: hdmi: HDMI:EDID found CEA format: code 20, 1920x1080i @ 50Hz
001404.529: hdmi: HDMI:EDID found CEA format: code 5, 1920x1080i @ 60Hz
001404.564: hdmi: HDMI:EDID found CEA format: code 31, 1920x1080p @ 50Hz
001404.600: hdmi: HDMI:EDID found CEA format: code 16, 1920x1080p @ 60Hz (native)
001404.657: hdmi: HDMI:EDID found audio format 2 channels PCM, sample rate: 32|44|48 kHz, sample size: 16|20|24 bits
001404.678: hdmi: HDMI:EDID found HDMI VSDB length 5
001404.706: hdmi: HDMI:EDID HDMI VSDB has physical address 1.0.0.0
001404.725: hdmi: HDMI:EDID HDMI VSDB has no extension fields
001404.770: hdmi: HDMI:EDID filtering formats with pixel clock > 162 MHz or h. blanking > 1023
001405.007: hdmi: HDMI:EDID preferred mode remained as DMT (87) 1024x600p @ 60 Hz with pixel clock 49 MHz
001405.030: hdmi: HDMI: hotplug attached with HDMI support
001405.064: hdmi: HDMI:hdmi_get_state is deprecated, use hdmi_get_display_state instead
001407.484: hdmi: HDMI: power_on to DMT mode Custom
001410.666: hdmi: HDMI: Action callback added to queue to happen at frame 2
001410.688: hdmi: HDMI: Action stop_3d_mode added to queue to happen at frame 2
001410.711: hdmi: HDMI: Action unmute added to queue to happen at frame 3
001410.739: hdmi: HDMI: Action cec_init added to queue to happen at frame 3
001478.226: *** Restart logging
001478.252: brfs: File read: 1693 bytes
001479.573: brfs: File read: /mfs/sd/cmdline.txt
001479.637: Read command line from file 'cmdline.txt'
dwc_otg.lpm_enable=0 console=serial0,115200 console=tty1 root=PARTUUID=c0435cb7-02 rootfstype=ext4 elevator=deadline fsck.repair=yes rootwait
001479.896: brfs: File read: 142 bytes
001826.993: brfs: File read: /mfs/sd/kernel7.img
001827.018: Loading 'kernel7.img' to 0x8000 size 0x49a490
001963.719: No kernel trailer - assuming DT-capable
001963.750: brfs: File read: 4826256 bytes
001968.900: brfs: File read: /mfs/sd/bcm2710-rpi-3-b.dtb
001968.924: Loading 'bcm2710-rpi-3-b.dtb' to 0x4a2490 size 0x5ed4
002102.403: brfs: File read: 24276 bytes
002105.346: brfs: File read: /mfs/sd/config.txt
002128.121: Loaded HAT overlay
002187.919: brfs: File read: 1693 bytes
002195.217: brfs: File read: /mfs/sd/overlays/hifiberry-dacplus.dtbo
002224.341: Loaded overlay 'hifiberry-dacplus'
003461.124: Device tree loaded to 0x2eff9a00 (size 0x650a)
003463.331: gpioman: gpioman_get_pin_num: pin SDCARD_CONTROL_POWER not defined
004812.500: vchiq_core: vchiq_init_state: slot_zero = 0xfad80000, is_master = 1
004816.884: hdmi: HDMI:hdmi_get_state is deprecated, use hdmi_get_display_state instead
004822.101: TV service:host side not connected, dropping notification 0x00000002, 0x00000002, 0x00000057

When testing with onboard sound I had to enter the following command to get any sound to play:

sudo amixer -c 0 cset numid=3 1

as it probably wanted to output the sound via hdmi.

I also entered the following command to ensure the sound volume wasn't magically set to negative dB

amixer cset numid=1 0

 

And that's pretty much all I have right now. Any help would be appreciated.

7 comments

Please sign in to leave a comment.