Firefly开源社区

标题: AIO-3399C ai industy 7.1 编译的版本有phone 口有pop音 [打印本页]

作者: aric_su    时间: 2020-8-20 15:56
标题: AIO-3399C ai industy 7.1 编译的版本有phone 口有pop音
AIO-3399C  ai  industy  7.1 编译的版本有phone 口有pop音, 而老版本ai box 编出的没有
作者: firefly_zhongw    时间: 2020-8-20 17:06
耳机输出有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);      
作者: aric_su    时间: 2020-8-20 17:19
好的, 我试试,
作者: aric_su    时间: 2020-8-20 18:13
firefly_zhongw 发表于 2020-8-20 17:06
耳机输出有pop音,尝试如下修改:
--- a/kernel/sound/soc/codecs/rt5640.c
+++ b/kernel/sound/soc/code ...

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




欢迎光临 Firefly开源社区 (https://dev.t-firefly.com/) Powered by Discuz! X3.1