[rpi3b+ aarch64] No HDMI audio

This forum is for topics dealing with problems with software specifically in the AArch64 repo.

[rpi3b+ aarch64] No HDMI audio

Postby Bkacjios » Tue Nov 23, 2021 3:43 am

I've been messing around with switching my OS on my RPI 3B+ to aarch64 since the performance seems much better for 3d applications, however, I've been struggling to get audio over HDMI.

$this->bbcode_second_pass_code('', '# /boot/config.txt

dtparam=krnbt=on,audio=on
dtoverlay=vc4-kms-v3d

enable_uart=1
gpu_mem=256

max_usb_current=1

hdmi_drive=2')

Using snd_bcm2835.enable_compat_alsa=1 in /boot/boot.txt cmdline, which I believe is default, results in no audio at all, both over HDMI and the headphone port.

However, if I use the following below..

$this->bbcode_second_pass_code('', 'snd_bcm2835.enable_headphones=1 snd_bcm2835.enable_hdmi=1 snd_bcm2835.enable_compat_alsa=0')

I CAN get audio out of the headphone jack using..

$this->bbcode_second_pass_code('', 'aplay -D sysdefault:CARD=Headphones /usr/share/sounds/alsa/Front_Center.wav')

But using..

$this->bbcode_second_pass_code('', 'aplay -D sysdefault:CARD=HDMI /usr/share/sounds/alsa/Front_Center.wav')

remains silent. I'm at a loss here, so if anyone has any ideas or suggestions I'd appreciate it.
Bkacjios
 
Posts: 7
Joined: Wed Mar 15, 2017 3:25 am

Re: [rpi3b+ aarch64] No HDMI audio

Postby graysky » Tue Nov 23, 2021 11:18 am

Are you in the audio group? viewtopic.php?f=65&t=14734&start=50#p65549
graysky
Developer
 
Posts: 1876
Joined: Sun Jun 26, 2011 6:56 am
Location: /run/user/1000

Re: [rpi3b+ aarch64] No HDMI audio

Postby solskogen » Tue Nov 23, 2021 1:00 pm

Try installing the package $this->bbcode_second_pass_code('', 'pulseaudio-alsa')
solskogen
 
Posts: 215
Joined: Mon Nov 18, 2013 10:41 am

Re: [rpi3b+ aarch64] No HDMI audio

Postby darksky » Tue Nov 23, 2021 1:09 pm

"Using snd_bcm2835.enable_compat_alsa=1 in /boot/boot.txt cmdline, which I believe is default, results in no audio at all, both over HDMI and the headphone port.

However, if I use the following below..

snd_bcm2835.enable_headphones=1 snd_bcm2835.enable_hdmi=1 snd_bcm2835.enable_compat_alsa=0"


With some of the previous kernels for a while this needed to be done. The newer kernels will configure it's self automatically depending on what mode you are using; fks/kms.... So no configuring at all in cmdline.txt is needed for sound.

The following is with the KMS overlay enabled:

[ray@pi4 ~]$ cat /boot/cmdline.txt
root=PARTUUID=d905149e-02 rw rootwait console=serial0,115200 console=tty1 selinux=0 plymouth.enable=0 smsc95xx.turbo_mode=N dwc_otg.lpm_enable=0 kgdboc=serial0,115200 usbhid.mousepoll=8 audit=0

[ray@pi4 ~]$ cat /proc/cmdline
coherent_pool=1M 8250.nr_uarts=0 snd_bcm2835.enable_compat_alsa=0 snd_bcm2835.enable_hdmi=1 video=HDMI-A-1:1366x768M@60 vc_mem.mem_base=0x3ec00000 vc_mem.mem_size=0x40000000 root=PARTUUID=d905149e-02 rw rootwait console=ttyS0,115200 console=tty1 selinux=0 plymouth.enable=0 smsc95xx.turbo_mode=N dwc_otg.lpm_enable=0 kgdboc=ttyS0,115200 usbhid.mousepoll=8 audit=0

$this->bbcode_second_pass_code('', '[ray@pi4 ~]$ cat /proc/cpuinfo | grep Model
Model : Raspberry Pi 3 Model B Plus Rev 1.3
[ray@pi4 ~]$
[ray@pi4 ~]$ aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: Headphones [bcm2835 Headphones], device 0: bcm2835 Headphones [bcm2835 Headphones]
Subdevices: 8/8
Subdevice #0: subdevice #0
Subdevice #1: subdevice #1
Subdevice #2: subdevice #2
Subdevice #3: subdevice #3
Subdevice #4: subdevice #4
Subdevice #5: subdevice #5
Subdevice #6: subdevice #6
Subdevice #7: subdevice #7
card 1: vc4hdmi [vc4-hdmi], device 0: MAI PCM i2s-hifi-0 [MAI PCM i2s-hifi-0]
Subdevices: 1/1
Subdevice #0: subdevice #0')
darksky
 
Posts: 48
Joined: Thu Oct 15, 2020 5:57 pm

Re: [rpi3b+ aarch64] No HDMI audio

Postby Bkacjios » Tue Nov 23, 2021 5:26 pm

$this->bbcode_second_pass_quote('graysky', 'A')re you in the audio group? viewtopic.php?f=65&t=14734&start=50#p65549


Yup.

$this->bbcode_second_pass_code('', 'uid=1000(jake) gid=1000(jake) groups=1000(jake),985(video),993(input),995(audio),998(wheel),1001(gpio)')

$this->bbcode_second_pass_code('', 'jake@pi-three:~$ cat /proc/cpuinfo | grep Model
Model : Raspberry Pi 3 Model B Plus Rev 1.3
jake@pi-three:~$ aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: Headphones [bcm2835 Headphones], device 0: bcm2835 Headphones [bcm2835 Headphones]
Subdevices: 8/8
Subdevice #0: subdevice #0
Subdevice #1: subdevice #1
Subdevice #2: subdevice #2
Subdevice #3: subdevice #3
Subdevice #4: subdevice #4
Subdevice #5: subdevice #5
Subdevice #6: subdevice #6
Subdevice #7: subdevice #7
card 1: vc4hdmi [vc4-hdmi], device 0: MAI PCM i2s-hifi-0 [MAI PCM i2s-hifi-0]
Subdevices: 1/1
Subdevice #0: subdevice #0')

I think the issue is with my monitor the more I experiment with this. Audio is definitely working, since headphones seem to work, but I think the hdmi_drive=2 setting no longer works or something on aarch64.
Bkacjios
 
Posts: 7
Joined: Wed Mar 15, 2017 3:25 am

Re: [rpi3b+ aarch64] No HDMI audio

Postby graysky » Tue Nov 23, 2021 5:33 pm

Which kernel, linux-aarch64 or linux-raspberrypi4? Try the latter if you're not.
graysky
Developer
 
Posts: 1876
Joined: Sun Jun 26, 2011 6:56 am
Location: /run/user/1000

Re: [rpi3b+ aarch64] No HDMI audio

Postby Bkacjios » Tue Nov 23, 2021 5:37 pm

I was originally on linux-aarch64, but I switched to linux-raspberrypi4 last night and it's the same issue.

If I use a 32bit image audio works fine with hdmi_drive=2

Also, I noticed this in the dmesg log..

$this->bbcode_second_pass_code('', 'dmesg | grep hdmi
[ 0.000000] Kernel command line: coherent_pool=1M 8250.nr_uarts=0 snd_bcm2835.enable_compat_alsa=0 snd_bcm2835.enable_hdmi=1 video=HDMI-A-1:1920x1080M@60 vc_mem.mem_base=0x3ec00000 vc_mem.mem_size=0x40000000 root=/dev/mmcblk0p2 rw rootwait console=ttyS0,115200 console=tty1 selinux=0 plymouth.enable=0 smsc95xx.turbo_mode=N dwc_otg.lpm_enable=0 kgdboc=ttyS0,115200 loglevel=3 logo.nologo cma=256M
[ 9.530319] rc rc0: vc4 as /devices/platform/soc/3f902000.hdmi/rc/rc0
[ 9.530455] input: vc4 as /devices/platform/soc/3f902000.hdmi/rc/rc0/input1
[ 9.531040] vc4_hdmi 3f902000.hdmi: Could not register sound card: -517
[ 9.926208] rc rc0: vc4 as /devices/platform/soc/3f902000.hdmi/rc/rc0
[ 9.926347] input: vc4 as /devices/platform/soc/3f902000.hdmi/rc/rc0/input2
[ 9.937442] vc4-drm soc:gpu: bound 3f902000.hdmi (ops vc4_hdmi_ops [vc4])')

I'm guessing

$this->bbcode_second_pass_code('', '[ 9.531040] vc4_hdmi 3f902000.hdmi: Could not register sound card: -517') could be the problem here?
Bkacjios
 
Posts: 7
Joined: Wed Mar 15, 2017 3:25 am

Re: [rpi3b+ aarch64] No HDMI audio

Postby graysky » Tue Nov 23, 2021 6:23 pm

For Pi3 I don't know. Consider posting to https://forums.raspberrypi.com/viewforum.php?f=29 to see if they have some thoughts.
graysky
Developer
 
Posts: 1876
Joined: Sun Jun 26, 2011 6:56 am
Location: /run/user/1000

Re: [rpi3b+ aarch64] No HDMI audio

Postby Bkacjios » Tue Nov 23, 2021 6:43 pm

I'll do that. However, I did end up getting audio out of HDMI using FKMS.

$this->bbcode_second_pass_code('', '# FKMS (HDMI Audio works)
dtoverlay=vc4-fkms-v3d
dtparam=krnbt=on,audio=on

# KMS (Nonworking HDMI audio)
#dtparam=krnbt=on,audio=on
#dtoverlay=vc4-kms-v3d
# vc4_hdmi 3f902000.hdmi: Could not register sound card: -517

# https://archlinuxarm.org/forum/viewtopic.php?f=65&t=15231&p=66229&hilit=noaudio#p66229)
#dtparam=audio=on
#dtoverlay=vc4-kms-v3d,noaudio
# vc4_hdmi 3f902000.hdmi: 'dmas' DT property is missing or empty, no HDMI audio')
Bkacjios
 
Posts: 7
Joined: Wed Mar 15, 2017 3:25 am

Re: [rpi3b+ aarch64] No HDMI audio

Postby graysky » Tue Nov 23, 2021 6:44 pm

I remember reading about this just don't have the links. Try searching fkms audio here and on the rpi forums. I don't think you need to use that driver to get it working.
graysky
Developer
 
Posts: 1876
Joined: Sun Jun 26, 2011 6:56 am
Location: /run/user/1000

Next

Return to ARMv8

Who is online

Users browsing this forum: No registered users and 6 guests