[SOLVED] [kodi-rpi 19.2-1] no sound over hdmi using fkms

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

[SOLVED] [kodi-rpi 19.2-1] no sound over hdmi using fkms

Postby unformatted » Fri Oct 15, 2021 11:00 am

I'm on RPi4 aarch64 with linux-raspberrypi4 kernel. I run kodi as regular user by executing "/usr/bin/kodi-standalone" from terminal. This worked fine until a few days ago. I just upgraded and found that I cannot select hdmi as audio output device anymore, only headphones are available.

My configuration:

$this->bbcode_second_pass_code('', '
[user@PC19 ~]$ groups
tty network power users video storage optical input disk audio wheel
')
$this->bbcode_second_pass_code('', '
[user@PC19 ~]$ cat /boot/config.txt
initramfs initramfs-linux.img followkernel
dtoverlay=vc4-fkms-v3d,cma-512
dtoverlay=rpivid-v4l2
dtoverlay=
dtparam=audio=on
dtparam=spi=on
')

I have noticed at least the following changes:

$this->bbcode_second_pass_code('', '
linux-raspberrypi4 5.10.63-18 > 5.10.73-2
linux-firmware 20210919.d526e04-1 (unchanged)
firmware-raspberrypi 20210224-1 (unchanged)
raspberrypi-firmware 20211004-1 (unchanged)
raspberrypi-bootloader 20211007-1 > 20211014-1
raspberrypi-bootloader-x 20211007-1 > 20211014-1
')

Also note that I'm using fkms because I'm on a DVI monitor and I'm using an hdmi audio extractor. Again, this worked fine until a few days ago.
Last edited by unformatted on Tue Oct 19, 2021 4:05 pm, edited 2 times in total.
unformatted
 
Posts: 119
Joined: Tue Mar 09, 2021 5:23 pm

Re: [kodi-rpi 19.2-1] cannot select sound over hdmi

Postby graysky » Fri Oct 15, 2021 11:33 am

I understand that you're running as your regular user. As a test, can you start kodi using the systemd service and let me know if your audio sources are detected?
graysky
Developer
 
Posts: 1727
Joined: Sun Jun 26, 2011 6:56 am
Location: /run/user/1000

Re: [kodi-rpi 19.2-1] no sound over hdmi using fkms

Postby unformatted » Fri Oct 15, 2021 11:42 am

I just did "systemctl start kodi.service" from terminal, it asked my user to authenticate, and then kodi starts but still only headphones, no hdmi selectable.
Last edited by unformatted on Sun Oct 17, 2021 9:08 am, edited 1 time in total.
unformatted
 
Posts: 119
Joined: Tue Mar 09, 2021 5:23 pm

Re: [kodi-rpi 19.2-1] cannot select sound over hdmi

Postby graysky » Fri Oct 15, 2021 12:00 pm

Works on a test system for me. I do not have the last two drparam settings that you do. Can you comment them out, reboot, and again try the systemd service?

For reference, my config.txt
$this->bbcode_second_pass_code('', '
dtoverlay=vc4-kms-v3d,cma-512
dtoverlay=rpivid-v4l2
dtoverlay=
disable_overscan=1
disable_fw_kms_setup=1
')
graysky
Developer
 
Posts: 1727
Joined: Sun Jun 26, 2011 6:56 am
Location: /run/user/1000

Re: [kodi-rpi 19.2-1] no sound over hdmi using fkms

Postby unformatted » Fri Oct 15, 2021 12:41 pm

As I told I have a DVI monitor connected to an hdmi audio extractor. With your config.txt using kms the pi boots but then ends with "no signal" and I can't even ssh in. Changing your config to

$this->bbcode_second_pass_code('', '
dtoverlay=vc4-fkms-v3d,cma-512
dtoverlay=rpivid-v4l2
dtoverlay=
disable_overscan=1
disable_fw_fkms_setup=1
')

I have monitor back again but there's no audio device whatsoever. For that I need to add dtparam=audio=on (after the dtoverlay=)

We had this discussion before and I still am depending on the hdmi audio extractor to get audio to my active speakers which only have analog input. Again, my setup as described was working fine until 2 days ago before I upgraded a few hours ago. As I understand kms relies heavily on the monitor's hdmi capabilities so I my case I'm forced to use fkms in combination with the hdmi audio extractor.

I'm curious to know what would happen if you use above (fkms) config if you won't mind trying.
Last edited by unformatted on Sun Oct 17, 2021 9:07 am, edited 1 time in total.
unformatted
 
Posts: 119
Joined: Tue Mar 09, 2021 5:23 pm

Re: [kodi-rpi 19.2-1] cannot select sound over hdmi

Postby graysky » Fri Oct 15, 2021 1:04 pm

Right I remember the thread about that. I can't test now/away from home but can try for you later. For many use cases, kodi without hardware acceleration is a non-starter on a RPi. For hw accel you need to use vc4-kms-v3d.
graysky
Developer
 
Posts: 1727
Joined: Sun Jun 26, 2011 6:56 am
Location: /run/user/1000

Re: [kodi-rpi 19.2-1] no sound over hdmi using fkms

Postby unformatted » Fri Oct 15, 2021 4:01 pm

I'll be much obliged if you would test it when you have the time.

BTW, fkms also supports hardware accelaration, from what I understand is that it doesn't go via the kernel as kms does. If found a nice summary on https://forums.raspberrypi.com/viewtopic.php?f=67&p=1901014.

Also on many threads on raspberry pi forum, fkms is still the preffered way as it supports many use cases. For instance, another reason I have to use fkms is that it supports DispmanX which is used by hyperion.ng (ambilight) as an "internal" grabber, which works much faster as opposed to an external grabber via USB which also requires extra investment in hardware.
Last edited by unformatted on Sun Oct 17, 2021 9:07 am, edited 1 time in total.
unformatted
 
Posts: 119
Joined: Tue Mar 09, 2021 5:23 pm

Re: [kodi-rpi 19.2-1] no sound over hdmi using fkms

Postby unformatted » Sun Oct 17, 2021 8:53 am

I just upgraded (linux-raspberrypi4 5.10.73-3, kodi-rpi 19.2-2) and with fkms still no hdmi output device. Then I downgraded the kernel to linux-raspberrypi4 5.10.63-18 which was the latest working version a couple of days ago and hdmi output device is available again. So please try testing with fkms when you got the time. Thanks in advance.
unformatted
 
Posts: 119
Joined: Tue Mar 09, 2021 5:23 pm

Re: [kodi-rpi 19.2-1] no sound over hdmi using fkms

Postby graysky » Sun Oct 17, 2021 9:42 am

I can try it but if you see the breakage return upon downgrading a single package, that's pretty good evidence that the package is breaking it. Plus, if I reproduce it that doesn't really help debug it beyond a "me too" confirmation.

Only two files changes between those versions:
$this->bbcode_second_pass_code('', 'git diff 76851155c..c617300d8 -- PKGBUILD config
diff --git a/core/linux-raspberrypi4/PKGBUILD b/core/linux-raspberrypi4/PKGBUILD
index d5ed1974d..2350a86d4 100644
--- a/core/linux-raspberrypi4/PKGBUILD
+++ b/core/linux-raspberrypi4/PKGBUILD
@@ -7,12 +7,12 @@
buildarch=12

pkgbase=linux-raspberrypi4
-_commit=24c8b0546a820222a1ebcfe606dfacb0e228c466
+_commit=046e2dccac6414e728d87188eb28f9e047d63884
_srcname=linux-${_commit}
_kernelname=${pkgbase#linux}
_desc="RPi 3/4/400"
-pkgver=5.10.63
-pkgrel=18
+pkgver=5.10.73
+pkgrel=3
pkgdesc='Linux'
url="http://www.kernel.org/"
arch=(armv7h aarch64)
@@ -30,15 +30,15 @@ source=("https://github.com/raspberrypi/linux/archive/${_commit}.tar.gz"
60-linux.hook
90-linux.hook
)
-md5sums=('725444e5327983af92983dd30cb02b0d'
+md5sums=('cb641ff2cac6fa1244b888c01ab8c2ec'
'31c02f4518d46deb5f0c2ad1f8b083cd'
'f66a7ea3feb708d398ef57e4da4815e9'
'86d4a35722b5410e3b29fc92dae15d4b'
'0a5f16bfec6ad982a2f6782724cca8ba'
'441ec084c47cddc53e592fb0cbce4edf')
-md5sums_armv7h=('8de6f2c9117439f4ef3c28db695e99ef'
+md5sums_armv7h=('b4b1e43f274564a18afdb2c73b568e25'
'9669d916a5929a2eedbd64477f83d99e')
-md5sums_aarch64=('7e706b74e472828c0eefd98f8e2d7008'
+md5sums_aarch64=('05b1db704734c0d18b98c06c2df9da70'
'9669d916a5929a2eedbd64477f83d99e')

# setup vars
diff --git a/core/linux-raspberrypi4/config b/core/linux-raspberrypi4/config
index 2b0f85f9f..4d65229d0 100644
--- a/core/linux-raspberrypi4/config
+++ b/core/linux-raspberrypi4/config
@@ -2566,7 +2566,7 @@ CONFIG_NET_VENDOR_RDC=y
CONFIG_NET_VENDOR_REALTEK=y
# CONFIG_8139CP is not set
# CONFIG_8139TOO is not set
-# CONFIG_R8169 is not set
+CONFIG_R8169=m
CONFIG_NET_VENDOR_RENESAS=y
CONFIG_NET_VENDOR_ROCKER=y
CONFIG_NET_VENDOR_SAMSUNG=y
@@ -2651,7 +2651,7 @@ CONFIG_MICROCHIP_PHY=y
# CONFIG_NXP_TJA11XX_PHY is not set
CONFIG_AT803X_PHY=m
# CONFIG_QSEMI_PHY is not set
-# CONFIG_REALTEK_PHY is not set
+CONFIG_REALTEK_PHY=m
# CONFIG_RENESAS_PHY is not set
# CONFIG_ROCKCHIP_PHY is not set
CONFIG_SMSC_PHY=y
')

The change to the config, building a few modules, is not to blame. You should open a bug report against the RPiF kernel citing their last-known-good (the 24c8b0546a commit) and the new one breaking the functionality.

https://github.com/raspberrypi/linux/issues
graysky
Developer
 
Posts: 1727
Joined: Sun Jun 26, 2011 6:56 am
Location: /run/user/1000

Re: [kodi-rpi 19.2-1] no sound over hdmi using fkms

Postby unformatted » Sun Oct 17, 2021 10:49 am

Just posted here: https://github.com/raspberrypi/linux/issues/4634

I can't see any breakage after downgrading the kernel. Downgrading only the kernel gives me back the hdmi option. Taking into account my hardware setup (hdmi audio extractor) it would still be nice to know if you change your config to fkms, reboot and see if the hdmi option is available under the sound settings (no need to test the sound). Anyway, thanks so far for your assistance.
unformatted
 
Posts: 119
Joined: Tue Mar 09, 2021 5:23 pm

Next

Return to ARMv8

Who is online

Users browsing this forum: No registered users and 8 guests