Skip to content

Commit 7974449

Browse files
committed
RDKEMW-1015 : HDMICEC SINK COMRPC
1 parent 58b87ce commit 7974449

File tree

2 files changed

+11
-9
lines changed

2 files changed

+11
-9
lines changed

HdmiCecSink/HdmiCecSink.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -194,10 +194,10 @@ namespace WPEFramework {
194194
Exchange::JHdmiCecSink::Event::SetSystemAudioModeEvent(_parent, audioMode);
195195
}
196196

197-
void ShortAudiodescriptorEvent(IHdmiCecSinkShortAudioDescriptorIterator* const& ShortAudioDescriptor) override
197+
void ShortAudiodescriptorEvent(const string& jsonresponse) override
198198
{
199199
LOGINFO("ShortAudiodescriptorEvent");
200-
Exchange::JHdmiCecSink::Event::ShortAudiodescriptorEvent(_parent, &ShortAudioDescriptor);
200+
Exchange::JHdmiCecSink::Event::ShortAudiodescriptorEvent(_parent, &jsonresponse);
201201
}
202202

203203
void StandbyMessageReceived(const int logicalAddress) override

HdmiCecSink/HdmiCecSinkImplementation.cpp

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -994,14 +994,16 @@ namespace WPEFramework
994994
{
995995

996996
LOGINFO("Notify the DS ");
997-
998-
997+
string shortAudioDescriptors;
999998

1000-
1001-
//while (index != _hdmiCecSourceNotifications.end()) {
1002-
// (*index)->ShortAudioDescriptorEvent(shortAudioDescriptors);
1003-
// index++;
1004-
//}
999+
if (!audiodescriptor.ToString(shortAudioDescriptors)) {
1000+
LOGERR("Failed to stringify JsonArray");
1001+
}
1002+
1003+
while (index != _hdmiCecSourceNotifications.end()) {
1004+
(*index)->ShortAudioDescriptorEvent(shortAudioDescriptors);
1005+
index++;
1006+
}
10051007
}
10061008

10071009
void HdmiCecSinkImplementation::Process_ShortAudioDescriptor_msg(const ReportShortAudioDescriptor &msg)

0 commit comments

Comments
 (0)