Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6b01d100 authored by Laxminath Kasam's avatar Laxminath Kasam
Browse files

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: default avatarLaxminath Kasam <lkasam@codeaurora.org>
parent 47673f2f
Loading
Loading
Loading
Loading
+2 −2
Original line number Original line Diff line number Diff line
@@ -1050,12 +1050,12 @@ int bolero_runtime_resume(struct device *dev)
	struct bolero_priv *priv = dev_get_drvdata(dev->parent);
	struct bolero_priv *priv = dev_get_drvdata(dev->parent);
	int ret = 0;
	int ret = 0;


	mutex_lock(&priv->vote_lock);
	if (priv->lpass_core_hw_vote == NULL) {
	if (priv->lpass_core_hw_vote == NULL) {
		dev_dbg(dev, "%s: Invalid lpass core hw node\n", __func__);
		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) {
	if (priv->core_hw_vote_count == 0) {
		ret = clk_prepare_enable(priv->lpass_core_hw_vote);
		ret = clk_prepare_enable(priv->lpass_core_hw_vote);
		if (ret < 0) {
		if (ret < 0) {