summaryrefslogtreecommitdiff
path: root/package/kodi
diff options
context:
space:
mode:
authorOliver Schib <oliver.schib@gmx.ch>2018-05-18 21:26:14 +0200
committerWaldemar Brodkorb <wbx@openadk.org>2018-05-20 09:25:09 +0200
commit4b0d304b8c79767c6852cf020dac41b2f4a31796 (patch)
treefd3ff4a7973d227e784f75a1d17a25cdea43a7f5 /package/kodi
parent7b65f6b5d6bf70bb07d0ba172c46d193967ed9de (diff)
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 <oliver.schib@gmx.ch>
Diffstat (limited to 'package/kodi')
-rw-r--r--package/kodi/patches/patch-xbmc_cores_AudioEngine_Sinks_AESinkALSA_cpp30
1 files changed, 30 insertions, 0 deletions
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" ... */