Moode Forum
Pimoroni DAC SHIM - 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: Pimoroni DAC SHIM (/showthread.php?tid=4226)

Pages: 1 2 3


Pimoroni DAC SHIM - timbo22 - 09-25-2021

Hi all,
I have got hold of one of these
https://shop.pimoroni.com/products/audio-dac-shim-line-out
I intended to replace the PHAT CAD that I have successfully been using in my system. Based on the reviews i assumed it was a simple drop in with some minor config changes. I just cannot get it to work. I have tried both PHAT DAC and HIFIBERRY DAC named device and dt overlays. I have added gpio=25=op,dh  to /boot/config.txt.
I have even resorted to a full fresh install. The good people at Pimoroni even swapped my original for a replacement in case of a damaged board. 

in every case i can go back to the PHAT DAC and hear audio.

here is a screen grab 

hope someone can help.

Tim.


RE: Pimoroni DAC SHIM - the_bertrum - 09-26-2021

I have one of the mono amplifier versions of those on pi Zero in an old kitchen radio and it works fine with the HIFIBERRY DAC selected. I didn't need to mess about with adding anything in config.txt either.

Not much help I know, but my experience says the device should "just work" ™.


RE: Pimoroni DAC SHIM - Tim Curtis - 09-26-2021

(09-25-2021, 05:41 PM)timbo22 Wrote: Hi all,
I have got hold of one of these
https://shop.pimoroni.com/products/audio-dac-shim-line-out
I intended to replace the PHAT CAD that I have successfully been using in my system. Based on the reviews i assumed it was a simple drop in with some minor config changes. I just cannot get it to work. I have tried both PHAT DAC and HIFIBERRY DAC named device and dt overlays. I have added gpio=25=op,dh  to /boot/config.txt.
I have even resorted to a full fresh install. The good people at Pimoroni even swapped my original for a replacement in case of a damaged board. 

in every case i can go back to the PHAT DAC and hear audio.

here is a screen grab 

hope someone can help.

Tim.

Reboot and then post the output from the following commands.

Code:
moodeutl -l

cat /boot/config.txt



RE: Pimoroni DAC SHIM - timbo22 - 09-26-2021

(09-26-2021, 01:29 PM)Tim Curtis Wrote:
(09-25-2021, 05:41 PM)timbo22 Wrote: Hi all,
I have got hold of one of these
https://shop.pimoroni.com/products/audio-dac-shim-line-out
I intended to replace the PHAT CAD that I have successfully been using in my system. Based on the reviews i assumed it was a simple drop in with some minor config changes. I just cannot get it to work. I have tried both PHAT DAC and HIFIBERRY DAC named device and dt overlays. I have added gpio=25=op,dh  to /boot/config.txt.
I have even resorted to a full fresh install. The good people at Pimoroni even swapped my original for a replacement in case of a damaged board. 

in every case i can go back to the PHAT DAC and hear audio.

here is a screen grab 

hope someone can help.

Tim.

Reboot and then post the output from the following commands.

Code:
moodeutl -l

cat /boot/config.txt
Code:
pi@moode:~ $ moodeutl -l
20210926 144643 worker: -- Start
20210926 144643 worker: Successfully daemonized
20210926 144644 worker: Integrity check (passed)
20210926 144648 worker: File check (OK)
20210926 144650 worker: Session vacuumed
20210926 144650 worker: Session loaded
20210926 144650 worker: Debug logging (OFF)
20210926 144651 worker: -- Audio debug
20210926 144651 worker: ALSA cards: (0:sndrpihifiberry | 1:empty | 2:empty | 3:empty
20210926 144651 worker: MPD config: (0:HiFiBerry DAC | mixer:(none) | card:0)
20210926 144651 worker: ALSA mixer actual (none)
20210926 144651 worker: ALSA volume (none)
20210926 144651 worker: -- System
20210926 144655 worker: Host     (moode)
20210926 144655 worker: moOde    (7.3.0 2021-06-25)
20210926 144655 worker: RaspiOS  (10.6)
20210926 144655 worker: Kernel   (5.4.77+ #1371)
20210926 144655 worker: Platform (Pi-Zero W 1.1 512MB)
20210926 144655 worker: ARM arch (armv6l, 32-bit kernel)
20210926 144655 worker: MPD ver  (0.22.8_p0x3)
20210926 144655 worker: CPU gov  (ondemand)
20210926 144655 worker: USB boot not available
20210926 144655 worker: File system not expanded yet
20210926 144656 worker: HDMI port on
20210926 144656 worker: -- Network
20210926 144656 worker: eth0 does not exist
20210926 144656 worker: eth0 address not assigned
20210926 144656 worker: wlan0 exists
20210926 144656 worker: wifi country (GB)
20210926 144656 worker: wlan0 trying SSID (XXXX)
20210926 144656 worker: IP addr (192.168.68.116)
20210926 144656 worker: Netmask (255.255.255.0)
20210926 144656 worker: Gateway (192.168.68.1)
20210926 144656 worker: Pri DNS (192.168.68.1)
20210926 144656 worker: Domain  (192.168.1.254)
20210926 144657 worker: Pi integrated wlan0 power save disabled
20210926 144657 worker: -- Audio config
20210926 144658 worker: MPD conf updated
20210926 144658 worker: ALSA card number (0)
20210926 144658 worker: MPD audio output (HiFiBerry DAC)
20210926 145051 worker: Audio formats (S16_LE, S24_LE, S32_LE)
20210926 145051 worker: ALSA mixer name (none)
20210926 145051 worker: MPD volume control (software)
20210926 145051 worker: Hdwr volume controller not detected
20210926 145051 worker: ALSA output mode (Default: plughw)
20210926 145051 worker: ALSA loopback (Off)
20210926 145051 worker: Reset renderer active flags
20210926 145052 worker: CamillaDSP (off)
20210926 145052 worker: -- MPD startup
20210926 145052 worker: MPD started
20210926 145053 worker: MPD accepting connections
20210926 145054 worker: MPD output 1 ALSA Default (on)
20210926 145054 worker: MPD output 2 ALSA Bluetooth (off)
20210926 145054 worker: MPD output 3 HTTP Server (off)
20210926 145054 worker: MPD crossfade (off)
20210926 145054 worker: MPD ignore CUE files (yes)
20210926 145054 worker: -- Feature availability
20210926 145054 worker: Source select (available)
20210926 145054 worker: Source select (source: MPD)
20210926 145054 worker: Source select (output: HiFiBerry DAC)
20210926 145054 worker: Bluetooth (available)
20210926 145054 worker: Airplay renderer (available)
20210926 145054 worker: Spotify renderer (available)
20210926 145054 worker: Squeezelite (available)
20210926 145054 worker: RoonBridge renderer (not installed)
20210926 145054 worker: UPnP renderer (available)
20210926 145054 worker: DLNA server (available)
20210926 145054 worker: UPnP browser (available)
20210926 145054 worker: GPIO button handler (available)
20210926 145054 worker: Stream recorder (n/a)
20210926 145054 worker: -- Music sources
20210926 145054 worker: USB sources (none attached)
20210926 145054 worker: NAS and UPnP sources (none configured)
20210926 145054 worker: -- Other
20210926 145054 worker: USB volume knob (Off)
20210926 145054 worker: USB auto-mounter (udisks-glue)
20210926 145054 worker: LED0 (On)
20210926 145054 worker: LED1 (sysclass does not exist)
20210926 145054 worker: Saved MPD vol level (0)
20210926 145054 worker: Preamp volume level (0)
20210926 145054 worker: MPD volume level (0) restored
20210926 145054 worker: ALSA volume level (None)
20210926 145054 worker: Auto-play (Off)
20210926 145054 worker: Maintenance interval (3 hours)
20210926 145054 worker: Screen saver activation (Never)
20210926 145054 worker: Session permissions (OK)
20210926 145054 worker: Watchdog started
20210926 145054 worker: Ready

pi@moode:~ $ cat /boot/config.txt
disable_splash=1
disable_overscan=1
hdmi_drive=2
hdmi_blanking=1
hdmi_force_edid_audio=1
hdmi_force_hotplug=1
hdmi_group=0
dtparam=i2c_arm=on
dtparam=i2s=on
dtparam=audio=off
dtoverlay=hifiberry-dac
#dtoverlay=disable-wifi
#dtoverlay=disable-bt
gpio=25=op,dh


Thank you very much for having a look, its appreciated.


RE: Pimoroni DAC SHIM - Tim Curtis - 09-26-2021

I don't see anything suspicious in the logs. I'd prolly remove out the line below.

gpio=25=op,dh

You might try settings ALSA output mode to "Direct (hw)" in Audio Config.


RE: Pimoroni DAC SHIM - DRONE7 - 09-26-2021

HDMI audio is selected yet the dac is  i2s ?


Code:
hdmi_drive=2
hdmi_force_edid_audio=1



RE: Pimoroni DAC SHIM - timbo22 - 09-26-2021

Code:
pi@moode:~ $ moodeutl -l
20210926 164538 worker: -- Start
20210926 164539 worker: Successfully daemonized
20210926 164540 worker: Integrity check (passed)
20210926 164542 moode.php: MPD connect failed: cmd=(playlist)
20210926 164543 worker: File check (OK)
20210926 164545 moode.php: MPD connect failed: cmd=(playlist)
20210926 164546 worker: Session vacuumed
20210926 164546 worker: Session loaded
20210926 164546 worker: Debug logging (OFF)
20210926 164546 worker: -- Audio debug
20210926 164546 worker: ALSA cards: (0:sndrpihifiberry | 1:empty | 2:empty | 3:empty
20210926 164546 worker: MPD config: (0:HiFiBerry DAC | mixer:(none) | card:0)
20210926 164546 worker: ALSA mixer actual (none)
20210926 164546 worker: ALSA volume (none)
20210926 164546 worker: -- System
20210926 164549 moode.php: MPD connect failed: cmd=(playlist)
20210926 164551 worker: Host     (moode)
20210926 164551 worker: moOde    (7.3.0 2021-06-25)
20210926 164551 worker: RaspiOS  (10.6)
20210926 164551 worker: Kernel   (5.4.77+ #1371)
20210926 164551 worker: Platform (Pi-Zero W 1.1 512MB)
20210926 164551 worker: ARM arch (armv6l, 32-bit kernel)
20210926 164551 worker: MPD ver  (0.22.8_p0x3)
20210926 164551 worker: CPU gov  (ondemand)
20210926 164551 worker: USB boot not available
20210926 164551 worker: File system not expanded yet
20210926 164551 worker: HDMI port on
20210926 164551 worker: -- Network
20210926 164551 worker: eth0 does not exist
20210926 164551 worker: eth0 address not assigned
20210926 164551 worker: wlan0 exists
20210926 164551 worker: wifi country (GB)
20210926 164551 worker: wlan0 trying SSID (XXXX)
20210926 164552 worker: IP addr (192.168.68.116)
20210926 164552 worker: Netmask (255.255.255.0)
20210926 164552 worker: Gateway (192.168.68.1)
20210926 164552 worker: Pri DNS (192.168.68.1)
20210926 164552 worker: Domain  (192.168.1.254)
20210926 164552 worker: Pi integrated wlan0 power save disabled
20210926 164552 worker: -- Audio config
20210926 164608 worker: MPD conf updated
20210926 164608 worker: ALSA card number (0)
20210926 164608 worker: MPD audio output (HiFiBerry DAC)
20210926 164609 worker: Audio formats (S16_LE, S24_LE, S32_LE)
20210926 164609 worker: ALSA mixer name (none)
20210926 164609 worker: MPD volume control (software)
20210926 164609 worker: Hdwr volume controller not detected
20210926 164609 worker: ALSA output mode (Direct: hw)
20210926 164609 worker: ALSA loopback (Off)
20210926 164609 worker: Reset renderer active flags
20210926 164609 worker: CamillaDSP (off)
20210926 164609 worker: -- MPD startup
20210926 164609 worker: MPD started
20210926 164611 worker: MPD accepting connections
20210926 164611 worker: MPD output 1 ALSA Default (on)
20210926 164611 worker: MPD output 2 ALSA Bluetooth (off)
20210926 164611 worker: MPD output 3 HTTP Server (off)
20210926 164611 worker: MPD crossfade (off)
20210926 164611 worker: MPD ignore CUE files (yes)
20210926 164611 worker: -- Feature availability
20210926 164611 worker: Source select (available)
20210926 164611 worker: Source select (source: MPD)
20210926 164611 worker: Source select (output: HiFiBerry DAC)
20210926 164611 worker: Bluetooth (available)
20210926 164611 worker: Airplay renderer (available)
20210926 164611 worker: Spotify renderer (available)
20210926 164611 worker: Squeezelite (available)
20210926 164611 worker: RoonBridge renderer (not installed)
20210926 164611 worker: UPnP renderer (available)
20210926 164611 worker: DLNA server (available)
20210926 164611 worker: UPnP browser (available)
20210926 164611 worker: GPIO button handler (available)
20210926 164611 worker: Stream recorder (n/a)
20210926 164611 worker: -- Music sources
20210926 164611 worker: USB sources (none attached)
20210926 164611 worker: NAS and UPnP sources (none configured)
20210926 164611 worker: -- Other
20210926 164611 worker: USB volume knob (Off)
20210926 164611 worker: USB auto-mounter (udisks-glue)
20210926 164612 worker: LED0 (On)
20210926 164612 worker: LED1 (sysclass does not exist)
20210926 164612 worker: Saved MPD vol level (0)
20210926 164612 worker: Preamp volume level (0)
20210926 164612 worker: MPD volume level (50) restored
20210926 164612 worker: ALSA volume level (None)
20210926 164612 worker: Auto-play (Off)
20210926 164612 worker: Maintenance interval (3 hours)
20210926 164612 worker: Screen saver activation (Never)
20210926 164612 worker: Session permissions (OK)
20210926 164612 worker: Watchdog started
20210926 164612 worker: Ready

pi@moode:~ $ cat /boot/config.txt
disable_splash=1
disable_overscan=1
#hdmi_drive=2
hdmi_blanking=1
#hdmi_force_edid_audio=1
hdmi_force_hotplug=1
hdmi_group=0
dtparam=i2c_arm=on
dtparam=i2s=on
dtparam=audio=off
dtoverlay=hifiberry-dac
#dtoverlay=disable-wifi
#dtoverlay=disable-bt
#gpio=25=op,dh



Still nothing,  thanks for looking though.


RE: Pimoroni DAC SHIM - Tim Curtis - 09-26-2021

Look in dmesg to see if the i2s mapping is successful.

Below is what a success case looks like.

Code:
pi@rp2:~ $ dmesg | grep i2s
[    6.284777] asoc-audio-graph-card soc:sound: allo-cs43130 <-> fe203000.i2s mapping ok
pi@rp2:~ $

If there are errors then most likely some sort of hardware or connector issue.


RE: Pimoroni DAC SHIM - DRONE7 - 09-26-2021

Just to check (because it has happened on several occasions ) you have software volume selected.... have you adjusted the volume control on the mainMoOde player page ?


Code:
MPD volume control (software)



RE: Pimoroni DAC SHIM - timbo22 - 09-26-2021

pi@moode:/tims $ dmesg | grep i2s
[ 16.516910] snd-rpi-simple socConfusedound: pcm5102a-hifi <-> 20203000.i2s mapping ok

I have verified that the volume control wheel on the web interface is at 50.

I hear nothing...