libtriple: use AVS mute to avoid audio pop during boot

This commit is contained in:
Stefan Seyfried
2012-01-22 13:18:31 +01:00
parent 2ba4fe17c7
commit 9d7c877b7c
3 changed files with 19 additions and 1 deletions

View File

@@ -58,8 +58,10 @@ bool cCpuFreqManager::SetCpuFreq(unsigned long f)
}
else
{
ioctl(fd, IOC_AVS_SET_VOLUME, 31); /* mute AVS to avoid ugly noise */
ioctl(fd, IOC_AVS_STANDBY_LEAVE);
ioctl(fd, IOC_AVS_SET_VOLUME, 0); /* max gain */
/* unmute will be done by cAudio::do_mute(). Ugly, but prevents pops */
// ioctl(fd, IOC_AVS_SET_VOLUME, 0); /* max gain */
}
close(fd);