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

Commit 65c5953d authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

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

parents 8527c974 ff2053b1
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -2456,6 +2456,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) {