Moode Forum
[PROBLEM] No sound: Pi zero w with Hifiberry DAC+ zero - Printable Version

+- Moode Forum (https://moodeaudio.org/forum)
+-- Forum: moOde audio player (https://moodeaudio.org/forum/forumdisplay.php?fid=3)
+--- Forum: Support (https://moodeaudio.org/forum/forumdisplay.php?fid=7)
+--- Thread: [PROBLEM] No sound: Pi zero w with Hifiberry DAC+ zero (/showthread.php?tid=1501)

Pages: 1 2


No sound: Pi zero w with Hifiberry DAC+ zero - BriceL - 07-02-2019

Dear moOde Community,

I have some difficulties to get my system working. It seems that all my hardware is working but no sound is coming out of my DAC+. Huh
The I2S devices i tried are Hifiberry DAC, Hifiberry DAC+ and the Hifiberry DAC Zero.

I put some informations that could be helpfull:

aplay -l



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

config.txt


Code:
Output device = Local
disable_splash=1
hdmi_drive=2
dtparam=i2c_arm=on
dtparam=i2s=on
dtparam=audio=off
dtoverlay=hifiberry-dac
#dtoverlay=pi3-disable-wifi
#dtoverlay=pi3-disable-bt

System parameters



Code:
 S Y S T E M    P A R A M E T E R S  

Date and time = 2019-07-02 23:05:42
System uptime = up 9 minutes
Timezone = Europe/Berlin
Release = moOde 5.3.1 2019-06-12
Update = None

Host name = moode
ETH0  IP = unassigned
ETH0  MAC = no adapter
WLAN0 IP = 192.168.0.87
WLAN0 MAC = b8:27:eb:0f:7e:e1
WiFi country = DE

HDWR REV = Pi-Zero W 512MB v1.1
SoC = BCM2835
CORES = 1
ARCH = armv6l
RASPBIAN = 9.9
KERNEL = 4.19.49+
KTIMER FREQ = 100 Hz
USB BOOT = not available
Warranty = OK

ROOT size = 30G
ROOT used = 8%
ROOT avail = 26G
FS expand = expanded
MEM free = 217 MB
MEM used = 53 MB
Temperature = 41.2°C

CPU GOV = performance
P3-WIFI = On
P3-BT = On
HDMI = On
ETH0 CHECK = Off
MAX USB CUR = Off
UAC2 FIX = Off
ETHPORT FIX = Off
SSH server = Off

LED0 = on
LED1 = not accessible
SD CARD = 50 MHz

 C O R E    S E R V I C E S  

PHP-FPM = 7.0.33
NGINX = 1.10.3
SQLite = 3.16.2
HOSTAPD = 2.7
WIRINGPI = 2.50

 A P P E A R A N C E   S E T T I N G S  

Theme = Mango
Accent color = Bluejeans
Alpha blend = 1.0
Adaptive background = No
Background image = No
Cover backdrop = No
Cover blur = 20px
Cover scale = 1.25
CoverView auto-display = Never
CoverView style = Animated
Auto-shuffle filter = None
Extra metadata = Yes
Playback history = No

 L I B R A R Y   S E T T I N G S  

Artist list order = Artist
Ignore articles = a,an,the
Compilation rollup = No
Compilation excludes = greatest hits
UTF8 character filter = No
Cover search pri = Embedded cover
Hi-res covers = Auto
Pixel ratio = 1

 A U D I O    P A R A M E T E R S  

Audio device = HiFiBerry DAC Zero
Interface = I2S
Hardware volume = None
Mixer name = Digital
Audio source = Local
Output device = Local
Resume MPD aft src chg = No
Volume knob = 0
Volume mute = Unmuted
Saved MPD vol = 0
Preamp volume = 0
ALSA version = 1.1.3-5+rpt4
SoX version = 0.1.2-2

Bluetooth controller = On
Bluetooth pairing agent = Off
Airplay receiver = Off
Spotify receiver = Off
Squeezelite = Off
UPnP client = Off
DLNA server = Off
GPIO button handler = Off

Rotary encoder = Off
Encoder params = 100 2 3 4 5
Crossfeed = Off
Parametric EQ = Off
Graphic EQ = Off
Polarity inversion = Off
Auto-shuffle = Off
Autoplay = Off
MPD crossfade = Off
MPD httpd = Off

 M P D    S E T T I N G S  

Version = 0.20.23
Volume control = software
ALSA device = hw:0
SoX resampling = disabled
SoX quality = very high
SoX multithreading = off
DSD over PCM (DoP) = no
Replaygain = auto
Replaygain preamp = -5
Volume normalization = No
Audio buffer (kb) = 4096
Output buffer size (kb) = 131072

 B L U E T O O T H    S E T T I N G S  

Bluetooth ver = 5.50
Bluealsa ver = 1.3.1
Speaker sharing = No
Resume MPD = No

Do you need other informations in order to help?

Best regards!

Brice


RE: No sound: Pi zero w with Hifiberry DAC+ zero - Pieter - 07-02-2019

That system info log says your volume is set to 0; try setting it to 100 and see if that helps.


RE: No sound: Pi zero w with Hifiberry DAC+ zero - Tim Curtis - 07-02-2019

To troubleshoot, first establish that a default config using the On-board audio device works.

- Turn off Bluetooth, other renderers, MPD replay gain etc.
- Set I2S device to "None"
.
.

- Reboot

Then verify that a radio station plays and that there are nor errors displayed or printed in the moode log. Note that you don't actually have to actually connect the On-board Pi RCA output jack to your audio system for this test.

-Tim


RE: No sound: Pi zero w with Hifiberry DAC+ zero - BriceL - 07-02-2019

So I set the config to default by following your guide from GitHub to do the setup.

After that I played the stereo test and the radio with the volume turned on, but sadly it wont give out a sound...


Code:
M O O D E    L O G  

   20190702 190012 worker: - Start
   20190702 190013 worker: Successfully daemonized
   20190702 190013 worker: Integrity check (passed)
   20190702 190014 worker: ALSA volume set to (amixer: Unable to find simple control 'Digital',0)
   20190702 190015 worker: Session loaded
   20190702 190015 worker: Debug logging (off)
   20190702 190015 worker: - Platform
   20190702 190018 worker: Rel  (Moode 5.3.1 2019-06-12)
   20190702 190018 worker: Upd  (None)
   20190702 190018 worker: Rasp (9.9)
   20190702 190018 worker: Kern (4.19.49+)
   20190702 190018 worker: MPD  (0.20.23)
   20190702 190018 worker: Host (moode)
   20190702 190018 worker: Hdwr (Pi-Zero W 512MB v1.1)
   20190702 190018 worker: Arch (armv6l)
   20190702 190018 worker: Gov  (performance)
   20190702 190019 worker: USB boot not enabled yet
   20190702 190019 worker: File system not expanded yet
   20190702 190019 worker: HDMI port on
   20190702 190020 worker: File check ok
   20190702 190020 worker: - Network
   20190702 190020 worker: eth0 does not exist
   20190702 190020 worker: eth0 address not assigned
   20190702 190020 worker: wlan0 exists
   20190702 190020 worker: wifi country (DE)
   20190702 190020 worker: wlan0 trying SSID (...)
   20190702 190020 worker: wlan0 (192.168.0.87)
   20190702 190020 worker: - Audio
   20190702 190021 worker: ALSA outputs unmuted
   20190702 190021 worker: ALSA card number (0)
   20190702 190021 worker: Audio output (I2S audio device)
   20190702 190021 worker: Audio device (HiFiBerry DAC Zero)
   20190702 190021 worker: ALSA mixer name (Digital)
   20190702 190021 worker: MPD volume control (software)
   20190702 190021 worker: Hdwr volume controller not detected
   20190702 190021 worker: - Services
   20190702 190021 worker: Reset renderer active state
   20190702 190022 worker: MPD conf updated
   20190702 190022 worker: MPD started
   20190702 190023 worker: MPD accepting connections
   20190702 190023 worker: Configure MPD outputs
   20190702 190023 worker: MPD output 1 ALSA default (on)
   20190702 190023 worker: MPD output 2 ALSA crossfeed (off)
   20190702 190023 worker: MPD output 3 ALSA parametric eq (off)
   20190702 190023 worker: MPD output 4 ALSA graphic eq (off)
   20190702 190023 worker: MPD output 5 ALSA polarity inversion (off)
   20190702 190023 worker: MPD output 6 ALSA bluetooth (off)
   20190702 190023 worker: MPD output 7 HTTP stream (off)
   20190702 190023 worker: MPD crossfade (off)
   20190702 190023 worker: Audio source (Local)
   20190702 190023 worker: Output device (Local)
   20190702 190024 worker: - Music sources
   20190702 190024 worker: USB sources (none attached)
   20190702 190024 worker: NAS sources (none configured)
   20190702 190024 worker: - Miscellaneous
   20190702 190024 worker: Saved MPD vol level (0)
   20190702 190024 worker: Preamp volume level (0)
   20190702 190024 worker: MPD volume level (83) restored
   20190702 190024 worker: ALSA volume level (None)
   20190702 190024 worker: Auto-play is off
   20190702 190024 worker: Maintenance interval (21600)
   20190702 190024 worker: Screen saver activation (Never)
   20190702 190024 worker: Watchdog started
   20190702 190024 worker: Ready
   20190702 190159 worker: Job timezone



RE: No sound: Pi zero w with Hifiberry DAC+ zero - Tim Curtis - 07-03-2019

This log entry suggests some sort of breakage.

20190702 190014 worker: ALSA volume set to (amixer: Unable to find simple control 'Digital',0)

Just try a fresh image on your Pi with no audio board or anything else attached and with no modifications or settings changes.

-Tim


RE: No sound: Pi zero w with Hifiberry DAC+ zero - BriceL - 07-03-2019

This is what I get with a fresh image without anything on my pi:

Code:
 S Y S T E M    P A R A M E T E R S  

    Date and time    = 2019-06-12 16:11:30
    System uptime    = up 22 minutes
    Timezone    = America/Detroit
    Release        = moOde 5.3.1 2019-06-12
    Update        = None    

    Host name    = moode
    ETH0  IP    = unassigned
    ETH0  MAC    = no adapter
    WLAN0 IP    = 172.24.1.1
    WLAN0 MAC    = b8:27:eb:0f:7e:e1
    WiFi country    = US

    HDWR REV    = Pi-Zero W 512MB v1.1
    SoC         = BCM2835
    CORES        = 1
    ARCH        = armv6l
    RASPBIAN    = 9.9
    KERNEL        = 4.19.49+
    KTIMER FREQ    = 100 Hz
    USB BOOT    = not available
    Warranty    = OK

    ROOT size    = 2.9G
    ROOT used     = 75%
    ROOT avail    = 707M
    FS expand    = not expanded
    MEM free     = 216 MB
    MEM used     = 55 MB
    Temperature     = 41.2°C

    CPU GOV        = performance
    P3-WIFI        = On
    P3-BT        = On
    HDMI        = On
    ETH0 CHECK    = On
    MAX USB CUR    = Off
    UAC2 FIX    = Off
    ETHPORT FIX    = Off
    SSH server    = Off

    LED0        = on
    LED1        = not accessible
    SD CARD        = 50 MHz

      C O R E    S E R V I C E S  

    PHP-FPM        = 7.0.33
    NGINX        = 1.10.3
    SQLite        = 3.16.2
    HOSTAPD        = 2.7
    WIRINGPI    = 2.50

      A P P E A R A N C E   S E T T I N G S  

    Theme            = Default
    Accent color        = Emerald
    Alpha blend        = 1.0
    Adaptive background    = No
    Background image    = No
    Cover backdrop        = No
    Cover blur        = 20px
    Cover scale        = 1.25
    CoverView auto-display    = Never
    CoverView style        = Animated
    Auto-shuffle filter    = None
    Extra metadata        = Yes
    Playback history    = No

      L I B R A R Y   S E T T I N G S  

    Artist list order    = Artist
    Ignore articles        = a,an,the
    Compilation rollup    = No
    Compilation excludes    = greatest hits
    UTF8 character filter    = No
    Cover search pri    = Embedded cover
    Hi-res covers        = Auto
    Pixel ratio        = 1

      A U D I O    P A R A M E T E R S  

    Audio device        = On-board audio device
    Interface        = SoC
    Hardware volume        = Controller detected
    Mixer name        = PCM
    Audio source        = Local
    Output device        = Local
    Resume MPD aft src chg    = No
    Volume knob        = 66
    Volume mute        = Unmuted
    Saved MPD vol        = 0
    Preamp volume        = 0
    ALSA version        = 1.1.3-5+rpt4
    SoX version        = 0.1.2-2

    Bluetooth controller    = Off
    Bluetooth pairing agent    = Off
    Airplay receiver    = Off
    Spotify receiver    = Off
    Squeezelite        = Off
    UPnP client        = Off
    DLNA server        = Off
    GPIO button handler    = Off

    Rotary encoder        = Off
    Encoder params        = 100 2 3 4 5
    Crossfeed        = Off
    Parametric EQ        = Off
    Graphic EQ        = Off
    Polarity inversion    = Off
    Auto-shuffle        = Off
    Autoplay        = Off
    MPD crossfade        = Off
    MPD httpd        = Off

      M P D    S E T T I N G S  

    Version            = 0.20.23
    Volume control        = software
    ALSA device        = hw:0
    SoX resampling        = disabled
    SoX quality        = very high
    SoX multithreading    = off
    DSD over PCM (DoP)    = no
    Replaygain        = off
    Replaygain preamp    = 0
    Volume normalization    = No
    Audio buffer (kb)    = 4096
    Output buffer size (kb)    = 131072

      B L U E T O O T H    S E T T I N G S  

    Bluetooth ver        = 5.50
    Bluealsa ver        = 1.3.1
    Speaker sharing        = No
    Resume MPD        = No

      A I R P L A Y    S E T T I N G S  

    Version            = 3.3.1
    Friendly name        = Moode Airplay
    ALSA device        = hw:0
    Interpolation        = soxr
    Output bit depth    = S16
    Output sample rate    = 44100
    Session interruption    = no
    Session timeout (ms)    = 120
    Audio buffer (secs)    = 0.0
    Resume MPD        = No

      S P O T I F Y    S E T T I N G S  

    Friendly name        = Moode Spotify
    ALSA device        = plughw:0
    Bit rate        = 160
    Initial volume        = 0
    Volume curve        = Logarithmic
    Volume normalization    = No
    Normalization pregain    = 0
    Resume MPD        = No

      S Q U E E Z E L I T E    S E T T I N G S  

    Version            = 1.8.7-1052 "DSD/SRC enabled"
    Friendly name        = Moode
    ALSA device        = hw:0
    ALSA params        = 80:4::1
    Output buffers        = 40000:100000
    Task priority        = 45
    Codec list        = flac,pcm,mp3,ogg,aac,alac,dsd
    Other options        = -W -D 500 -R E -S /var/loca
    Resume MPD        = No

      M O O D E    L O G  

   20190612 154955 worker: - Start
   20190612 154955 worker: Successfully daemonized
   20190612 154956 worker: Integrity check (passed)
   20190612 154957 worker: ALSA volume set to (0%)
   20190612 154957 worker: Session loaded
   20190612 154957 worker: Debug logging (off)
   20190612 154957 worker: - Platform
   20190612 154959 worker: Rel  (Moode 5.3.1 2019-06-12)
   20190612 154959 worker: Upd  (None)
   20190612 154959 worker: Rasp (9.9)
   20190612 154959 worker: Kern (4.19.49+)
   20190612 154959 worker: MPD  (0.20.23)
   20190612 154959 worker: Host (moode)
   20190612 154959 worker: Hdwr (Pi-Zero W 512MB v1.1)
   20190612 154959 worker: Arch (armv6l)
   20190612 154959 worker: Gov  (performance)
   20190612 154959 worker: USB boot not enabled yet
   20190612 155000 worker: File system not expanded yet
   20190612 155000 worker: HDMI port on
   20190612 155001 worker: File check ok
   20190612 155001 worker: - Network
   20190612 155001 worker: eth0 does not exist
   20190612 155001 worker: eth0 address not assigned
   20190612 155001 worker: wlan0 exists
   20190612 155001 worker: wifi country (US)
   20190612 155001 worker: wlan0 SSID is blank
   20190612 155001 worker: wlan0 AP mode started
   20190612 155036 worker: wlan0 wait 0 for IP address
   20190612 155039 worker: wlan0 wait 1 for IP address
   20190612 155042 worker: wlan0 (172.24.1.1)
   20190612 155043 worker: - Audio
   20190612 155043 worker: ALSA outputs unmuted
   20190612 155043 worker: ALSA card number (0)
   20190612 155043 worker: Audio output (On-board audio device)
   20190612 155044 worker: ALSA mixer name (PCM)
   20190612 155044 worker: MPD volume control (software)
   20190612 155044 worker: Hdwr volume controller exists
   20190612 155044 worker: - Services
   20190612 155044 worker: Reset renderer active state
   20190612 155045 worker: MPD conf updated
   20190612 155045 worker: MPD started
   20190612 155046 worker: MPD accepting connections
   20190612 155046 worker: Configure MPD outputs
   20190612 155047 worker: MPD output 1 ALSA default (on)
   20190612 155047 worker: MPD output 2 ALSA crossfeed (off)
   20190612 155047 worker: MPD output 3 ALSA parametric eq (off)
   20190612 155047 worker: MPD output 4 ALSA graphic eq (off)
   20190612 155047 worker: MPD output 5 ALSA polarity inversion (off)
   20190612 155047 worker: MPD output 6 ALSA bluetooth (off)
   20190612 155047 worker: MPD output 7 HTTP stream (off)
   20190612 155047 worker: MPD crossfade (off)
   20190612 155047 worker: Audio source (Local)
   20190612 155047 worker: Output device (Local)
   20190612 155047 worker: - Music sources
   20190612 155047 worker: USB sources (none attached)
   20190612 155047 worker: NAS sources (none configured)
   20190612 155047 worker: - Miscellaneous
   20190612 155047 worker: Saved MPD vol level (0)
   20190612 155047 worker: Preamp volume level (0)
   20190612 155047 worker: MPD volume level (0) restored
   20190612 155048 worker: ALSA volume level (100%)
   20190612 155048 worker: Auto-play is off
   20190612 155048 worker: Maintenance interval (21600)
   20190612 155048 worker: Screen saver activation (Never)
   20190612 155048 worker: Watchdog started
   20190612 155048 worker: Ready

Should I now shutdown and put the dac on the pi and proceed to the AP and I2S setup?

Brice


RE: No sound: Pi zero w with Hifiberry DAC+ zero - Tim Curtis - 07-03-2019

Does the included Stereo Test file play?

If it does then just follow the Setup guide.
https://github.com/moode-player/moode/blob/develop/www/setup.txt


RE: No sound: Pi zero w with Hifiberry DAC+ zero - BriceL - 07-03-2019

It included the Stereo Test file and the Radio play. No errors displayed.

I then set the system with the DAC up and could also play the File and radio but no sound coming out...
And this appeared again:


20190702 205520 worker: ALSA volume set to (amixer: Unable to find simple control 'Digital',0)


Code:
A U D I O    P A R A M E T E R S  

    Audio device        = HiFiBerry DAC Zero
    Interface        = I2S
    Hardware volume        = None
    Mixer name        = Digital
    Audio source        = Local
    Output device        = Local
    Resume MPD aft src chg    = No
    Volume knob        = 60
    Volume mute        = Unmuted
    Saved MPD vol        = 0
    Preamp volume        = 0
    ALSA version        = 1.1.3-5+rpt4
    SoX version        = 0.1.2-2

    Bluetooth controller    = Off
    Bluetooth pairing agent    = Off
    Airplay receiver    = Off
    Spotify receiver    = Off
    Squeezelite        = Off
    UPnP client        = Off
    DLNA server        = Off
    GPIO button handler    = Off

    Rotary encoder        = Off
    Encoder params        = 100 2 3 4 5
    Crossfeed        = Off
    Parametric EQ        = Off
    Graphic EQ        = Off
    Polarity inversion    = Off
    Auto-shuffle        = Off
    Autoplay        = Off
    MPD crossfade        = Off
    MPD httpd        = Off

      M P D    S E T T I N G S  

    Version            = 0.20.23
    Volume control        = software
    ALSA device        = hw:0
    SoX resampling        = disabled
    SoX quality        = very high
    SoX multithreading    = off
    DSD over PCM (DoP)    = no
    Replaygain        = off
    Replaygain preamp    = 0
    Volume normalization    = No
    Audio buffer (kb)    = 4096
    Output buffer size (kb)    = 131072

      M O O D E    L O G  

   20190702 205518 worker: - Start
   20190702 205519 worker: Successfully daemonized
   20190702 205519 worker: Integrity check (passed)
   20190702 205520 worker: ALSA volume set to (amixer: Unable to find simple control 'Digital',0)
   20190702 205521 worker: Session loaded
   20190702 205521 worker: Debug logging (off)
   20190702 205521 worker: - Platform
   20190702 205524 worker: Rel  (Moode 5.3.1 2019-06-12)
   20190702 205524 worker: Upd  (None)
   20190702 205524 worker: Rasp (9.9)
   20190702 205524 worker: Kern (4.19.49+)
   20190702 205524 worker: MPD  (0.20.23)
   20190702 205524 worker: Host (moode)
   20190702 205524 worker: Hdwr (Pi-Zero W 512MB v1.1)
   20190702 205524 worker: Arch (armv6l)
   20190702 205524 worker: Gov  (performance)
   20190702 205524 worker: USB boot not enabled yet
   20190702 205525 worker: File system not expanded yet
   20190702 205525 worker: HDMI port on
   20190702 205526 worker: File check ok
   20190702 205526 worker: - Network
   20190702 205526 worker: eth0 does not exist
   20190702 205526 worker: eth0 address not assigned
   20190702 205526 worker: wlan0 exists
   20190702 205526 worker: wifi country (DE)
   20190702 205526 worker: wlan0 trying SSID (AliceimWland)
   20190702 205526 worker: wlan0 (192.168.0.87)
   20190702 205526 worker: - Audio
   20190702 205526 worker: ALSA outputs unmuted
   20190702 205526 worker: ALSA card number (0)
   20190702 205526 worker: Audio output (I2S audio device)
   20190702 205526 worker: Audio device (HiFiBerry DAC Zero)
   20190702 205527 worker: ALSA mixer name (Digital)
   20190702 205527 worker: MPD volume control (software)
   20190702 205527 worker: Hdwr volume controller not detected
   20190702 205527 worker: - Services
   20190702 205527 worker: Reset renderer active state
   20190702 205528 worker: MPD conf updated
   20190702 205528 worker: MPD started
   20190702 205529 worker: MPD accepting connections
   20190702 205529 worker: Configure MPD outputs
   20190702 205529 worker: MPD output 1 ALSA default (on)
   20190702 205529 worker: MPD output 2 ALSA crossfeed (off)
   20190702 205529 worker: MPD output 3 ALSA parametric eq (off)
   20190702 205529 worker: MPD output 4 ALSA graphic eq (off)
   20190702 205529 worker: MPD output 5 ALSA polarity inversion (off)
   20190702 205529 worker: MPD output 6 ALSA bluetooth (off)
   20190702 205529 worker: MPD output 7 HTTP stream (off)
   20190702 205529 worker: MPD crossfade (off)
   20190702 205529 worker: Audio source (Local)
   20190702 205529 worker: Output device (Local)
   20190702 205529 worker: - Music sources
   20190702 205530 worker: USB sources (none attached)
   20190702 205530 worker: NAS sources (none configured)
   20190702 205530 worker: - Miscellaneous
   20190702 205530 worker: Saved MPD vol level (0)
   20190702 205530 worker: Preamp volume level (0)
   20190702 205530 worker: MPD volume level (33) restored
   20190702 205530 worker: ALSA volume level (None)
   20190702 205530 worker: Auto-play is off
   20190702 205530 worker: Maintenance interval (21600)
   20190702 205530 worker: Screen saver activation (Never)
   20190702 205530 worker: Watchdog started
   20190702 205530 worker: Ready
   20190702 205641 worker: Job mpdcfg



RE: No sound: Pi zero w with Hifiberry DAC+ zero - Tim Curtis - 07-03-2019

Very odd.

I don't have one of these DAC boards and so not able to try and reproduce your error but maybe another user that has this board can offer some help.


RE: No sound: Pi zero w with Hifiberry DAC+ zero - BriceL - 07-03-2019

Thanks for the try Tim!
I hope that someone will come across a solution  Rolleyes

see you around

Brice