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

Commit 83716b9a authored by Vatsal Bucha's avatar Vatsal Bucha
Browse files

ASoC: wsa881x: fix wsa881x speaker damage



wsa881x speaker damage has been reported due to DC at
wsa output. Add a register setting which will reset
the soundwire when there are any DC or synchronization issues.

CRs-Fixed: 2086505
Change-Id: Id2bfb876a5bace891befa613153a88ee54033d76
Signed-off-by: default avatarVatsal Bucha <vbucha@codeaurora.org>
parent 383f3df7
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -968,6 +968,8 @@ static void wsa881x_init(struct snd_soc_codec *codec)

	wsa881x->version = snd_soc_read(codec, WSA881X_CHIP_ID1);
	wsa881x_regmap_defaults(wsa881x->regmap, wsa881x->version);
	/* Enable software reset output from soundwire slave */
	snd_soc_update_bits(codec, WSA881X_SWR_RESET_EN, 0x07, 0x07);
	/* Bring out of analog reset */
	snd_soc_update_bits(codec, WSA881X_CDC_RST_CTL, 0x02, 0x02);
	/* Bring out of digital reset */