Page 1 of 1
Trixie/ DAC (CarPiHAT Pro)
Posted: Sat Nov 29, 2025 6:12 pm
by Sambolini94
Hi,
I hade been using my setup fine after some changes and bugs on bookworm.
RPi 4 (8gb)
CarPiHAT Pro (power management and DAC)
SSD
Carplay dongle
Waveshare 9.3" screen (usb touch screen and hdmi video signal)
USB Microphone
Though after change my setup and upgrading to Trixie I can't seem to get my DAC working. I have trawled the forumn but can't seem to find a specific issue related to the Pi4 (most of them mention Pi5).
I added my dtoverlay to boot/ config... though is there something I am missing here to get audio output through my DAC?
Thanks,
Sam
Re: Trixie/ DAC (CarPiHAT Pro)
Posted: Sat Nov 29, 2025 6:39 pm
by hudiy
Hello,
Changelog for Trixie does not mention any changes in DAC/dtoverlays handling. However, the PipeWire version is newer, which may impact audio devices handling.
What exactly is the problem? Is the device not being detected, or is it detected but there's no sound?
Please post some screenshots from qpwgraph program - it's a good starting point for investigating audio issues in PipeWire.
Re: Trixie/ DAC (CarPiHAT Pro)
Posted: Sat Nov 29, 2025 7:50 pm
by Sambolini94
So this is my Pactl List Sink output
pactl list sinks
Sink #55
State: SUSPENDED
Name: alsa_output.platform-soc_sound.stereo-fallback
Description: Built-in Audio Stereo
Driver: PipeWire
Sample Specification: s32le 2ch 48000Hz
Channel Map: front-left,front-right
Owner Module: 4294967295
Mute: no
Volume: front-left: 26214 / 40% / -23.88 dB, front-right: 26214 / 40% / -23.88 dB
balance 0.00
Base Volume: 65536 / 100% / 0.00 dB
Monitor Source: alsa_output.platform-soc_sound.stereo-fallback.monitor
Latency: 0 usec, configured 0 usec
Flags: HARDWARE DECIBEL_VOLUME LATENCY
Properties:
alsa.card = "0"
alsa.card_name = "snd_rpi_hifiberry_dacplus"
alsa.class = "generic"
alsa.device = "0"
alsa.driver_name = "snd_soc_hifiberry_dacplus"
alsa.id = "HiFiBerry DAC+ HiFi pcm512x-hifi-0"
alsa.long_card_name = "snd_rpi_hifiberry_dacplus"
alsa.name = "HiFiBerry DAC+ HiFi pcm512x-hifi-0"
alsa.resolution_bits = "16"
alsa.subclass = "generic-mix"
alsa.subdevice = "0"
alsa.subdevice_name = "subdevice #0"
alsa.sync.id = "00000000:00000000:00000000:00000000"
api.alsa.card.longname = "snd_rpi_hifiberry_dacplus"
api.alsa.card.name = "snd_rpi_hifiberry_dacplus"
api.alsa.path = "hw:0"
api.alsa.pcm.card = "0"
api.alsa.pcm.stream = "playback"
audio.channels = "2"
audio.position = "FL,FR"
card.profile.device = "1"
device.api = "alsa"
device.class = "sound"
device.icon_name = "audio-card-analog"
device.id = "48"
device.profile.description = "Stereo"
device.profile.name = "stereo-fallback"
device.routes = "1"
factory.name = "api.alsa.pcm.sink"
media.class = "Audio/Sink"
device.description = "Built-in Audio"
node.name = "alsa_output.platform-soc_sound.stereo-fallback"
node.nick = "HiFiBerry DAC+ HiFi pcm512x-hifi-0"
node.pause-on-idle = "false"
object.path = "alsa:acp:sndrpihifiberry:1:playback"
port.group = "playback"
priority.driver = "1000"
priority.session = "1000"
factory.id = "19"
clock.quantum-limit = "8192"
client.id = "47"
node.driver = "true"
node.loop.name = "data-loop.0"
library.name = "audioconvert/libspa-audioconvert"
object.id = "55"
object.serial = "55"
api.acp.auto-port = "false"
api.acp.auto-profile = "false"
api.alsa.card = "0"
api.alsa.split-enable = "true"
api.alsa.use-acp = "true"
api.dbus.ReserveDevice1 = "Audio0"
api.dbus.ReserveDevice1.Priority = "-20"
device.bus_path = "platform-soc:sound"
device.enum.api = "udev"
device.form_factor = "internal"
device.name = "alsa_card.platform-soc_sound"
device.nick = "snd_rpi_hifiberry_dacplus"
device.plugged.usec = "5905063"
device.subsystem = "sound"
sysfs.path = "/devices/platform/soc/soc:sound/sound/card0"
spa.object.id = "2"
device.string = "0"
Ports:
analog-output: Analog Output (type: Analog, priority: 9900, availability unknown)
Active Port: analog-output
Formats:
pcm
Sink #90
State: SUSPENDED
Name: hudiy_equalizer_sink
Description: hudiy_equalizer_sink Sink
Driver: PipeWire
Sample Specification: float32le 2ch 48000Hz
Channel Map: front-left,front-right
Owner Module: 536870916
Mute: no
Volume: front-left: 65536 / 100% / 0.00 dB, front-right: 65536 / 100% / 0.00 dB
balance 0.00
Base Volume: 65536 / 100% / 0.00 dB
Monitor Source: hudiy_equalizer_sink.monitor
Latency: 0 usec, configured 0 usec
Flags: DECIBEL_VOLUME LATENCY
Properties:
node.name = "hudiy_equalizer_sink"
media.class = "Audio/Sink"
device.class = "filter"
audio.channels = "2"
audio.position = "[ FL, FR ]"
node.group = "ladspa-sink-536870916"
pulse.module.id = "536870916"
device.description = "hudiy_equalizer_sink Sink"
node.link-group = "filter-chain-1276-13"
node.virtual = "true"
resample.prefill = "true"
resample.disable = "true"
media.name = "hudiy_equalizer_sink Sink input"
stream.is-live = "true"
node.want-driver = "true"
node.autoconnect = "true"
port.group = "stream.0"
adapt.follower.spa-node = ""
object.register = "false"
factory.id = "7"
clock.quantum-limit = "8192"
node.loop.name = "data-loop.0"
library.name = "audioconvert/libspa-audioconvert"
client.id = "82"
object.id = "83"
object.serial = "90"
node.driver-id = "55"
Formats:
pcm
Sink #105
State: SUSPENDED
Name: echo_cancel_sink
Description: Echo-Cancel Sink
Driver: PipeWire
Sample Specification: float32le 2ch 48000Hz
Channel Map: front-left,front-right
Owner Module: 536870917
Mute: no
Volume: front-left: 65536 / 100% / 0.00 dB, front-right: 65536 / 100% / 0.00 dB
balance 0.00
Base Volume: 65536 / 100% / 0.00 dB
Monitor Source: echo_cancel_sink.monitor
Latency: 0 usec, configured 0 usec
Flags: DECIBEL_VOLUME LATENCY
Properties:
node.name = "echo_cancel_sink"
pulse.module.id = "536870917"
device.description = "Echo-Cancel Sink"
media.class = "Audio/Sink"
node.group = "echo-cancel-1276-14"
node.link-group = "echo-cancel-1276-14"
node.virtual = "true"
audio.channels = "2"
audio.position = "[ FL, FR ]"
resample.prefill = "true"
node.latency = "480/48000"
media.name = "Echo-Cancel Sink"
stream.is-live = "true"
node.want-driver = "true"
port.group = "stream.0"
adapt.follower.spa-node = ""
object.register = "false"
factory.id = "7"
clock.quantum-limit = "8192"
node.loop.name = "data-loop.0"
library.name = "audioconvert/libspa-audioconvert"
client.id = "93"
object.id = "96"
object.serial = "105"
node.driver-id = "55"
Formats:
pcm
Re: Trixie/ DAC (CarPiHAT Pro)
Posted: Sat Nov 29, 2025 7:55 pm
by Sambolini94
and these are my qpwgraph
Re: Trixie/ DAC (CarPiHAT Pro)
Posted: Sat Nov 29, 2025 8:14 pm
by hudiy
Thanks for the screenshots. In qpwgraph it's visible that the Echo Cancel Source is not connected to any physical audio input (microphone). You mentioned that you have a USB microphone in your setup. Was it connected to the Raspberry Pi? If so, please send the output of the command
pactl list sources. Looks like it was not detected (if was connected).
For now (with not detected microphone), this looks like the Echo-Cancel module issue on Trixie that has already been discussed on the forum. If you are not using a microphone, could you try the suggestions from below post?
viewtopic.php?p=785#p785
Re: Trixie/ DAC (CarPiHAT Pro)
Posted: Sat Nov 29, 2025 11:53 pm
by Sambolini94
So after a bit of playing around and going back and forth... I found a solution which seems to work through reboots...
I edited the boot/firmware/config.txt file and added the following under {all} section at the bottom:
dtparam=audio=off
dtparam=i2s=on
dtoverlay=vc4-kms-v3d,noaudio
dtoverlay=hifiberry-dacplus-std
Then commented out # the "dtoverlay=dwc2,dr_mode=host"
And music works both over carplay and bluetooth but only when usb mic is plugged in which is fine.
Assume this fix is workable going forward as I didn't want to revert back to X11, wanted to stay with Wayland.
Re: Trixie/ DAC (CarPiHAT Pro)
Posted: Sun Nov 30, 2025 12:38 am
by hudiy
Sambolini94 wrote: Sat Nov 29, 2025 11:53 pm
So after a bit of playing around and going back and forth... I found a solution which seems to work through reboots...
I edited the boot/firmware/config.txt file and added the following under {all} section at the bottom:
dtparam=audio=off
dtparam=i2s=on
dtoverlay=vc4-kms-v3d,noaudio
dtoverlay=hifiberry-dacplus-std
Then commented out # the "dtoverlay=dwc2,dr_mode=host"
And music works both over carplay and bluetooth but only when usb mic is plugged in which is fine.
Assume this fix is workable going forward as I didn't want to revert back to X11, wanted to stay with Wayland.
It looks like you were affected by the echo-cancel module issue on Trixie. Plugging in a microphone or loading the virtual-source module instead of echo-cancel (when there is no microphone connected) fixes the problem, so your solution with plugging in the microphone will work.
Re: Trixie/ DAC (CarPiHAT Pro)
Posted: Sun Nov 30, 2025 9:27 am
by Sambolini94
Yes I saw that and had plugged my mic though the DAC still wasn't producing sound which is when I made the changed previously mentioned and now it seems to work.
Ironically this was an easier/ more straight forward solution compared to my similar issues when I was running 1.2 on Bookworm.