-
Notifications
You must be signed in to change notification settings - Fork 58
Audio
KonstaT edited this page Oct 30, 2023
·
9 revisions
3.5mm jack is used for audio output by default.
Edit device/brcm/rpi4/vendor.prop and change/add the following lines to change the audio output device.
3.5mm jack:
# Audio
persist.audio.pcm.card=0
ro.hardware.audio.primary=rpi
HDMI0:
# Audio
persist.audio.hdmi.device=vc4hdmi0
ro.hardware.audio.primary=rpi_hdmi
HDMI1:
# Audio
persist.audio.hdmi.device=vc4hdmi1
ro.hardware.audio.primary=rpi_hdmi
DAC:
# Audio
persist.audio.pcm.card=3
ro.hardware.audio.primary=rpi
To use GPIO audio DACs you also need to edit device/brcm/rpi4/boot/config.txt and enable driver for your audio DAC (e.g. Hifiberry DAC+) and interfaces it uses.
# Audio DAC
dtoverlay=hifiberry-dacplus
# I2C
dtparam=i2c_arm=on
# I2S
dtparam=i2s=on