From 64c24b743fb7a325e745141dfab7dec58e5f3d72 Mon Sep 17 00:00:00 2001 From: Stefan Seyfried Date: Wed, 21 Nov 2012 18:20:43 +0100 Subject: [PATCH] azbox: disable video output on standby --- azbox/video.cpp | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/azbox/video.cpp b/azbox/video.cpp index 0e679c2..335c15e 100644 --- a/azbox/video.cpp +++ b/azbox/video.cpp @@ -60,7 +60,6 @@ cVideo * videoDecoder = NULL; int system_rev = 0; -static bool hdmi_enabled = true; static bool stillpicture = false; static unsigned char *blank_data; static ssize_t blank_size; @@ -425,20 +424,11 @@ void cVideo::Standby(unsigned int bOn) if (bOn) { closeDevice(); - //hdmi_out(false); + proc_put("/proc/stb/avs/0/input", "aux", 4); } else { - /* only enable HDMI output when coming from standby, not on - * start. I have no idea why, but enabling it on startup leads - * to strange locking problems of the framebuffer driver :-( */ - if (!hdmi_enabled) - { - //hdmi_out(true); - /* make sure the driver has time to settle. - * again - lame, but makes it work... */ - //sleep(1); - } + proc_put("/proc/stb/avs/0/input", "encoder", 8); openDevice(); } video_standby = bOn;