From 4b0d304b8c79767c6852cf020dac41b2f4a31796 Mon Sep 17 00:00:00 2001 From: Oliver Schib Date: Fri, 18 May 2018 21:26:14 +0200 Subject: kodi: allow using aloop audio devices Building the linux kernel with snd_aloop enabled adds alsa loopback devices, however they are not shown in the kodi gui and therefore can't be used by default. This patch lifts those restrictions. Signed-off-by: Oliver Schib --- ...tch-xbmc_cores_AudioEngine_Sinks_AESinkALSA_cpp | 30 ++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 package/kodi/patches/patch-xbmc_cores_AudioEngine_Sinks_AESinkALSA_cpp (limited to 'package') diff --git a/package/kodi/patches/patch-xbmc_cores_AudioEngine_Sinks_AESinkALSA_cpp b/package/kodi/patches/patch-xbmc_cores_AudioEngine_Sinks_AESinkALSA_cpp new file mode 100644 index 000000000..791d360c9 --- /dev/null +++ b/package/kodi/patches/patch-xbmc_cores_AudioEngine_Sinks_AESinkALSA_cpp @@ -0,0 +1,30 @@ +--- xbmc-17.6-Krypton.orig/xbmc/cores/AudioEngine/Sinks/AESinkALSA.cpp 2017-11-14 17:55:01.000000000 +0100 ++++ xbmc-17.6-Krypton/xbmc/cores/AudioEngine/Sinks/AESinkALSA.cpp 2018-04-08 18:01:42.270455418 +0200 +@@ -1193,7 +1193,8 @@ void CAESinkALSA::EnumerateDevicesEx(AED + * found by the enumeration process. Skip them as well ("hw", "dmix", + * "plughw", "dsnoop"). */ + +- else if (baseName != "default" ++ else if (true) ++/* baseName != "default" + && baseName != "sysdefault" + && baseName != "surround40" + && baseName != "surround41" +@@ -1203,7 +1204,7 @@ void CAESinkALSA::EnumerateDevicesEx(AED + && baseName != "hw" + && baseName != "dmix" + && baseName != "plughw" +- && baseName != "dsnoop") ++ && baseName != "dsnoop")*/ + { + EnumerateDevice(list, name, desc ? desc : name, config); + } +@@ -1360,7 +1361,7 @@ void CAESinkALSA::EnumerateDevice(AEDevi + info.m_displayName.substr(info.m_displayName.size()-5) == " HDMI") + { + /* We already know this is HDMI, strip it */ +- info.m_displayName.erase(info.m_displayName.size()-5); ++ /*info.m_displayName.erase(info.m_displayName.size()-5);*/ + } + + /* "CONEXANT Analog", "USB Audio", "HDMI 0", "ALC889 Digital" ... */ -- cgit v1.2.3