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