|
|
@ -771,8 +771,7 @@ static int set_fanspeed(int gpu, int iFanSpeed) |
|
|
|
* in case this device does not support fine setting changes */ |
|
|
|
* in case this device does not support fine setting changes */ |
|
|
|
ga->targetfan = iFanSpeed; |
|
|
|
ga->targetfan = iFanSpeed; |
|
|
|
ga->lpFanSpeedValue.iFlags = ADL_DL_FANCTRL_FLAG_USER_DEFINED_SPEED; |
|
|
|
ga->lpFanSpeedValue.iFlags = ADL_DL_FANCTRL_FLAG_USER_DEFINED_SPEED; |
|
|
|
if ((ga->lpFanSpeedInfo.iFlags & ADL_DL_FANCTRL_SUPPORTS_RPM_WRITE) && |
|
|
|
if (!(ga->lpFanSpeedInfo.iFlags & ADL_DL_FANCTRL_SUPPORTS_PERCENT_WRITE)) { |
|
|
|
!(ga->lpFanSpeedInfo.iFlags & ADL_DL_FANCTRL_SUPPORTS_PERCENT_WRITE)) { |
|
|
|
|
|
|
|
/* Must convert speed to an RPM */ |
|
|
|
/* Must convert speed to an RPM */ |
|
|
|
iFanSpeed = ga->lpFanSpeedInfo.iMaxRPM * iFanSpeed / 100; |
|
|
|
iFanSpeed = ga->lpFanSpeedInfo.iMaxRPM * iFanSpeed / 100; |
|
|
|
ga->lpFanSpeedValue.iSpeedType = ADL_DL_FANCTRL_SPEED_TYPE_RPM; |
|
|
|
ga->lpFanSpeedValue.iSpeedType = ADL_DL_FANCTRL_SPEED_TYPE_RPM; |
|
|
|