麦克风增益
authorcheng.chen <cheng.chen@raisound.com>
Fri, 3 Apr 2026 10:45:19 +0000 (18:45 +0800)
committercheng.chen <cheng.chen@raisound.com>
Fri, 3 Apr 2026 10:45:45 +0000 (18:45 +0800)
2.code/aicos/drivers/sound/driver/codec/es8311.c
2.code/aicos/projects/banyan/ap/common_inc/audio/snd_config.h

index 2d2dd90..89d504c 100644 (file)
@@ -895,7 +895,7 @@ static int es8311_set_bias_level(struct snd_codec *codec,
                     0x20, 0x00);
         }
         regv = snd_soc_component_read32(codec, ES8311_SYSTEM_REG14) & 0xCF;
-        regv |= 0x1A;
+        regv |= 0x18;
         snd_soc_component_write(codec, ES8311_SYSTEM_REG14, regv);
         if(es8311->dmic_enable == true) {
             snd_soc_component_update_bits(codec, ES8311_SYSTEM_REG14,
@@ -1103,7 +1103,7 @@ static int es8311_resume(struct snd_codec *codec)
         snd_soc_component_update_bits(codec, ES8311_CLK_MANAGER_REG06,
                 0x20, 0x00);
     }
-    snd_soc_component_write(codec, ES8311_SYSTEM_REG14, 0x1A);
+    snd_soc_component_write(codec, ES8311_SYSTEM_REG14, 0x18);
     if(es8311->dmic_enable == true) {
         snd_soc_component_update_bits(codec, ES8311_SYSTEM_REG14,
                 0x40, 0x40);
@@ -1193,7 +1193,7 @@ static int es8311_probe(struct snd_codec *codec)
         snd_soc_component_update_bits(codec, ES8311_CLK_MANAGER_REG06,
                 0x20, 0x00);
     }
-    snd_soc_component_write(codec, ES8311_SYSTEM_REG14, 0x1A);
+    snd_soc_component_write(codec, ES8311_SYSTEM_REG14, 0x18);
     if(es8311->dmic_enable == true) {
         snd_soc_component_update_bits(codec, ES8311_SYSTEM_REG14,
                 0x40, 0x40);
index 2880ebd..db8f86d 100644 (file)
@@ -14,7 +14,7 @@
 #ifndef __SND_CONFIG_H__
 
 #ifdef CONFIG_SOUND_CODEC_ES8311
-#define SND_CODEC_DEFALT_ADC_GAIN   0xCF//0xBF
+#define SND_CODEC_DEFALT_ADC_GAIN   0xC1//0xBF
 #define SND_CODEC_DEFALT_DAC_GAIN   0xBF
 #define SND_CODEC_DMIC_EN           0
 #define SND_CODEC_MCLK_INV          0