No headphone audio device

There is no Headphone as a sound card in my Rpi Zero 2.
aplay -L gives back the following:

null
    Discard all samples (playback) or generate zero samples (capture)
hw:CARD=b1,DEV=0
    bcm2835 HDMI 1, bcm2835 HDMI 1
    Direct hardware device without any conversions
plughw:CARD=b1,DEV=0
    bcm2835 HDMI 1, bcm2835 HDMI 1
    Hardware device with all software conversions
sysdefault:CARD=b1
    bcm2835 HDMI 1, bcm2835 HDMI 1
    Default Audio Device
dmix:CARD=b1,DEV=0
    bcm2835 HDMI 1, bcm2835 HDMI 1
    Direct sample mixing device

This is just strange for me, I have tried to force 3.5mm output in dietpi-config, but then I get no devices at all, tried changing cmdline.txt with “snd_bcm2835.enable_headphones=1 snd_bcm2835.enable_hdmi=1 snd_bcm2835.enable_compat_alsa=0” but it doesn’t have any result.
My config.txt is the following:


# Docs: https://www.raspberrypi.com/documentation/computers/config_txt.html
# Overlays: https://github.com/raspberrypi/firmware/blob/master/boot/overlays/README
dtoverlay=vc4-fkms-v3d
#-------Display---------
# Max allocated framebuffers: Set to "0" in headless mode to reduce memory usage
# - Defaults to "2" on RPi4 and "1" on earlier RPi models
#max_framebuffers=0

# If you get no picture, set the following to "1" to apply most compatible HDMI settings.
#hdmi_safe=1

# Uncomment to adjust the HDMI signal strength if you have interferences, blanking, or no display.
# - Ranges from "0" to "11", use values above "7" only if required, e.g. with very long HDMI cable.
# - Default on first RPi1 A/B is "2", else "5", on RPi4 this setting is ignored.
#config_hdmi_boost=5

# Uncomment if HDMI display is not detected and composite is being outputted.
hdmi_force_hotplug=1

# Uncomment to disable HDMI even if plugged, e.g. to force composite output.
#hdmi_ignore_hotplug=1

# Uncomment to force a console size. By default it will be display's size minus overscan.
framebuffer_width=480
framebuffer_height=480
max_framebuffer_width=480
max_framebuffer_height=480

# Uncomment to enable SDTV/composite output on RPi4. This has no effect on previous RPi models.
#enable_tvout=1
# SDTV mode
#sdtv_mode=0

# Uncomment to force a specific HDMI mode (this will force VGA).
hdmi_group=2
hdmi_mode=87
hdmi_timings=480 1 10 20 50 480 1 10 10 5 0 0 0 60 0 16960000 4
#hdmi_cvt=480 480 60 6 0 0 0
display_rotate=0
avoid_warnings=1

# Uncomment to force an HDMI mode rather than DVI. This enables HDMI audio in DMT modes.
hdmi_drive=1

# Set "hdmi_blanking=1" to allow the display going into standby after 10 minutes without input.
# With default value "0", the display shows a blank screen instead, but will not go into standby.
# NB: Some legacy OpenMAX applications (OMXPlayer) cannot wake screens from real standby.
hdmi_blanking=1

# Set to "1" if your display has a black border of unused pixels visible.
disable_overscan=1

# Uncomment the following to adjust overscan.
# Use positive numbers if console goes off screen, and negative if there is too much border.
#overscan_left=16
#overscan_right=16
#overscan_top=16
#overscan_bottom=16

# Rotation
#display_hdmi_rotate=0
#lcd_rotate=0

#-------RPi camera module-------
#start_x=1
#disable_camera_led=1

#-------GPU memory splits-------
gpu_mem_256=128
gpu_mem_512=128
gpu_mem_1024=128

#-------Boot splash screen------
disable_splash=0

#-------Onboard sound-----------
dtparam=audio=on
dtoverlay=audremap18,pins_18_19

#-------I2C-------------
#dtparam=i2c_arm=off
#dtparam=i2c_arm_baudrate=100000

#-------SPI-------------
dtparam=spi=on

#-------Serial/UART-----
# NB: "enable_uart=1" will enforce "core_freq=250" on RPi models with onboard WiFi.
enable_uart=0

#-------SD card HPD-----
# Comment to enable SD card hot-plug detection, while booting via USB or network.
# NB: This causes constant CPU load and kernel errors when no SD card is inserted.
dtparam=sd_poll_once

#-------Overclock-------
temp_limit=65
initial_turbo=20

#over_voltage=0
#arm_freq=1000
#core_freq=400
#sdram_freq=450

#over_voltage_min=0
#arm_freq_min=300
#core_freq_min=250
#sdram_freq_min=400
#dtoverlay=dietpi-disable_headphones

I did a fresh install, so I cannot check, but I think I have forgotten to add dietpi user to audio group.
sudo adduser dietpi audio

does this mean your issue has been solved?

I’ve made a backup before I did the fresh install, then went back to see if the above command has an effect, but no. I don’t know what is the problem there, but doesn’t really matter, because with a fresh install I couldn’t reproduce the issue. So this can be closed. Thank you.

1 Like