MT6735修改听筒增益

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

 

[cpp] view plain copy

 print?

  1. #ifndef AUDIO_VER1_VOLUME_CUSTOM_DEFAULT_H  
  2. #define AUDIO_VER1_VOLUME_CUSTOM_DEFAULT_H  
  3.   
  4. #define VER1_AUD_VOLUME_RING \    来电铃声各level数字增益  
  5.     32,48,64,80,96,112,128,144,160,176,192,208,224,240,255,\  
  6.     32,48,64,80,96,112,128,144,160,176,192,208,224,240,255,\  
  7.     128,136,144,152,160,168,176,184,192,200,212,224,236,248,255,\  
  8.     128,136,144,152,160,168,176,184,192,200,212,224,236,248,255  
  9.   
  10. #define VER1_AUD_VOLUME_SIP \    VOIP各level数字增益  
  11.     112,136,160,184,208,232,255,0,0,0,0,0,0,0,0,\  
  12.     112,136,160,184,208,232,255,0,0,0,0,0,0,0,0,\  
  13.     112,136,160,184,208,232,255,0,0,0,0,0,0,0,0,\  
  14.     0,43,85,128,171,213,255,0,0,0,0,0,0,0,0  
  15.   
  16. #define VER1_AUD_VOLUME_MIC \    MIC各level数字增益  
  17.      64,112,192,144,192,192,184,184,184,184,184,0,0,0,0,\  
  18.     255,192,192,180,192,192,196,184,184,184,184,0,0,0,0,\  
  19.     255,208,208,180,255,208,196,0,0,0,0,0,0,0,0,\  
  20.     255,208,208,164,255,208,172,0,0,0,0,0,0,0,0  
  21.   
  22. #define VER1_AUD_VOLUME_FM \      
  23.     32,48,64,80,96,112,128,144,160,176,192,208,224,255,255,\  
  24.     88,100,112,124,136,148,160,172,184,196,208,220,232,244,255,\  
  25.     68,80,92,104,116,128,140,152,168,176,188,200,212,232,248,\  
  26.     32,48,64,80,96,112,128,144,160,176,192,208,224,255,255  
  27.   
  28. #define VER1_AUD_VOLUME_SPH \    通过各level数字增益  
  29.     40,60,80,100,120,140,160,0,0,0,0,0,0,0,0,\  
  30.     40,60,80,100,120,140,160,0,0,0,0,0,0,0,0,\  
  31.     40,60,80,100,120,140,160,0,0,0,0,0,0,0,0,\  
  32.     40,60,80,100,120,140,160,0,0,0,0,0,0,0,0  
  33.   
  34. #define VER1_AUD_VOLUME_SID \  
  35.     0,0,16,0,0,0,0,0,0,0,0,0,0,0,0,\  
  36.     0,0,32,0,0,0,0,0,0,0,0,0,0,0,0,\  
  37.     0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,\  
  38.     0,0,0,0,0,0,0,0,0,0,0,0,0,0,0  
  39.   
  40. #define VER1_AUD_VOLUME_MEDIA \    media各level数字增益  
  41.     32,48,64,80,96,112,160,144,160,176,192,208,224,240,255,\  
  42.     88,100,112,124,136,148,160,172,184,196,208,220,232,244,255,\  
  43.     68,80,92,104,116,128,140,152,168,176,188,200,212,232,248,\  
  44.     32,48,64,80,96,112,128,144,160,176,192,208,224,240,255  
  45.   
  46. #define VER1_AUD_VOLUME_MATV \   MATV各level数字增益  
  47.     32,48,64,80,96,112,128,144,160,176,192,208,224,240,255,\  
  48.     88,100,112,124,136,148,160,172,184,196,208,220,232,244,255,\  
  49.     68,80,92,104,116,128,140,152,168,176,188,200,212,232,248,\  
  50.     32,48,64,80,96,112,128,144,160,176,192,208,224,240,255  
  51.   
  52. #define VER1_AUD_NORMAL_VOLUME_DEFAULT \    听筒模拟增益  
  53.     128,128,128,128,128,128  
  54.   
  55. #define VER1_AUD_HEADSER_VOLUME_DEFAULT \   耳机模拟增益  
  56.     124,148,148,148,148,148  
  57.   
  58. #define VER1_AUD_SPEAKER_VOLUME_DEFAULT \    speaker模拟增益  
  59.     160,120,120,120,120,120  
  60.   
  61. #define VER1_AUD_HEADSETSPEAKER_VOLUME_DEFAULT \  耳机和speaker同时开启时的speaker模拟增益  
  62.     112,160,132,132,132,132,132,132  
  63.   
  64. #define VER1_AUD_EXTAMP_VOLUME_DEFAULT \  
  65.     132,132,132,132,132,132  
  66.   
  67. #define VER1_AUD_VOLUME_LEVEL_DEFAULT \  
  68.     15,7,15,15,7,7,7,15,15  
  69.   
  70. /* mic volume setting for 2G/3G HAC mode */      
  71. #define DEFAULT_VER1_AUD_VOLUME_MIC_HAC \  
  72.      64,112,192,144,192,192,184,184,184,184,184,0,0,0,0  
  73.        
  74. /* speech dl volume setting for 2G/3G HAC mode */      
  75. #define DEFAULT_VER1_AUD_VOLUME_SPH_HAC \  
  76.     40,52,64,76,88,100,112,0,0,0,0,0,0,0,0  
  77.   
  78. /* sidetone volume setting for 2G/3G HAC mode */      
  79. #define DEFAULT_VER1_AUD_VOLUME_SID_HAC \  
  80.     0,0,16,0,0,0,0,0,0,0,0,0,0,0,0  
  81.   
  82. #endif  

四行数据增益分别对应:

 

      听筒模式

      耳机模式

      喇叭模式

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

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

转载于:https://my.oschina.net/u/3142241/blog/1439314

你可能感兴趣的:(MT6735修改听筒增益)