asoc: codecs: Update power setting for CLS_H_LOHIFI mode

In new class-H driver used for tanggu or later variants,
use LP(low power) power setting for CLS_H_LOHIFI same
as tavil codec.

Change-Id: I6a0f6e6d39e5704d6ea429ae2f3698750b7ea487
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
This commit is contained in:
Laxminath Kasam 2018-12-03 20:30:02 +05:30 • committed by Meng Wang
commit ea2b058566

View file

@ -1,6 +1,6 @@
// SPDX-License-Identifier: GPL-2.0-only
/*
* Copyright (c) 2015-2018, The Linux Foundation. All rights reserved.
* Copyright (c) 2015-2019, The Linux Foundation. All rights reserved.
*/
#include <linux/module.h>
@ -243,7 +243,6 @@ static void wcd_clsh_set_hph_mode(struct snd_soc_component *component,
switch (mode) {
case CLS_H_NORMAL:
case CLS_H_LOHIFI:
val = 0x00;
break;
case CLS_AB:
@ -255,6 +254,7 @@ static void wcd_clsh_set_hph_mode(struct snd_soc_component *component,
val = 0x08;
break;
case CLS_H_LP:
case CLS_H_LOHIFI:
val = 0x04;
break;
default: