mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-31 01:11:06 +02:00
Merge branch 'ni/tuxbox' of bitbucket.org:neutrino-images/ni-neutrino-hd into ni/mp/tuxbox
Origin commit data
------------------
Commit: e18eb56492
Author: gixxpunk <thomas.harfmann@gmail.com>
Date: 2017-10-21 (Sat, 21 Oct 2017)
This commit is contained in:
@@ -200,17 +200,6 @@ neutrino_LDADD += \
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
if BOXTYPE_COOL
|
if BOXTYPE_COOL
|
||||||
bin_PROGRAMS += uncooloff
|
bin_PROGRAMS += shutdown_helper
|
||||||
uncooloff_SOURCES = uncooloff.c
|
shutdown_helper_SOURCES = shutdown_helper.c
|
||||||
# if BOXMODEL_CS_HD2
|
|
||||||
# else
|
|
||||||
# noinst_PROGRAMS = uncoolinit
|
|
||||||
# uncoolinit_SOURCES = uncoolinit.cpp
|
|
||||||
# uncoolinit_LDADD = \
|
|
||||||
# @AVFORMAT_LIBS@ \
|
|
||||||
# @AVCODEC_LIBS@ \
|
|
||||||
# @BLURAY_LIBS@ \
|
|
||||||
# -lcoolstream-mt -lca-sc -lnxp \
|
|
||||||
# -lOpenThreads -lrt
|
|
||||||
# endif
|
|
||||||
endif
|
endif
|
||||||
|
@@ -2577,9 +2577,6 @@ TIMER_START();
|
|||||||
|
|
||||||
SHTDCNT::getInstance()->init();
|
SHTDCNT::getInstance()->init();
|
||||||
|
|
||||||
hintBox->hide();
|
|
||||||
delete hintBox;
|
|
||||||
|
|
||||||
//NI lcd4l-support
|
//NI lcd4l-support
|
||||||
LCD4l = new CLCD4l();
|
LCD4l = new CLCD4l();
|
||||||
if(g_settings.lcd4l_support)
|
if(g_settings.lcd4l_support)
|
||||||
|
@@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* uncooloff - switch off the box with a possible timer wakeup
|
* shutdown_helper - switch off the box with a possible timer wakeup
|
||||||
* this is needed because the drivers do not implement a proper
|
* this is needed because the drivers do not implement a proper
|
||||||
* hwclock interface :-(
|
* hwclock interface :-(
|
||||||
*
|
*
|
@@ -1,57 +0,0 @@
|
|||||||
/*
|
|
||||||
* (C) 2013 Stefan Seyfried, License: GPL v3+
|
|
||||||
*
|
|
||||||
* uncoolinit -- work around driver initalization bug on
|
|
||||||
* (at least) Coolstream HD1 "first fifty edition".
|
|
||||||
* When starting up with 720p, the HDMI output is pink-tinted
|
|
||||||
* and without sound until switching resolution once.
|
|
||||||
*
|
|
||||||
* work around the issue by initializing the videodecoder in
|
|
||||||
* 1080i mode.
|
|
||||||
*
|
|
||||||
* This is really just a workaround for crappy drivers, but
|
|
||||||
* better than nothing :-)
|
|
||||||
*/
|
|
||||||
|
|
||||||
#include <cstdlib>
|
|
||||||
#include <cstdio>
|
|
||||||
#include <unistd.h>
|
|
||||||
#include <time.h>
|
|
||||||
|
|
||||||
#include <cs_api.h>
|
|
||||||
#include <video_cs.h>
|
|
||||||
#include <dmx_cs.h>
|
|
||||||
|
|
||||||
cVideo *v = NULL;
|
|
||||||
cDemux *d = NULL;
|
|
||||||
|
|
||||||
int main (int argc, char **argv)
|
|
||||||
{
|
|
||||||
struct timespec s, e;
|
|
||||||
clock_gettime(CLOCK_MONOTONIC, &s);
|
|
||||||
printf("\nuncoolinit by seife -- working around crappy drivers since 2009!\n");
|
|
||||||
/* initialize everything */
|
|
||||||
cs_api_init();
|
|
||||||
d = new cDemux(); /* dummy demux for getChannel() and getBuffer() */
|
|
||||||
d->Open(DMX_VIDEO_CHANNEL); /* do we really need to open it? */
|
|
||||||
|
|
||||||
/* this enables output in 1080i mode */
|
|
||||||
v = new cVideo(VIDEO_STD_1080I50, d->getChannel(), d->getBuffer());
|
|
||||||
|
|
||||||
/* should we slow down booting even more by showing a picture? */
|
|
||||||
if (argc > 1) {
|
|
||||||
v->ShowPicture(argv[1]);
|
|
||||||
if (argc > 2)
|
|
||||||
sleep(atoi(argv[2]));
|
|
||||||
v->StopPicture();
|
|
||||||
}
|
|
||||||
|
|
||||||
/* clean up after ourselves, or the drivers will be *very* unhappy */
|
|
||||||
delete v;
|
|
||||||
delete d;
|
|
||||||
cs_api_exit();
|
|
||||||
clock_gettime(CLOCK_MONOTONIC, &e);
|
|
||||||
printf("uncoolinit ends, took %lld ms\n",
|
|
||||||
(e.tv_sec*1000 + e.tv_nsec/1000000LL) - (s.tv_sec*1000 + s.tv_nsec/1000000LL));
|
|
||||||
return 0;
|
|
||||||
}
|
|
Reference in New Issue
Block a user