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

Commit ff2053b1 authored by Vatsal Bucha's avatar Vatsal Bucha
Browse files

soc: swr-mstr: Avoid underflow due to CPS spkr prot enabled



Underflow is observed sometimes with CPS spkr prot enabled.
Reduce no of retry count for wsa to 1 so as to optimize delay
between reads on wsa and prevent underflow.

Change-Id: I505fcf349b45bd6f2374e5cfee83473f032e4ad7
Signed-off-by: default avatarVatsal Bucha <vbucha@codeaurora.org>
parent 7c1dc5a7
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -2444,6 +2444,10 @@ static int swrm_master_init(struct swr_mstr_ctrl *swrm)
	u32 temp = 0;
	int len = 0;

	/* Change no of retry counts to 1 for wsa to avoid underflow */
	if (swrm->master_id == MASTER_ID_WSA)
		retry_cmd_num = 1;

	/* SW workaround to gate hw_ctl for SWR version >=1.6 */
	if (swrm->version >= SWRM_VERSION_1_6) {
		if (swrm->swrm_hctl_reg) {