erix5

ADL_Overdrive5_FanSpeed* still missed

Discussion created by erix5 on Apr 22, 2009
Latest reply on Sep 5, 2009 by martina
With Catalyst 9.4

Hi

ADL_Overdrive5_FanSpeed_Get/Set functions. Return value is always ADL_ERR_NOT_SUPPORTED...

It seems not working yet, isn't it?

Used latest driver - catalyst 9.4.

GPU: RV770 (4850)

Here is code:

...

typedef int ( *ADL_OVERDRIVE5_FAN_SPEED_GET ) (int, int, ADLFanSpeedValue *);
...
ADL_OVERDRIVE5_FAN_SPEED_GET ADL_ovd5_fanSpeed_Get;
ADLFanSpeedValue * lpFanSpeedVl = malloc(sizeof(ADLFanSpeedValue));
memset( lpFanSpeedVl, 0, sizeof(ADLFanSpeedValue));
ADL_ovd5_fanSpeed_Get = (ADL_OVERDRIVE5_FAN_SPEED_GET)GetProcAddress(pLib,"ADL_Overdrive5_FanSpeed_Get");

if ( NULL != ADL_ovd5_fanSpeed_Get ) {
int err;
lpFanSpeedVl->iSize = sizeof(ADLFanSpeedValue);
// Am I right setting iSpeedType to type RPM or percent would return different
// value in iFanSpeed field. So I set it...
lpFanSpeedVl->iSpeedType = ADL_DL_FANCTRL_SPEED_TYPE_RPM;

err = ADL_ovd5_fanSpeed_Get(adIdx, 0 /*zero_now*/, lpFanSpeedVl);
if (err != ADL_OK) {
printf ("Call ADL_ovd5_fanSpeed_Get filed with: %d code\n", err);
}

...

Thanks!

Outcomes