微波EDA网,见证研发工程师的成长!
首页 > 研发问答 > 手机设计讨论 > MTK手机平台交流 > mt6735 如何调节loopback的相关gain值来增大或减小声音

mt6735 如何调节loopback的相关gain值来增大或减小声音

时间:10-02 整理:3721RD 点击:
[DESCRIPTION]
介绍如何调节loopback的相关gain值来增大或减小声音

[SOLUTION]
1.How to adjust gain in AFE Loopback?
AudioLoopbackController::OpenAudioLoopbackControlFlow()中
-DL gain
setMasterVolume(kMaxMasterVolume, AUDIO_MODE_NORMAL, output_device);
其中,kMaxMasterVolume的范围:0.0~1.0
当然也可以直接设置DL相关寄存器,即:
setAnalogGain(AudioAnalogType::VOLUME_HSOUTL/R,...);//设置听筒
setAnalogGain(AudioAnalogType::VOLUME_HPOUTL/R,...);//设置耳机
setAnalogGain(AudioAnalogType::VOLUME_SPKL/R,...);//设置扬声器
-UL gain
setAnalogGain(AudioAnalogType::VOLUME_MICAMPL, kPreAmpGainMapValue[PREAMP_GAIN_*_DB]);
setAnalogGain(AudioAnalogType::VOLume_MICAMPR, kPreAmpGainMapValue[PREAMP_GAIN_*_DB]);
其中,PREAMP_GAIN_*_DB的范围REAMP_GAIN_2_DB~PREAMP_GAIN_32_DB

2.How to adjust gain in Acoustic Loopback?
SpeechLoopbackController::OpenModemLoopbackControlFlow()中
-DL gain
setVoiceVolume(KMaxVoiceVolume, mAudioResourceManager->GetAudioMode(), output_device);
其中,KMaxVoiceVolume的范围:0.0~1.0
-UL gain
Please do not adjust it

Copyright © 2017-2020 微波EDA网 版权所有

网站地图

Top