Revert "remove hdmi_cec"

This reverts commit 756a409f2f.


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:
vanhofen
2022-12-25 20:54:29 +01:00
parent 6074091c77
commit 6b8b86e750
12 changed files with 2728 additions and 0 deletions

View File

@@ -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);
}