libtriple: use AVS mute to avoid audio pop during boot

Origin commit data
------------------
Branch: master
Commit: 9d7c877b7c
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>
Date: 2012-01-22 (Sun, 22 Jan 2012)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
Stefan Seyfried
2012-01-22 13:18:31 +01:00
parent 098eba57f0
commit 6014ab0be2
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);