概述
1.模拟增益的设置
在Audio_ver1_volume_custom_default.h中
#define VER1_AUD_NORMAL_VOLUME_DEFAULT
128,128,128,128,128,128
#define VER1_AUD_HEADSER_VOLUME_DEFAULT
124,148,148,148,148,148
#define VER1_AUD_SPEAKER_VOLUME_DEFAULT
160,120,120,120,120,120
#define VER1_AUD_HEADSETSPEAKER_VOLUME_DEFAULT
112,160,132,132,132,132,132,132
#define VER1_AUD_EXTAMP_VOLUME_DEFAULT
132,132,132,132,132,132
这部分代码是模拟增益的设置,即在工程模式下Max Vol对应的值
AudioResourceManager::TurnonAudioDevice->mAudioVolumeInstance->setMasterVolume(mAudioVolumeInstance->getMasterVolume(), mAudioMode, mDlOutputDevice);-->AudioMTKVolumeController::setMasterVolume()-->AudioMTKVolumeController::ApplyAudioGain()-->AudioAnalogControl::SetAnalogGain()-->AudioMachineDevice::SetAnalogGain()
2.数字增益的设置
在Audio_ver1_volume_custom_default.h中
#define VER1_AUD_VOLUME_RING
32,48,64,80,96,112,128,144,160,176,192,208,224,240,255,
32,48,64,80,96,112,128,144,160,176,192,208,224,240,255,
128,136,144,152,160,168,176,184,192,200,212,224,236,248,255,
128,136,144,152,160,168,176,184,192,200,212,224,236,248,255
#define VER1_AUD_VOLUME_SIP
112,136,160,184,208,232,255,0,0,0,0,0,0,0,0,
112,136,160,184,208,232,255,0,0,0,0,0,0,0,0,
112,136,160,184,208,232,255,0,0,0,0,0,0,0,0,
0,43,85,128,171,213,255,0,0,0,0,0,0,0,0
。。。
是数字增益的设置,工程模式中的value level对应
AudioMTKPolicyManager::computeCustomVolume()
最后
以上就是妩媚大白为你收集整理的MT6592 audio笔记的全部内容,希望文章能够帮你解决MT6592 audio笔记所遇到的程序开发问题。
如果觉得靠谱客网站的内容还不错,欢迎将靠谱客网站推荐给程序员好友。
发表评论 取消回复