0

Help troubleshooting no audio on RPi4/DAC+

Hey, everyone. This seems distinctly in the "my problem" bucket, but I was hoping anyone might have some assistance on why I might suddenly have no audio on my DAC+.

System is a Raspberry Pi 4 4gb, running Ubuntu 20.10 64 bit. Up until a few days ago, audio was working just fine, and now I get no audio out at all. The HiFiBerry is detected okay, shows up in alsamixer, has volume, but no audio comes out at all. Thinking it was my receiver, I ran the line out to another known working device, and nothing. Thinking my hat died, I grabbed a hifiberryos image, and audio is coming out just fine, so something changed on this specific instance, and I'm wondering if there's anything I can check to improve it, or if I just need to separate my audio duties to another Pi.

Already attempted a rollback to 5.8.0-1006-raspi from 5.8.0-1007-raspi, with no change.

Audio out is being tested with mplayer, speaker-test, and librespot, with the same results. Literally everything looks like it's playing -- no errors from the system during playback, green LED lights up on the hifiberry, there's just literally no sound while booted into this system.

uname

$ uname -a
Linux naz 5.8.0-1006-raspi #9-Ubuntu SMP PREEMPT Fri Oct 16 12:55:30 UTC 2020 aarch64 aarch64 aarch64 GNU/Linux

aplay -l

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

config

dtoverlay=hifiberry-dacplus
force_eeprom_read=0

mplayer

$ mplayer 01\ Yahoo.mp3 
MPlayer 1.3.0 (Debian), built with gcc-10 (C) 2000-2016 MPlayer Team
do_connect: could not connect to socket
connect: No such file or directory
Failed to open LIRC support. You will not be able to use your remote control.

Playing 01 Yahoo.mp3.
libavformat version 58.45.100 (external)
Audio only file format detected.
Clip info:
Title: Yahoo
Artist: Neil Cicierega
Album: Mouth Dreams
Year: 2020
Comment: i
Track: 1
Genre: Dream
Load subtitles in ./
==========================================================================
Opening audio decoder: [mpg123] MPEG 1.0/2.0/2.5 layers I, II, III
AUDIO: 44100 Hz, 2 ch, s16le, 320.0 kbit/22.68% (ratio: 40000->176400)
Selected audio codec: [mpg123] afm: mpg123 (MPEG 1.0/2.0/2.5 layers I, II, III)
==========================================================================
AO: [pulse] 44100Hz 2ch s16le (2 bytes per sample)
Video: no video
Starting playback...
A: 13.6 (13.6) of 133.0 (02:13.0) 1.0%

amixer

$ 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: 'Fixed process flow'
Simple mixer control 'Analogue',0
Capabilities: pvolume
Playback channels: Front Left - Front Right
Limits: Playback 0 - 1
Mono:
Front Left: Playback 0 [0%] [-6.00dB]
Front Right: Playback 0 [0%] [-6.00dB]
Simple mixer control 'Analogue Playback Boost',0
Capabilities: volume
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
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
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
Playback channels: Mono
Mono: Playback [on]
Simple mixer control 'Digital',0
Capabilities: pvolume pswitch
Playback channels: Front Left - Front Right
Limits: Playback 0 - 207
Mono:
Front Left: Playback 207 [100%] [0.00dB] [on]
Front Right: Playback 207 [100%] [0.00dB] [on]
Simple mixer control 'Max Overclock DAC',0
Capabilities: volume volume-joined
Playback channels: Mono
Capture channels: Mono
Limits: 0 - 40
Mono: 0 [0%]
Simple mixer control 'Max Overclock DSP',0
Capabilities: volume volume-joined
Playback channels: Mono
Capture channels: Mono
Limits: 0 - 40
Mono: 0 [0%]
Simple mixer control 'Max Overclock PLL',0
Capabilities: volume volume-joined
Playback channels: Mono
Capture channels: Mono
Limits: 0 - 20
Mono: 0 [0%]
Simple mixer control 'Volume Ramp Down Emergency Rate',0
Capabilities: enum
Items: '1 sample/update' '2 samples/update' '4 samples/update' 'Immediate'
Item0: 'Immediate'
Simple mixer control 'Volume Ramp Down Emergency Step',0
Capabilities: enum
Items: '4dB/step' '2dB/step' '1dB/step' '0.5dB/step'
Item0: '2dB/step'
Simple mixer control 'Volume Ramp Down Rate',0
Capabilities: enum
Items: '1 sample/update' '2 samples/update' '4 samples/update' 'Immediate'
Item0: '2 samples/update'
Simple mixer control 'Volume Ramp Down Step',0
Capabilities: enum
Items: '4dB/step' '2dB/step' '1dB/step' '0.5dB/step'
Item0: '0.5dB/step'
Simple mixer control 'Volume Ramp Up Rate',0
Capabilities: enum
Items: '1 sample/update' '2 samples/update' '4 samples/update' 'Immediate'
Item0: '2 samples/update'
Simple mixer control 'Volume Ramp Up Step',0
Capabilities: enum
Items: '4dB/step' '2dB/step' '1dB/step' '0.5dB/step'
Item0: '0.5dB/step'

dmesg

$ dmesg | grep -i 'hifi\|pcm'
[ 10.147888] snd-rpi-hifiberry-dacplus soc:sound: pcm512x-hifi <-> fe203000.i2s mapping ok
[ 10.147913] snd-rpi-hifiberry-dacplus soc:sound: ASoC: no DMI vendor name!
[ 44.940029] pcm512x 1-004d: No SCLK, using BCLK: -2
[ 44.981152] pcm512x 1-004d: No SCLK, using BCLK: -2
[ 44.983602] pcm512x 1-004d: No SCLK, using BCLK: -2
[ 44.986044] pcm512x 1-004d: No SCLK, using BCLK: -2
[ 44.988519] pcm512x 1-004d: No SCLK, using BCLK: -2
[ 44.991239] pcm512x 1-004d: No SCLK, using BCLK: -2
[ 45.010929] pcm512x 1-004d: No SCLK, using BCLK: -2
[ 78.546801] pcm512x 1-004d: No SCLK, using BCLK: -2
[ 81.855094] pcm512x 1-004d: No SCLK, using BCLK: -2
[ 97.884988] pcm512x 1-004d: No SCLK, using BCLK: -2
[ 97.908860] pcm512x 1-004d: No SCLK, using BCLK: -2
[ 97.910908] pcm512x 1-004d: No SCLK, using BCLK: -2
[ 97.913063] pcm512x 1-004d: No SCLK, using BCLK: -2
[ 97.915217] pcm512x 1-004d: No SCLK, using BCLK: -2
[ 97.917555] pcm512x 1-004d: No SCLK, using BCLK: -2
[ 97.937729] pcm512x 1-004d: No SCLK, using BCLK: -2

lsmod

lsmod | grep hifi
snd_soc_hifiberry_dacplus 16384 1
snd_soc_core 294912 3 snd_soc_pcm512x,snd_soc_hifiberry_dacplus,snd_soc_bcm2835_i2s
snd_pcm 155648 6 snd_soc_pcm512x,snd_soc_hifiberry_dacplus,snd_soc_bcm2835_i2s,snd_compress,snd_soc_core,snd_pcm_dmaengine
clk_hifiberry_dacpro 16384 1

0 comments

Please sign in to leave a comment.