mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-libstb-hal.git
synced 2025-08-26 15:02:43 +02:00
Revert "remove hdmi_cec"
This reverts commit756a409f2f
. Origin commit data ------------------ Branch: master Commit:93bb54b48d
Author: vanhofen <vanhofen@gmx.de> Date: 2022-12-25 (Sun, 25 Dec 2022) ------------------ This commit was generated by Migit
This commit is contained in:
@@ -36,6 +36,7 @@
|
||||
#include <linux/fb.h>
|
||||
#include "video_lib.h"
|
||||
#include "hal_debug.h"
|
||||
#include "hdmi_cec.h"
|
||||
|
||||
#include <hardware_caps.h>
|
||||
#include <proc_tools.h>
|
||||
@@ -555,6 +556,8 @@ cVideo::~cVideo(void)
|
||||
if (fd >= 0)
|
||||
setAVInput(AUX);
|
||||
#endif
|
||||
if (hdmi_cec::getInstance()->standby_cec_activ && fd >= 0)
|
||||
hdmi_cec::getInstance()->SetCECState(true);
|
||||
|
||||
closeDevice();
|
||||
}
|
||||
@@ -896,6 +899,7 @@ void cVideo::Standby(unsigned int bOn)
|
||||
#endif
|
||||
}
|
||||
video_standby = bOn;
|
||||
hdmi_cec::getInstance()->SetCECState(video_standby);
|
||||
}
|
||||
|
||||
int cVideo::getBlank(void)
|
||||
@@ -1535,3 +1539,28 @@ bool cVideo::GetScreenImage(unsigned char *&out_data, int &xres, int &yres, bool
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
bool cVideo::SetCECMode(VIDEO_HDMI_CEC_MODE _deviceType)
|
||||
{
|
||||
return hdmi_cec::getInstance()->SetCECMode(_deviceType);
|
||||
}
|
||||
|
||||
void cVideo::SetCECAutoStandby(bool state)
|
||||
{
|
||||
hdmi_cec::getInstance()->SetCECAutoStandby(state);
|
||||
}
|
||||
|
||||
void cVideo::SetCECAutoView(bool state)
|
||||
{
|
||||
hdmi_cec::getInstance()->SetCECAutoView(state);
|
||||
}
|
||||
|
||||
int cVideo::GetAudioDestination()
|
||||
{
|
||||
return (int)hdmi_cec::getInstance()->GetAudioDestination();
|
||||
}
|
||||
|
||||
void cVideo::SetAudioDestination(int audio_dest)
|
||||
{
|
||||
hdmi_cec::getInstance()->SetAudioDestination(audio_dest);
|
||||
}
|
||||
|
Reference in New Issue
Block a user