mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-13 08:07:32 -04:00
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 <lkasam@codeaurora.org>
This commit is contained in:
parent
47673f2f83
commit
6b01d100ee
1 changed files with 2 additions and 2 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue