mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-24 11:16:51 +00:00
imx6: update kodi patch (stop/resume streams on OnLostDisplay/OnResetDisplay)
fixes alsa errors (after boot there is no sound for almost 2 minutes) 16:27:16.182 T:1929376672 ERROR: CAESinkALSA - snd_pcm_writei(-5) Input/output error - trying to recover 16:27:16.182 T:1929376672 ERROR: CAESinkALSA::HandleError(snd_pcm_writei(1)) - snd_pcm_writei returned -5 (Input/output error)
This commit is contained in:
parent
d873b64624
commit
df45834fe0
@ -2,6 +2,53 @@ https://github.com/OpenBricks/openbricks/tree/krypton-glibc
|
||||
https://github.com/OpenBricks/openbricks/tree/krypton-glibc/packages/multimedia/kodi/patches
|
||||
https://github.com/OpenBricks/openbricks/tree//packages/multimedia/kodi/patches
|
||||
|
||||
==============================================================
|
||||
file 0027-stop-resume-streams-on-OnLostDisplay-OnResetDisplay.patch
|
||||
==============================================================
|
||||
|
||||
From ef590549752c0b7daccb12c28d34feb5e7ed2171 Mon Sep 17 00:00:00 2001
|
||||
From: Matus Kral <matuskral@me.com>
|
||||
Date: Mon, 18 Jul 2016 23:34:51 +0200
|
||||
Subject: [PATCH] stop/resume streams on OnLostDisplay/OnResetDisplay
|
||||
|
||||
---
|
||||
xbmc/cores/AudioEngine/Engines/ActiveAE/ActiveAE.cpp | 12 +++++++++++-
|
||||
1 file changed, 11 insertions(+), 1 deletion(-)
|
||||
|
||||
diff --git a/xbmc/cores/AudioEngine/Engines/ActiveAE/ActiveAE.cpp b/xbmc/cores/AudioEngine/Engines/ActiveAE/ActiveAE.cpp
|
||||
index 4f55b37..4aad146 100644
|
||||
--- a/xbmc/cores/AudioEngine/Engines/ActiveAE/ActiveAE.cpp
|
||||
+++ b/xbmc/cores/AudioEngine/Engines/ActiveAE/ActiveAE.cpp
|
||||
@@ -2843,6 +2843,11 @@ AEAudioFormat CActiveAE::GetCurrentSinkFormat()
|
||||
void CActiveAE::OnLostDisplay()
|
||||
{
|
||||
Message *reply;
|
||||
+ for(auto &&stream : m_streams)
|
||||
+ m_controlPort.SendOutMessageSync(CActiveAEControlProtocol::PAUSESTREAM,
|
||||
+ &reply, 1000,
|
||||
+ &stream, sizeof(CActiveAEStream*));
|
||||
+
|
||||
if (m_controlPort.SendOutMessageSync(CActiveAEControlProtocol::DISPLAYLOST,
|
||||
&reply,
|
||||
5000))
|
||||
@@ -2862,7 +2867,12 @@ void CActiveAE::OnLostDisplay()
|
||||
|
||||
void CActiveAE::OnResetDisplay()
|
||||
{
|
||||
- m_controlPort.SendOutMessage(CActiveAEControlProtocol::DISPLAYRESET);
|
||||
+ Message *reply;
|
||||
+ m_controlPort.SendOutMessageSync(CActiveAEControlProtocol::DISPLAYRESET, &reply, 1000);
|
||||
+ for(auto &&stream : m_streams)
|
||||
+ m_controlPort.SendOutMessageSync(CActiveAEControlProtocol::RESUMESTREAM,
|
||||
+ &reply, 1000,
|
||||
+ &stream, sizeof(CActiveAEStream*));
|
||||
}
|
||||
|
||||
void CActiveAE::OnAppFocusChange(bool focus)
|
||||
--
|
||||
1.9.1
|
||||
|
||||
|
||||
==============================================================
|
||||
file 0034-IMXCODEC-Use-uint32_t-for-physical-addresses.patch
|
||||
==============================================================
|
||||
|
Loading…
x
Reference in New Issue
Block a user