mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-09 05:39:54 -04:00
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: Vatsal Bucha <vbucha@codeaurora.org>
This commit is contained in:
parent
7c1dc5a70e
commit
ff2053b1fe
1 changed files with 4 additions and 0 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue