mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-08 21:22:09 -04:00
Merge "soc: soundwire: Fix soundwire audio core voting sequence"
This commit is contained in:
commit
d22126dbda
1 changed files with 7 additions and 4 deletions
|
|
@ -3243,16 +3243,19 @@ static int swrm_runtime_suspend(struct device *dev)
|
|||
swrm->ipc_wakeup_triggered = false;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
if (swrm_request_hw_vote(swrm, LPASS_AUDIO_CORE, false))
|
||||
dev_dbg(dev, "%s:lpass audio hw enable failed\n",
|
||||
__func__);
|
||||
|
||||
/* Retain SSR state until resume */
|
||||
if (current_state != SWR_MSTR_SSR)
|
||||
swrm->state = SWR_MSTR_DOWN;
|
||||
|
||||
exit:
|
||||
if (current_state != SWR_MSTR_UP) {
|
||||
if (swrm_request_hw_vote(swrm, LPASS_AUDIO_CORE, false))
|
||||
dev_dbg(dev, "%s:lpass audio hw enable failed\n",
|
||||
__func__);
|
||||
}
|
||||
|
||||
if (!hw_core_err)
|
||||
swrm_request_hw_vote(swrm, LPASS_HW_CORE, false);
|
||||
mutex_unlock(&swrm->reslock);
|
||||
|
|
|
|||
Loading…
Reference in a new issue