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

Commit 5cfdc379 authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

Merge "ASoC: wcd937x: Change resistor divider output for hph if fab id is enabled"

parents 774957f9 cf02882f
Loading
Loading
Loading
Loading
+8 −1
Original line number Diff line number Diff line
@@ -143,9 +143,16 @@ static int wcd937x_init_reg(struct snd_soc_component *component)
				0xFF, 0xFA);
	/* Set VBG Voltage to P0.5V for Tanggu second source */
	if (snd_soc_component_read32(component, WCD937X_DIGITAL_EFUSE_REG_16)
	    == 0x01)
	    == 0x01) {
		snd_soc_component_update_bits(component,
				WCD937X_BIAS_VBG_FINE_ADJ, 0xF0, 0xB0);
	} else if (snd_soc_component_read32(component,
		WCD937X_DIGITAL_EFUSE_REG_16) == 0x02) {
		snd_soc_component_update_bits(component,
				WCD937X_HPH_NEW_INT_RDAC_HD2_CTL_L, 0x1F, 0x04);
		snd_soc_component_update_bits(component,
				WCD937X_HPH_NEW_INT_RDAC_HD2_CTL_R, 0x1F, 0x04);
	}
	return 0;
}