Bladeren bron

asoc: codecs: bolero: audio HM voting only supported on bengal

On bengal target, audio HM voting is only applicable.
Update bolero driver to make audio HM vote if audio core handle
is not present.

Change-Id: I9abaf42c04aa8f1b89d9c08e628ab142ce99151a
Signed-off-by: Laxminath Kasam <[email protected]>
Laxminath Kasam 5 jaren geleden
bovenliggende
commit
6b01d100ee
1 gewijzigde bestanden met toevoegingen van 2 en 2 verwijderingen
  1. 2 2
      asoc/codecs/bolero/bolero-cdc.c

+ 2 - 2
asoc/codecs/bolero/bolero-cdc.c

@@ -1050,12 +1050,12 @@ int bolero_runtime_resume(struct device *dev)
 	struct bolero_priv *priv = dev_get_drvdata(dev->parent);
 	int ret = 0;
 
+	mutex_lock(&priv->vote_lock);
 	if (priv->lpass_core_hw_vote == NULL) {
 		dev_dbg(dev, "%s: Invalid lpass core hw node\n", __func__);
-		return 0;
+		goto audio_vote;
 	}
 
-	mutex_lock(&priv->vote_lock);
 	if (priv->core_hw_vote_count == 0) {
 		ret = clk_prepare_enable(priv->lpass_core_hw_vote);
 		if (ret < 0) {