Skip to content

Commit 8931600

Browse files
committed
AVInput COM-RPC Support: WIP
1 parent b55d845 commit 8931600

File tree

2 files changed

+16
-4
lines changed

2 files changed

+16
-4
lines changed

AVInput/AVInputImplementation.cpp

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -554,6 +554,7 @@ namespace Plugin {
554554

555555
return Core::ERROR_NONE;
556556
}
557+
557558
Core::hresult AVInputImplementation::StartInput(const int portId, const string& typeOfInput, const bool requestAudioMix, const int plane, const bool topMost, SuccessResult& successResult)
558559
{
559560
successResult.success = true;
@@ -1257,14 +1258,25 @@ namespace Plugin {
12571258
return Core::ERROR_NONE;
12581259
}
12591260

1260-
Core::hresult AVInputImplementation::GetEdid2AllmSupport(const int portId, bool& allmSupport, bool& success)
1261+
Core::hresult AVInputImplementation::GetEdid2AllmSupport(const string& portId, bool& allmSupport, bool& success)
12611262
{
1263+
int id;
1264+
12621265
try {
1263-
device::HdmiInput::getInstance().getEdid2AllmSupport(portId, &allmSupport);
1266+
id = stoi(portId);
1267+
} catch (const std::exception& err) {
1268+
LOGERR("GetEdid2AllmSupport: Invalid paramater: portId: %s ", portId);
1269+
return Core::ERROR_GENERAL;
1270+
}
1271+
1272+
allmSupport = true;
1273+
1274+
try {
1275+
device::HdmiInput::getInstance().getEdid2AllmSupport(id, &allmSupport);
12641276
success = true;
12651277
LOGINFO("AVInput - getEdid2AllmSupport:%d", allmSupport);
12661278
} catch (const device::Exception& err) {
1267-
LOG_DEVICE_EXCEPTION1(std::to_string(portId));
1279+
LOG_DEVICE_EXCEPTION1(std::to_string(id));
12681280
success = false;
12691281
}
12701282
return Core::ERROR_NONE;

AVInput/AVInputImplementation.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ namespace Plugin {
158158
Core::hresult SetEdidVersion(const int portId, const string& edidVersion, SuccessResult& successResult) override;
159159
Core::hresult GetEdidVersion(const int portId, string& edidVersion, bool& success) override;
160160
Core::hresult SetEdid2AllmSupport(const int portId, const bool allmSupport, SuccessResult& successResult) override;
161-
Core::hresult GetEdid2AllmSupport(const int portId, bool& allmSupport, bool& success) override;
161+
Core::hresult GetEdid2AllmSupport(const string& portId, bool& allmSupport, bool& success) override;
162162
Core::hresult SetVRRSupport(const int portId, const bool vrrSupport) override;
163163
Core::hresult GetVRRSupport(const int portId, bool& vrrSupport) override;
164164
Core::hresult GetHdmiVersion(const int portId, string& HdmiCapabilityVersion, bool& success) override;

0 commit comments

Comments
 (0)