audio-kernel: wcd: Disable 1M Pull-up resistor

1M Pull-up resistor within WCD causes LPD (Liquid Presence
Detection) failures. So add support for disabling 1Mohm
Pull-up resistor. Re-enable it whenever wcd enters into
audio mode.

Change-Id: Ib3115315bc61d4e6126ddf688653182417d5d54d
Signed-off-by: Phani Kumar Uppalapati <quic_phaniu@quicinc.com>
Este commit está contenido en:
Phani Kumar Uppalapati
2023-07-09 22:54:02 -07:00
padre a6734b9ac0
commit 3fca2376eb
Se han modificado 4 ficheros con 29 adiciones y 3 borrados

Ver fichero

@@ -443,6 +443,11 @@ static int wcd939x_init_reg(struct snd_soc_component *component)
if (wcd939x->version != WCD939X_VERSION_2_0)
snd_soc_component_write(component, WCD939X_CFG0, 0x05);
/*
* Disable 1M pull-up by default during boot by writing 0b1 to bit[7].
* This gets re-enabled when headset is inserted.
*/
snd_soc_component_update_bits(component, WCD939X_ZDET_BIAS_CTL, 0x80, 0x80);
return 0;
}