Skip to content

Commit 9c75504

Browse files
committed
AVInput COM-RPC Support: WIP
1 parent fa169cf commit 9c75504

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

AVInput/AVInputImplementation.cpp

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1349,29 +1349,35 @@ namespace Plugin {
13491349
LOG_DEVICE_EXCEPTION1(std::to_string(id));
13501350
success = false;
13511351
}
1352+
13521353
return Core::ERROR_NONE;
13531354
}
13541355

1355-
Core::hresult AVInputImplementation::GetVRRSupport(const string& portId, bool& vrrSupport)
1356+
Core::hresult AVInputImplementation::GetVRRSupport(const string& portId, bool& vrrSupport, bool& success)
13561357
{
13571358
int id;
13581359

13591360
try {
13601361
id = stoi(portId);
13611362
} catch (const std::exception& err) {
13621363
LOGERR("GetVRRSupport: Invalid paramater: portId: %s ", portId.c_str());
1364+
success = false;
13631365
return Core::ERROR_GENERAL;
13641366
}
13651367

1368+
vrrSupport = true;
1369+
success = true;
13661370
Core::hresult ret = Core::ERROR_NONE;
13671371

13681372
try {
13691373
device::HdmiInput::getInstance().getVRRSupport(id, &vrrSupport);
13701374
LOGINFO("AVInput - getVRRSupport:%d", vrrSupport);
13711375
} catch (const device::Exception& err) {
13721376
LOG_DEVICE_EXCEPTION1(std::to_string(id));
1377+
success = false;
13731378
ret = Core::ERROR_GENERAL;
13741379
}
1380+
13751381
return ret;
13761382
}
13771383

@@ -1394,6 +1400,7 @@ namespace Plugin {
13941400
LOG_DEVICE_EXCEPTION1(std::to_string(id));
13951401
ret = Core::ERROR_GENERAL;
13961402
}
1403+
13971404
return ret;
13981405
}
13991406

AVInput/AVInputImplementation.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ namespace Plugin {
160160
Core::hresult SetEdid2AllmSupport(const string& portId, const bool allmSupport, SuccessResult& successResult) override;
161161
Core::hresult GetEdid2AllmSupport(const string& portId, bool& allmSupport, bool& success) override;
162162
Core::hresult SetVRRSupport(const string& portId, const bool vrrSupport) override;
163-
Core::hresult GetVRRSupport(const string& portId, bool& vrrSupport) override;
163+
Core::hresult GetVRRSupport(const string& portId, bool& vrrSupport, bool& success) override;
164164
Core::hresult GetHdmiVersion(const string& portId, string& HdmiCapabilityVersion, bool& success) override;
165165
Core::hresult SetMixerLevels(const int primaryVolume, const int inputVolume, SuccessResult& successResult) override;
166166
Core::hresult StartInput(const string& portId, const string& typeOfInput, const bool requestAudioMix, const int plane, const bool topMost, SuccessResult& successResult) override;

0 commit comments

Comments
 (0)