檔案路徑如下: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對應的第一行資料即可。
MT6735平台螢幕旋轉90度
lk 橫屏logo,順時針旋轉90度顯示修改 bootable bootloader lk project len6735 65u vo.mk boot logo wxganlmtk lcm physical rotation 90 framebuffer順時針旋轉90度的修改 device len...
mt6735 mt8735硬體電量計執行流程
mt6735 mt8735 目前預設使用硬體電量計 soc by hw fg 採集電池電量,現在簡單描述一下這硬體電量計的工作過程。1.首先,系統在kernel 3.10 drivers misc mediatek mach mt6735 ap7350 tb l1 power cust batter...