Firefly开源社区

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

69

积分

0

威望

0

贡献

技术小白

积分
69
发表于 2020-8-20 15:56:38     
AIO-3399C  ai  industy  7.1 编译的版本有phone 口有pop音, 而老版本ai box 编出的没有
回复

使用道具 举报

发表于 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);      
回复

使用道具 举报

69

积分

0

威望

0

贡献

技术小白

积分
69
发表于 2020-8-20 17:19:55     
好的, 我试试,
回复

使用道具 举报

69

积分

0

威望

0

贡献

技术小白

积分
69
发表于 2020-8-20 18:13:30     
firefly_zhongw 发表于 2020-8-20 17:06
耳机输出有pop音,尝试如下修改:
--- a/kernel/sound/soc/codecs/rt5640.c
+++ b/kernel/sound/soc/code ...

问题解决了, 非常感谢, 多谢
回复

使用道具 举报

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

本版积分规则

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