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

Commit 96975d40 authored by Prasad Kumpatla's avatar Prasad Kumpatla
Browse files

asoc: codecs: check the spkr status before access the wsa registers



Before access the wsa register check the spkr status bit in
power-down sequence.

Change-Id: I5e07ee56e17701275784fd4c413bc214c5893989
Signed-off-by: default avatarPrasad Kumpatla <nkumpat@codeaurora.org>
parent 95f25a91
Loading
Loading
Loading
Loading
+4 −3
Original line number Original line Diff line number Diff line
@@ -1274,6 +1274,7 @@ static int wsa883x_event_notify(struct notifier_block *nb,


	switch (event) {
	switch (event) {
	case BOLERO_WSA_EVT_PA_OFF_PRE_SSR:
	case BOLERO_WSA_EVT_PA_OFF_PRE_SSR:
		if (test_bit(SPKR_STATUS, &wsa883x->status_mask))
			snd_soc_component_update_bits(wsa883x->component,
			snd_soc_component_update_bits(wsa883x->component,
						WSA883X_PA_FSM_CTL,
						WSA883X_PA_FSM_CTL,
						0x01, 0x00);
						0x01, 0x00);