Skip to content

Commit 49783c6

Browse files
oder-chioubroonie
authored andcommitted
ASoC: rt5682: Fix the fast discharge for headset unplugging in soundwire mode
Based on ("5a15cd7fce20b1fd4aece6a0240e2b58cd6a225d"), the setting also should be set in soundwire mode. Signed-off-by: Oder Chiou <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Mark Brown <[email protected]>
1 parent 8bef925 commit 49783c6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

sound/soc/codecs/rt5682-sdw.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -462,7 +462,8 @@ static int rt5682_io_init(struct device *dev, struct sdw_slave *slave)
462462

463463
regmap_update_bits(rt5682->regmap, RT5682_CBJ_CTRL_2,
464464
RT5682_EXT_JD_SRC, RT5682_EXT_JD_SRC_MANUAL);
465-
regmap_write(rt5682->regmap, RT5682_CBJ_CTRL_1, 0xd042);
465+
regmap_write(rt5682->regmap, RT5682_CBJ_CTRL_1, 0xd142);
466+
regmap_update_bits(rt5682->regmap, RT5682_CBJ_CTRL_5, 0x0700, 0x0600);
466467
regmap_update_bits(rt5682->regmap, RT5682_CBJ_CTRL_3,
467468
RT5682_CBJ_IN_BUF_EN, RT5682_CBJ_IN_BUF_EN);
468469
regmap_update_bits(rt5682->regmap, RT5682_SAR_IL_CMD_1,

0 commit comments

Comments
 (0)