Kodi "loses" AV-Preceiver as an audio output device
- PipeWire version (
pipewire --version
): 0.3.55 - Distribution and distribution version (
PRETTY_NAME
from/etc/os-release
): Buildroot 2022.08-git - Desktop Environment: x11
- Kernel version (
uname -r
): 5.18.19 - Kodi version: 19.4 Matrix
- Batocera version: V35 stable release
Description of Problem:
I'm using the retro gaming system Batocera.linux (which is based on Buildroot) which on top of the Linux system it mainly has two systems implemented: Emulation Station (also called "ES") and Kodi, both natively implemented. The user can switch between Emulation Station and Kodi on the fly while the underlying Linux system is running. However, according to Kodi, I have an audio issue I was not able to resolve with the Batocera.linux dev team since months now. My media center hardware chain setup is the following, all devices connected via HDMI:
HTPC (with Batocera.linux installed) --> NAD T187 AV-Preceiver --> LG OLED55GX6 4K TV
Where the HTPC HDMI output is a physical AMD Radeon 6800XT graphics card.
When starting the OS and booting directly into Kodi (Batocera.linux has an option to enable booting into Kodi directly), Kodi recognizes the AV-Preceiver for Audio output device (HDMI#3 in my case, as seen on the following screenshot), so everything is as intended:
Therefore I am able to passthrough any audio formats (True-HD, DTS, etc.) to the AV-Preceiver, also as intended:
So far, so good.
Now comes the problem: When exiting from Kodi to Emulation Station and then going back to Kodi, the AV-Preceiver (HDMI#3) disappears completely, it's not even selectable anymore from the list of audio devices:
Instead "ALSA" is being chosen by default and therefore it is not possible to passthrough the according audio formats True-HD / DTS anymore:
I'm not sure about the issue but it seems somehow Emulation Station does not release the sound driver accordingly but maybe I'm completely wrong and the problem is another one.
Only a system reboot makes the AV-Preceiver (HDMI#3) appear again.
Let me know if I can provide anyhing else. Any help and/or hints to solve this issue would be very appreciated, thanks!
Actual Results:
Kodi "loses" the AV-Preceiver (HDMI#3) as an audio output device somehow when exiting Kodi and loading it again.
Expected Results:
Exiting Kodi and going back to Kodi should preserve the AV-Preceiver (HDMI#3) as audio output device.
Additional Info (as attachments):
Not sure if it really matters but I created two Pipewire logfiles and two Kodi logfiles: Two logfiles after the first boot without exiting Kodi where the AV-Preceiver (HDMI#3) is still available as audio output device: Before.zip
Two logfiles after exiting Kodi and starting it again where the AV-Preceiver (HDMI#3) is not available anymore: After.zip
I already troubleshooted the issue a lot with Batocera devs without success. In addition I posted this issue a while ago on Kodi's Github repository without any answer yet but I got the feeling, that you as a Pipewire dev can help more with this. Maybe I'm wrong but still worth a try, I hope you can find time to take a look into it. Thanks a bunch in advance!