|
@@ -3250,7 +3250,7 @@ static int swrm_runtime_suspend(struct device *dev)
|
|
|
swrm->state = SWR_MSTR_DOWN;
|
|
|
|
|
|
exit:
|
|
|
- if (swrm->state != SWR_MSTR_UP) {
|
|
|
+ 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__);
|