mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-libstb-hal.git
synced 2025-08-26 15:02:43 +02:00
Origin commit data
------------------
Branch: master
Commit: 6045601ce3
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>
Date: 2012-02-11 (Sat, 11 Feb 2012)
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
43 lines
944 B
C++
43 lines
944 B
C++
#include <stdio.h>
|
|
|
|
#include "init_lib.h"
|
|
#include <fcntl.h>
|
|
#include <sys/ioctl.h>
|
|
#include <sys/types.h>
|
|
#include <sys/stat.h>
|
|
#include <stdlib.h>
|
|
#include <string.h>
|
|
#include <unistd.h>
|
|
|
|
#include "lt_dfbinput.h"
|
|
#include "pwrmngr.h"
|
|
|
|
#include "lt_debug.h"
|
|
#define lt_debug(args...) _lt_debug(TRIPLE_DEBUG_INIT, NULL, args)
|
|
#define lt_info(args...) _lt_info(TRIPLE_DEBUG_INIT, NULL, args)
|
|
|
|
static bool initialized = false;
|
|
|
|
void init_td_api()
|
|
{
|
|
if (!initialized)
|
|
lt_debug_init();
|
|
lt_info("%s begin, initialized=%d, debug=0x%02x\n", __FUNCTION__, (int)initialized, debuglevel);
|
|
if (!initialized)
|
|
{
|
|
cCpuFreqManager f;
|
|
f.SetCpuFreq(0); /* CPUFREQ == 0 is the trigger for leaving standby */
|
|
start_input_thread();
|
|
}
|
|
initialized = true;
|
|
lt_info("%s end\n", __FUNCTION__);
|
|
}
|
|
|
|
void shutdown_td_api()
|
|
{
|
|
lt_info("%s, initialized = %d\n", __FUNCTION__, (int)initialized);
|
|
if (initialized)
|
|
stop_input_thread();
|
|
initialized = false;
|
|
}
|