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

Commit f0809973 authored by Laxminath Kasam's avatar Laxminath Kasam Committed by Gerrit - the friendly Code Review server
Browse files

asoc: wcd934x: Fix TX HPF setting update



In case TX HPF mixer ctl set to 150Hz, go bit register
is not updated. Always update go bit along with
setting 150Hz at TX enable sequence.

CRs-Fixed: 2407902
Change-Id: I05b8a471cb2505d1ca5b290ea7ba35da5a534170
Signed-off-by: default avatarLaxminath Kasam <lkasam@codeaurora.org>
parent d4a04e5e
Loading
Loading
Loading
Loading
+11 −13
Original line number Diff line number Diff line
/* Copyright (c) 2015-2018, The Linux Foundation. All rights reserved.
/* Copyright (c) 2015-2019, The Linux Foundation. All rights reserved.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 and
@@ -4476,7 +4476,6 @@ static int tavil_codec_enable_dec(struct snd_soc_dapm_widget *w,

		tavil->tx_hpf_work[decimator].hpf_cut_off_freq =
							hpf_cut_off_freq;
		if (hpf_cut_off_freq != CF_MIN_3DB_150HZ) {
		snd_soc_update_bits(codec, dec_cfg_reg,
				    TX_HPF_CUT_OFF_FREQ_MASK,
				    CF_MIN_3DB_150HZ << 5);
@@ -4487,7 +4486,6 @@ static int tavil_codec_enable_dec(struct snd_soc_dapm_widget *w,
		 */
		usleep_range(1000, 1010);
		snd_soc_update_bits(codec, hpf_gate_reg, 0x02, 0x00);
		}
		/* schedule work queue to Remove Mute */
		schedule_delayed_work(&tavil->tx_mute_dwork[decimator].dwork,
				      msecs_to_jiffies(tx_unmute_delay));