mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-libstb-hal.git
synced 2025-08-27 07:22:44 +02:00
libtriple: avoid audio noise when going to standby
Origin commit data
------------------
Branch: master
Commit: 9cc59bbd24
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>
Date: 2012-01-08 (Sun, 08 Jan 2012)
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user