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

This commit is contained in:
qctecmdr 2020-11-25 18:57:01 -08:00 • committed by Gerrit - the friendly Code Review server
commit 65c5953d9a

View file

@ -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) {