Skip to content

Commit c761d54

Browse files
authored
Update AVInput.cpp
1 parent 269cfc6 commit c761d54

File tree

1 file changed

+28
-5
lines changed

1 file changed

+28
-5
lines changed

AVInput/AVInput.cpp

Lines changed: 28 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1073,13 +1073,24 @@ uint32_t AVInput::getGameFeatureStatusWrapper(const JsonObject& parameters, Json
10731073
LOGWARN("AVInput::getGameFeatureStatusWrapper ALLM MODE:%d", allm);
10741074
response["mode"] = allm;
10751075
}
1076+
else if(strcmp (sGameFeature.c_str(), "HDMI VRR") == 0)
1077+
{
1078+
bool hdmi_vrr = getVRRStatus(portId);
1079+
LOGWARN("AVInput::getGameFeatureStatusWrapper HDMI VRR MODE:%d", hdmi_vrr);
1080+
response["mode"] = hdmi_vrr;
1081+
}
1082+
else if(strcmp (sGameFeature.c_str(), "AMD FreeSync Premium") == 0)
1083+
{
1084+
bool amd_freesync_premium = getVRRStatus(portId);
1085+
LOGWARN("AVInput::getGameFeatureStatusWrapper AMD FreeSync Premium MODE:%d", amd_freesync_premium);
1086+
response["mode"] = amd_freesync_premium;
1087+
}
10761088
else
10771089
{
1078-
LOGWARN("AVInput::getGameFeatureStatusWrapper Mode is not supported. Supported mode: ALLM");
1090+
LOGWARN("AVInput::getGameFeatureStatusWrapper Mode is not supported. Supported mode: ALLM, HDMI VRR, AMD FreeSync Premium");
10791091
returnResponse(false);
10801092
}
10811093
returnResponse(true);
1082-
}
10831094

10841095
bool AVInput::getALLMStatus(int iPort)
10851096
{
@@ -1097,6 +1108,14 @@ bool AVInput::getALLMStatus(int iPort)
10971108
return allm;
10981109
}
10991110

1111+
bool AVInput::getVRRStatus(int iPort)
1112+
{
1113+
bool vrr = true;
1114+
/*
1115+
to be implemented
1116+
*/
1117+
return vrr;
1118+
}
11001119
uint32_t AVInput::getRawSPDWrapper(const JsonObject& parameters, JsonObject& response)
11011120
{
11021121
LOGINFOMETHOD();
@@ -1372,7 +1391,9 @@ uint32_t AVInput::getEdid2AllmSupportWrapper(const JsonObject& parameters, JsonO
13721391
bool getVRRSupport(int portId,bool *vrrSupportValue)
13731392
{
13741393
bool ret = true;
1375-
//To implement
1394+
/*
1395+
to be implemented
1396+
*/
13761397
return ret;
13771398
}
13781399

@@ -1407,8 +1428,10 @@ uint32_t AVInput::getVRRSupportWrapper(const JsonObject& parameters, JsonObject&
14071428
bool setVRRSupport(int portId, bool vrrSupport)
14081429
{
14091430
bool ret = true;
1410-
//To implement
1411-
return ret;
1431+
/*
1432+
to be implemented
1433+
*/
1434+
return ret;
14121435
}
14131436

14141437
uint32_t AVInput::setVRRSupportWrapper(const JsonObject& parameters, JsonObject& response)

0 commit comments

Comments
 (0)