Skip to content

Commit 6f389a0

Browse files
committed
RDKEMW-1015 : HDMICEC SINK COMRPC
1 parent 44eecde commit 6f389a0

File tree

2 files changed

+3
-21
lines changed

2 files changed

+3
-21
lines changed

HdmiCecSink/HdmiCecSink.cpp

Lines changed: 2 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -137,22 +137,10 @@ namespace WPEFramework
137137
SERVICE_REGISTRATION(HdmiCecSink, API_VERSION_NUMBER_MAJOR, API_VERSION_NUMBER_MINOR, API_VERSION_NUMBER_PATCH);
138138

139139
HdmiCecSink* HdmiCecSink::_instance = nullptr;
140-
static int libcecInitStatus = 0;
141140

142141

143-
//=========================================== HdmiCecSink =========================================
142+
//=========================================== HdmiCecSink =========================================
144143

145-
HdmiCecSink::HdmiCecSink()
146-
: PluginHost::JSONRPC()
147-
, _pwrMgrNotification(*this)
148-
, _registeredEventHandlers(false)
149-
{
150-
LOGWARN("Initlaizing HdmiCecSink");
151-
}
152-
153-
HdmiCecSink::~HdmiCecSink()
154-
{
155-
}
156144
const std::string HdmiCecSink::Initialize(PluginHost::IShell *service)
157145
{
158146
profileType = searchRdkProfile();
@@ -202,12 +190,6 @@ namespace WPEFramework
202190

203191
void HdmiCecSink::Deinitialize(PluginHost::IShell* /* service */)
204192
{
205-
if(_powerManagerPlugin)
206-
{
207-
_powerManagerPlugin.Reset();
208-
}
209-
_registeredEventHandlers = false;
210-
211193
profileType = searchRdkProfile();
212194

213195
if (profileType == STB || profileType == NOT_FOUND)
@@ -216,7 +198,7 @@ namespace WPEFramework
216198
return ;
217199
}
218200

219-
CECDisable();
201+
HdmiCecSink::_hdmiCecSink->SetEnabled(false);
220202

221203
if(nullptr != _hdmiCecSink)
222204
{

HdmiCecSink/HdmiCecSink.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ namespace WPEFramework {
194194
Exchange::JHdmiCecSink::Event::SetSystemAudioModeEvent(_parent, audioMode);
195195
}
196196

197-
void ShortAudiodescriptorEvent(IHdmiCecSinkShortAudioDescriptorIterator* ShortAudioDescriptor) override
197+
void ShortAudiodescriptorEvent(Exchange::IHdmiCecSink::IHdmiCecSinkShortAudioDescriptorIterator* ShortAudioDescriptor) override
198198
{
199199
LOGINFO("ShortAudiodescriptorEvent");
200200
Exchange::JHdmiCecSink::Event::ShortAudiodescriptorEvent(_parent, ShortAudioDescriptor);

0 commit comments

Comments
 (0)