diff options
author | fritsch <Peter.Fruehberger@gmail.com> | 2024-02-20 21:22:51 +0100 |
---|---|---|
committer | fritsch <Peter.Fruehberger@gmail.com> | 2024-02-22 17:09:00 +0100 |
commit | 2e36b7522bae549cdad38a6b4bc04dec5629f954 (patch) | |
tree | f643e82f725c471bc9a909f11bec6447120bb955 | |
parent | 480476cb59264f54d0c85da2529d2bd64a4874ad (diff) |
AESinkPipewire: Properly identify HDMI devices
Without this AE would only allow passthrough on SPDIF devices as it checks
for the device not being PCM when allowing Passthrough.
Co-authored-by: Lukas Rusak <lorusak@gmail.com>
-rw-r--r-- | xbmc/cores/AudioEngine/Sinks/pipewire/AESinkPipewire.cpp | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/xbmc/cores/AudioEngine/Sinks/pipewire/AESinkPipewire.cpp b/xbmc/cores/AudioEngine/Sinks/pipewire/AESinkPipewire.cpp index 0b76c339de..062676a16e 100644 --- a/xbmc/cores/AudioEngine/Sinks/pipewire/AESinkPipewire.cpp +++ b/xbmc/cores/AudioEngine/Sinks/pipewire/AESinkPipewire.cpp @@ -348,10 +348,17 @@ void CAESinkPipewire::EnumerateDevicesEx(AEDeviceInfoList& list, bool force) streamTypes.end()); } - if (device.m_channels.Count() == 2 && !device.m_streamTypes.empty()) + if (!device.m_streamTypes.empty()) { - device.m_deviceType = AE_DEVTYPE_IEC958; device.m_dataFormats.emplace_back(AE_FMT_RAW); + if (device.m_channels.Count() == 2) + { + device.m_deviceType = AE_DEVTYPE_IEC958; + } + else + { + device.m_deviceType = AE_DEVTYPE_HDMI; + } } list.emplace_back(device); |