Firefly开源社区

打印 上一主题 下一主题

[Android] AIO-3399C ai industy 7.1 编译的版本有phone 口有pop音

发表于 2020-8-20 17:06:30      楼主
耳机输出有pop音,尝试如下修改:
--- a/kernel/sound/soc/codecs/rt5640.c
+++ b/kernel/sound/soc/codecs/rt5640.c
@@ -1149,8 +1149,18 @@ static void rt5640_pmu_depop(struct snd_soc_codec *codec)
        regmap_write(rt5640->regmap, RT5640_PR_BASE +
                RT5640_MAMP_INT_REG2, 0x1c00);
        regmap_update_bits(rt5640->regmap, RT5640_DEPOP_M1,
-               RT5640_HP_CP_MASK | RT5640_HP_SG_MASK,
-               RT5640_HP_CP_PD | RT5640_HP_SG_EN);
+               RT5640_HP_SG_MASK,
+               RT5640_HP_SG_EN);
+        regmap_write(rt5640->regmap, RT5640_HP_VOL, 0xc8c8);     
+       regmap_update_bits(rt5640->regmap, RT5640_DEPOP_M1,
+               RT5640_HP_CB_MASK,
+               RT5640_HP_CB_PD);
+       msleep(10);
+       regmap_update_bits(rt5640->regmap, RT5640_DEPOP_M1,
+               RT5640_HP_CB_MASK,
+               RT5640_HP_CB_PU);  
+        regmap_write(rt5640->regmap, RT5640_HP_VOL, 0x4848);      
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

友情链接 : 爱板网 电子发烧友论坛 云汉电子社区 粤ICP备14022046号-2
快速回复 返回顶部 返回列表