From ea2b058566d1773fcb40f8c74e2267f096a5d095 Mon Sep 17 00:00:00 2001 From: Laxminath Kasam Date: Mon, 3 Dec 2018 20:30:02 +0530 Subject: [PATCH] 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 --- asoc/codecs/wcd-clsh.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/asoc/codecs/wcd-clsh.c b/asoc/codecs/wcd-clsh.c index 3cd76f709f8e..fd30148b7026 100644 --- a/asoc/codecs/wcd-clsh.c +++ b/asoc/codecs/wcd-clsh.c @@ -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 @@ -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: