MT6735修改听筒增益

文件路径如下:vendor\mediatek\proprietary\custom\common\cgen\cfgdefault\Audio_ver1_volume_custom_default.h

#ifndef AUDIO_VER1_VOLUME_CUSTOM_DEFAULT_H
#define AUDIO_VER1_VOLUME_CUSTOM_DEFAULT_H

#define VER1_AUD_VOLUME_RING \    来电铃声各level数字增益
    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 \    VOIP各level数字增益
    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

#define VER1_AUD_VOLUME_MIC \    MIC各level数字增益
     64,112,192,144,192,192,184,184,184,184,184,0,0,0,0,\
    255,192,192,180,192,192,196,184,184,184,184,0,0,0,0,\
    255,208,208,180,255,208,196,0,0,0,0,0,0,0,0,\
    255,208,208,164,255,208,172,0,0,0,0,0,0,0,0

#define VER1_AUD_VOLUME_FM \    
    32,48,64,80,96,112,128,144,160,176,192,208,224,255,255,\
    88,100,112,124,136,148,160,172,184,196,208,220,232,244,255,\
    68,80,92,104,116,128,140,152,168,176,188,200,212,232,248,\
    32,48,64,80,96,112,128,144,160,176,192,208,224,255,255

#define VER1_AUD_VOLUME_SPH \    通过各level数字增益
    40,60,80,100,120,140,160,0,0,0,0,0,0,0,0,\
    40,60,80,100,120,140,160,0,0,0,0,0,0,0,0,\
    40,60,80,100,120,140,160,0,0,0,0,0,0,0,0,\
    40,60,80,100,120,140,160,0,0,0,0,0,0,0,0

#define VER1_AUD_VOLUME_SID \
    0,0,16,0,0,0,0,0,0,0,0,0,0,0,0,\
    0,0,32,0,0,0,0,0,0,0,0,0,0,0,0,\
    0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,\
    0,0,0,0,0,0,0,0,0,0,0,0,0,0,0

#define VER1_AUD_VOLUME_MEDIA \    media各level数字增益
    32,48,64,80,96,112,160,144,160,176,192,208,224,240,255,\
    88,100,112,124,136,148,160,172,184,196,208,220,232,244,255,\
    68,80,92,104,116,128,140,152,168,176,188,200,212,232,248,\
    32,48,64,80,96,112,128,144,160,176,192,208,224,240,255

#define VER1_AUD_VOLUME_MATV \   MATV各level数字增益
    32,48,64,80,96,112,128,144,160,176,192,208,224,240,255,\
    88,100,112,124,136,148,160,172,184,196,208,220,232,244,255,\
    68,80,92,104,116,128,140,152,168,176,188,200,212,232,248,\
    32,48,64,80,96,112,128,144,160,176,192,208,224,240,255

#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 \    speaker模拟增益
    160,120,120,120,120,120

#define VER1_AUD_HEADSETSPEAKER_VOLUME_DEFAULT \  耳机和speaker同时开启时的speaker模拟增益
    112,160,132,132,132,132,132,132

#define VER1_AUD_EXTAMP_VOLUME_DEFAULT \
    132,132,132,132,132,132

#define VER1_AUD_VOLUME_LEVEL_DEFAULT \
    15,7,15,15,7,7,7,15,15

/* mic volume setting for 2G/3G HAC mode */    
#define DEFAULT_VER1_AUD_VOLUME_MIC_HAC \
     64,112,192,144,192,192,184,184,184,184,184,0,0,0,0
     
/* speech dl volume setting for 2G/3G HAC mode */    
#define DEFAULT_VER1_AUD_VOLUME_SPH_HAC \
    40,52,64,76,88,100,112,0,0,0,0,0,0,0,0

/* sidetone volume setting for 2G/3G HAC mode */    
#define DEFAULT_VER1_AUD_VOLUME_SID_HAC \
    0,0,16,0,0,0,0,0,0,0,0,0,0,0,0

#endif
四行数据增益分别对应:

      听筒模式

      耳机模式

      喇叭模式

      耳机和喇叭同时出声的模式

修改听筒增益,只需要修改VER1_AUD_VOLUME_SPH对应的第一行数据即可。

你可能感兴趣的:(Android)