mirror of
https://github.com/tuxbox-neutrino/libstb-hal.git
synced 2025-08-26 23:13:16 +02:00
azbox: disable video output on standby
This commit is contained in:
@@ -60,7 +60,6 @@
|
|||||||
cVideo * videoDecoder = NULL;
|
cVideo * videoDecoder = NULL;
|
||||||
int system_rev = 0;
|
int system_rev = 0;
|
||||||
|
|
||||||
static bool hdmi_enabled = true;
|
|
||||||
static bool stillpicture = false;
|
static bool stillpicture = false;
|
||||||
static unsigned char *blank_data;
|
static unsigned char *blank_data;
|
||||||
static ssize_t blank_size;
|
static ssize_t blank_size;
|
||||||
@@ -425,20 +424,11 @@ void cVideo::Standby(unsigned int bOn)
|
|||||||
if (bOn)
|
if (bOn)
|
||||||
{
|
{
|
||||||
closeDevice();
|
closeDevice();
|
||||||
//hdmi_out(false);
|
proc_put("/proc/stb/avs/0/input", "aux", 4);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
/* only enable HDMI output when coming from standby, not on
|
proc_put("/proc/stb/avs/0/input", "encoder", 8);
|
||||||
* 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);
|
|
||||||
}
|
|
||||||
openDevice();
|
openDevice();
|
||||||
}
|
}
|
||||||
video_standby = bOn;
|
video_standby = bOn;
|
||||||
|
Reference in New Issue
Block a user