WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: HDMI Audio not working RPI Zero 2W  (Read 1489 times)

Offline trithilon

  • Newbie
  • *
  • Posts: 11
HDMI Audio not working RPI Zero 2W
« on: August 22, 2022, 06:44:12 PM »
Hi,
I am unable to get sound to work on my piCore installation be it inside CLI OR in desktop/GUI mode.
Are there packages I need to use? Any particular /boot/config.txt settings?

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14826
Re: HDMI Audio not working RPI Zero 2W
« Reply #1 on: August 23, 2022, 04:41:00 AM »
If you load the alsa-utils extension, you should see this:
Code: [Select]
aplay -l | grep hdmi
card 1: vc4hdmi0 [vc4-hdmi-0], device 0: MAI PCM i2s-hifi-0 [MAI PCM i2s-hifi-0]
card 2: vc4hdmi1 [vc4-hdmi-1], device 0: MAI PCM i2s-hifi-0 [MAI PCM i2s-hifi-0]

..and this:
Code: [Select]
cat /proc/asound/modules
 0 snd_bcm2835
 1 vc4
 2 vc4

..however neither of these work for me:
Code: [Select]
speaker-test -Ddefault:1 -c2 -t wav -l1
speaker-test -D plughw:1,0 -t wav

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14826
Re: HDMI Audio not working RPI Zero 2W
« Reply #2 on: August 23, 2022, 04:44:05 AM »
If you load the pavucontrol and xmms-pulse extensions, you can run pavucontrol and play an mp3 file via hdmi using xmms, but that's a lot of bloat.

There must be a way to use alsa, it's just a matter of finding it  :)

Offline trithilon

  • Newbie
  • *
  • Posts: 11
Re: HDMI Audio not working RPI Zero 2W
« Reply #3 on: August 23, 2022, 07:17:49 AM »
So you are telling me there is no easy way to get audio playback in piCore? :O
I ONLY load the following packages:
- Xorg-3d
- TC
- compiletc
- nano
- pcmanfm
- Rhythmbox

No luck playing anything. Do I need libpulseaudio or alsa or anything else for audio playback?
« Last Edit: August 23, 2022, 07:37:21 AM by trithilon »

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14826
Re: HDMI Audio not working RPI Zero 2W
« Reply #4 on: August 23, 2022, 07:53:37 AM »
As just explained:

* You can get alsa playback through the headphone jack using alsa-utils and aplay/speaker-test

* You can get pulseaudio playback through hdmi/headphone jack using pavucontrol and xmms-pulse

What I haven't figured out is alsa playback through hdmi