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

Commit c11f1988 authored by Phani Kumar Uppalapati's avatar Phani Kumar Uppalapati
Browse files

ASoC: wcd9330: Adjust HPH bias current to 3.5uA



Adjust headphone bias current from 2.5uA to 3.5uA
so as to give more headroom to audio signal on the
headphone path and also to avoid signal clipping.

Change-Id: Ifeba769aaef274444379d0cf7d20e4e6320c3f23
Signed-off-by: default avatarPhani Kumar Uppalapati <phaniu@codeaurora.org>
parent fd854d74
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -7339,7 +7339,7 @@ static const struct wcd9xxx_reg_mask_val tomtom_reg_defaults[] = {
	TOMTOM_REG_VAL(TOMTOM_A_CDC_MAD_INP_SEL, 0x01),

	/* Set HPH Path to low power mode */
	TOMTOM_REG_VAL(TOMTOM_A_RX_HPH_BIAS_PA, 0x55),
	TOMTOM_REG_VAL(TOMTOM_A_RX_HPH_BIAS_PA, 0x57),

	/* BUCK default */
	TOMTOM_REG_VAL(TOMTOM_A_BUCK_CTRL_CCL_4, 0x51),
+2 −2
Original line number Diff line number Diff line
/* Copyright (c) 2013-2014, The Linux Foundation. All rights reserved.
/* Copyright (c) 2013-2015, 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
@@ -579,7 +579,7 @@ void wcd9xxx_enable_high_perf_mode(struct snd_soc_codec *codec,
					WCD9XXX_A_RX_HPH_L_PA_CTL__POR);
		snd_soc_write(codec, WCD9XXX_A_RX_HPH_R_PA_CTL,
					WCD9XXX_A_RX_HPH_R_PA_CTL__POR);
		snd_soc_write(codec, WCD9XXX_A_RX_HPH_BIAS_PA, 0x55);
		snd_soc_write(codec, WCD9XXX_A_RX_HPH_BIAS_PA, 0x57);
		wcd9xxx_enable_buck(codec, clsh_d, true);
		wcd9xxx_chargepump_request(codec, false);
		wcd9xxx_enable_anc_delay(codec, false);