概述
vendor/mediatek/proprietary/hardware/audio/mt8127/aud_drv/AudioALSAVolumeController.cpp
@@ -1418,6 +1418,9 @@ void AudioALSAVolumeController::ApplyAmpGain(int Gain, uint32_t mode, uint32_t d
// set line out buffer to 0Db.
SetLinoutLGain(LINE_OUT_BUFFER_ODB_INDEX);
SetLinoutRGain(LINE_OUT_BUFFER_ODB_INDEX);
+ if( device == 15 ){
+ DegradedBGain = 4;
+ }
SetSpeakerGain(DegradedBGain);
}
--- a/kernel-3.18/sound/soc/mediatek/mt_soc_audio_8127/mt_soc_codec_63xx.c
+++ b/kernel-3.18/sound/soc/mediatek/mt_soc_audio_8127/mt_soc_codec_63xx.c
@@ -2215,13 +2215,15 @@ void SetMicPGAGain(void)
if (index > index2)
index = index2;
/* const int PreAmpGain[] = {-6, 0, 6, 12, 18, 24}; */
- pmic_set_ana_reg(AUDTOP_CON0, index << 4, 0x00000070);
+ //pmic_set_ana_reg(AUDTOP_CON0, index << 4, 0x00000070);
+ pmic_set_ana_reg(AUDTOP_CON0, 5 << 4, 0x00000070);
/* set mic2 PGA gain */
index = mCodec_data->mAudio_Ana_Volume[AUDIO_ANALOG_VOLUME_MICAMP2];
pr_debug("%s(), mic2 index = %d, index2 = %dn", __func__, index, index2);
if (index > index2)
index = index2;
- pmic_set_ana_reg(AUDTOP_CON1, index << 8, 0x00000700);
+ //pmic_set_ana_reg(AUDTOP_CON1, index << 8, 0x00000700);
+ pmic_set_ana_reg(AUDTOP_CON1, 5 << 8, 0x00000700);
}
static bool GetAdcStatus(void)
最后
以上就是成就唇膏为你收集整理的修改mic录音播放音量太小 & MODE_IN_COMMUNICATION模式的声音大小 问题(MTK)的全部内容,希望文章能够帮你解决修改mic录音播放音量太小 & MODE_IN_COMMUNICATION模式的声音大小 问题(MTK)所遇到的程序开发问题。
如果觉得靠谱客网站的内容还不错,欢迎将靠谱客网站推荐给程序员好友。
发表评论 取消回复