Merge "asoc: update digital_cdc_rsc_mgr_hw_vote API"
This commit is contained in:

کامیت شده توسط
Gerrit - the friendly Code Review server

کامیت
8ee1e5960e
@@ -1383,7 +1383,7 @@ int lpass_cdc_runtime_resume(struct device *dev)
|
||||
}
|
||||
|
||||
if (priv->core_hw_vote_count == 0) {
|
||||
ret = digital_cdc_rsc_mgr_hw_vote_enable(priv->lpass_core_hw_vote);
|
||||
ret = digital_cdc_rsc_mgr_hw_vote_enable(priv->lpass_core_hw_vote, dev);
|
||||
if (ret < 0) {
|
||||
dev_err_ratelimited(dev, "%s:lpass core hw enable failed\n",
|
||||
__func__);
|
||||
@@ -1401,7 +1401,7 @@ audio_vote:
|
||||
}
|
||||
|
||||
if (priv->core_audio_vote_count == 0) {
|
||||
ret = digital_cdc_rsc_mgr_hw_vote_enable(priv->lpass_audio_hw_vote);
|
||||
ret = digital_cdc_rsc_mgr_hw_vote_enable(priv->lpass_audio_hw_vote, dev);
|
||||
if (ret < 0) {
|
||||
dev_err_ratelimited(dev, "%s:lpass audio hw enable failed\n",
|
||||
__func__);
|
||||
@@ -1429,7 +1429,7 @@ int lpass_cdc_runtime_suspend(struct device *dev)
|
||||
if (priv->lpass_core_hw_vote != NULL) {
|
||||
if (--priv->core_hw_vote_count == 0)
|
||||
digital_cdc_rsc_mgr_hw_vote_disable(
|
||||
priv->lpass_core_hw_vote);
|
||||
priv->lpass_core_hw_vote, dev);
|
||||
if (priv->core_hw_vote_count < 0)
|
||||
priv->core_hw_vote_count = 0;
|
||||
} else {
|
||||
@@ -1442,7 +1442,7 @@ int lpass_cdc_runtime_suspend(struct device *dev)
|
||||
if (priv->lpass_audio_hw_vote != NULL) {
|
||||
if (--priv->core_audio_vote_count == 0)
|
||||
digital_cdc_rsc_mgr_hw_vote_disable(
|
||||
priv->lpass_audio_hw_vote);
|
||||
priv->lpass_audio_hw_vote, dev);
|
||||
if (priv->core_audio_vote_count < 0)
|
||||
priv->core_audio_vote_count = 0;
|
||||
} else {
|
||||
|
مرجع در شماره جدید
Block a user