libtriple: avoid audio noise when going to standby

This commit is contained in:
Stefan Seyfried
2012-01-08 00:51:01 +01:00
parent 124733ce12
commit 9cc59bbd24

View File

@@ -52,9 +52,15 @@ bool cCpuFreqManager::SetCpuFreq(unsigned long f)
return false;
}
if (f)
{
ioctl(fd, IOC_AVS_SET_VOLUME, 31); /* mute AVS to avoid ugly noise */
ioctl(fd, IOC_AVS_STANDBY_ENTER);
}
else
{
ioctl(fd, IOC_AVS_STANDBY_LEAVE);
ioctl(fd, IOC_AVS_SET_VOLUME, 0); /* max gain */
}
close(fd);
return true;