Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a2c026cf authored by Oder Chiou's avatar Oder Chiou Committed by Mark Brown
Browse files

ASoC: rt5645: Prevent the weird sound of the headphone while rebooting



The patch adds the codec reset setting in the shutdown function to prevent
the weird sound of the headphone happened by rebooting.

Signed-off-by: default avatarOder Chiou <oder_chiou@realtek.com>
Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent fbe039bb
Loading
Loading
Loading
Loading
+2 −0
Original line number Original line Diff line number Diff line
@@ -3514,6 +3514,8 @@ static void rt5645_i2c_shutdown(struct i2c_client *i2c)
		RT5645_CBJ_MN_JD);
		RT5645_CBJ_MN_JD);
	regmap_update_bits(rt5645->regmap, RT5645_IN1_CTRL1, RT5645_CBJ_BST1_EN,
	regmap_update_bits(rt5645->regmap, RT5645_IN1_CTRL1, RT5645_CBJ_BST1_EN,
		0);
		0);
	msleep(20);
	regmap_write(rt5645->regmap, RT5645_RESET, 0);
}
}


static struct i2c_driver rt5645_i2c_driver = {
static struct i2c_driver rt5645_i2c_driver = {