Explorar o código

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

qctecmdr %!s(int64=5) %!d(string=hai) anos
pai
achega
f4ad6ff187
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      asoc/codecs/bolero/bolero-cdc.c

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

@@ -1111,12 +1111,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) {