kodi: update Pulse/Alsa after PR14453

This commit is contained in:
MilhouseVH 2018-09-26 02:51:37 +01:00 committed by Matthias Reichl
parent 9f12aded46
commit 6911573a11

View File

@ -1,20 +1,20 @@
From 09ef179755107108722027dcc04ae62795c5d522 Mon Sep 17 00:00:00 2001 From 0bb21ebfe5f26545ccc9f105560c6c0fcbce77b3 Mon Sep 17 00:00:00 2001
From: MilhouseVH <milhouseVH.github@nmacleod.com> From: MilhouseVH <milhouseVH.github@nmacleod.com>
Date: Tue, 22 May 2018 00:28:13 +0100 Date: Wed, 26 Sep 2018 02:47:03 +0100
Subject: [PATCH] allow using alsa and pulse together Subject: [PATCH] allow using alsa and pulse together
--- ---
xbmc/windowing/X11/WinSystemX11GLContext.cpp | 35 ++-------------------------- xbmc/windowing/X11/WinSystemX11GLContext.cpp | 35 ++--------------------------
xbmc/windowing/amlogic/WinSystemAmlogic.cpp | 2 ++ xbmc/windowing/amlogic/WinSystemAmlogic.cpp | 2 ++
xbmc/windowing/gbm/WinSystemGbm.cpp | 34 ++------------------------- xbmc/windowing/gbm/WinSystemGbm.cpp | 34 ++-------------------------
xbmc/windowing/rpi/WinSystemRpi.cpp | 4 ++++ xbmc/windowing/rpi/WinSystemRpi.cpp | 17 ++++----------
4 files changed, 10 insertions(+), 65 deletions(-) 4 files changed, 10 insertions(+), 78 deletions(-)
diff --git a/xbmc/windowing/X11/WinSystemX11GLContext.cpp b/xbmc/windowing/X11/WinSystemX11GLContext.cpp diff --git a/xbmc/windowing/X11/WinSystemX11GLContext.cpp b/xbmc/windowing/X11/WinSystemX11GLContext.cpp
index 6e31a80..2e76053 100644 index 1980916..2524716 100644
--- a/xbmc/windowing/X11/WinSystemX11GLContext.cpp --- a/xbmc/windowing/X11/WinSystemX11GLContext.cpp
+++ b/xbmc/windowing/X11/WinSystemX11GLContext.cpp +++ b/xbmc/windowing/X11/WinSystemX11GLContext.cpp
@@ -52,39 +52,8 @@ std::unique_ptr<CWinSystemBase> CWinSystemBase::CreateWinSystem() @@ -40,39 +40,8 @@ std::unique_ptr<CWinSystemBase> CWinSystemBase::CreateWinSystem()
CWinSystemX11GLContext::CWinSystemX11GLContext() CWinSystemX11GLContext::CWinSystemX11GLContext()
{ {
@ -57,10 +57,10 @@ index 6e31a80..2e76053 100644
} }
diff --git a/xbmc/windowing/amlogic/WinSystemAmlogic.cpp b/xbmc/windowing/amlogic/WinSystemAmlogic.cpp diff --git a/xbmc/windowing/amlogic/WinSystemAmlogic.cpp b/xbmc/windowing/amlogic/WinSystemAmlogic.cpp
index 324d47f..1766308 100644 index 9df83a6..5d41c1f 100644
--- a/xbmc/windowing/amlogic/WinSystemAmlogic.cpp --- a/xbmc/windowing/amlogic/WinSystemAmlogic.cpp
+++ b/xbmc/windowing/amlogic/WinSystemAmlogic.cpp +++ b/xbmc/windowing/amlogic/WinSystemAmlogic.cpp
@@ -32,6 +32,7 @@ @@ -20,6 +20,7 @@
// AESink Factory // AESink Factory
#include "cores/AudioEngine/AESinkFactory.h" #include "cores/AudioEngine/AESinkFactory.h"
#include "cores/AudioEngine/Sinks/AESinkALSA.h" #include "cores/AudioEngine/Sinks/AESinkALSA.h"
@ -68,7 +68,7 @@ index 324d47f..1766308 100644
#include "windowing/GraphicContext.h" #include "windowing/GraphicContext.h"
#include "windowing/Resolution.h" #include "windowing/Resolution.h"
#include "platform/linux/powermanagement/LinuxPowerSyscall.h" #include "platform/linux/powermanagement/LinuxPowerSyscall.h"
@@ -78,6 +79,7 @@ CWinSystemAmlogic::CWinSystemAmlogic() : @@ -66,6 +67,7 @@ CWinSystemAmlogic::CWinSystemAmlogic() :
// Register sink // Register sink
AE::CAESinkFactory::ClearSinks(); AE::CAESinkFactory::ClearSinks();
CAESinkALSA::Register(); CAESinkALSA::Register();
@ -77,11 +77,11 @@ index 324d47f..1766308 100644
m_lirc.reset(OPTIONALS::LircRegister()); m_lirc.reset(OPTIONALS::LircRegister());
m_libinput->Start(); m_libinput->Start();
diff --git a/xbmc/windowing/gbm/WinSystemGbm.cpp b/xbmc/windowing/gbm/WinSystemGbm.cpp diff --git a/xbmc/windowing/gbm/WinSystemGbm.cpp b/xbmc/windowing/gbm/WinSystemGbm.cpp
index 72ddf6a..79e81d5 100644 index 12f2da6..c2bdd0e 100644
--- a/xbmc/windowing/gbm/WinSystemGbm.cpp --- a/xbmc/windowing/gbm/WinSystemGbm.cpp
+++ b/xbmc/windowing/gbm/WinSystemGbm.cpp +++ b/xbmc/windowing/gbm/WinSystemGbm.cpp
@@ -43,38 +43,8 @@ CWinSystemGbm::CWinSystemGbm() : @@ -31,38 +31,8 @@ CWinSystemGbm::CWinSystemGbm() :
m_delayDispReset(false), m_GBM(new CGBMUtils),
m_libinput(new CLibInputHandler) m_libinput(new CLibInputHandler)
{ {
- std::string envSink; - std::string envSink;
@ -122,10 +122,10 @@ index 72ddf6a..79e81d5 100644
CLinuxPowerSyscall::Register(); CLinuxPowerSyscall::Register();
m_lirc.reset(OPTIONALS::LircRegister()); m_lirc.reset(OPTIONALS::LircRegister());
diff --git a/xbmc/windowing/rpi/WinSystemRpi.cpp b/xbmc/windowing/rpi/WinSystemRpi.cpp diff --git a/xbmc/windowing/rpi/WinSystemRpi.cpp b/xbmc/windowing/rpi/WinSystemRpi.cpp
index fac5cc4..f90e46d 100644 index a403464..6a68d9f 100644
--- a/xbmc/windowing/rpi/WinSystemRpi.cpp --- a/xbmc/windowing/rpi/WinSystemRpi.cpp
+++ b/xbmc/windowing/rpi/WinSystemRpi.cpp +++ b/xbmc/windowing/rpi/WinSystemRpi.cpp
@@ -33,7 +33,9 @@ @@ -21,7 +21,9 @@
#include "guilib/DispResource.h" #include "guilib/DispResource.h"
#include "utils/log.h" #include "utils/log.h"
#include "cores/AudioEngine/AESinkFactory.h" #include "cores/AudioEngine/AESinkFactory.h"
@ -135,10 +135,23 @@ index fac5cc4..f90e46d 100644
#include "platform/linux/powermanagement/LinuxPowerSyscall.h" #include "platform/linux/powermanagement/LinuxPowerSyscall.h"
#include <EGL/egl.h> #include <EGL/egl.h>
@@ -55,6 +57,8 @@ CWinSystemRpi::CWinSystemRpi() : @@ -44,19 +46,8 @@ CWinSystemRpi::CWinSystemRpi() :
AE::CAESinkFactory::ClearSinks(); AE::CAESinkFactory::ClearSinks();
CAESinkPi::Register(); CAESinkPi::Register();
- std::string envSink;
- if (getenv("KODI_AE_SINK"))
- envSink = getenv("KODI_AE_SINK");
-
- if (StringUtils::EqualsNoCase(envSink, "PULSE"))
- {
- OPTIONALS::PulseAudioRegister();
- }
- else
- {
- OPTIONALS::ALSARegister();
- }
-
+ CAESinkALSA::Register(); + CAESinkALSA::Register();
+ CAESinkPULSE::Register(); + CAESinkPULSE::Register();
CLinuxPowerSyscall::Register(); CLinuxPowerSyscall::Register();