ASoC: wcd9335: Enable headphone OCP for wcd9335 v2.0

WCD9335 codec version 2.0 has support for detecting
over current in headphones path and shuts the headphone
PAs whenever over current is detected. Add support to
enable OCP (over current protection) for headphone path.

Change-Id: Iabad301bb8a926bfdef437754b13ba583dd315d7
Signed-off-by: Phani Kumar Uppalapati <phaniu@codeaurora.org>
This commit is contained in:
Phani Kumar Uppalapati 2015-08-19 15:45:13 -07:00 committed by Gerrit - the friendly Code Review server
parent d636ebbd41
commit 283edd45f4

View file

@ -8954,6 +8954,9 @@ static const struct tasha_reg_mask_val tasha_codec_reg_init_val_1_0[] = {
static const struct tasha_reg_mask_val tasha_codec_reg_init_val_2_0[] = {
{WCD9335_RX_BIAS_FLYB_MID_RST, 0xF0, 0x10},
{WCD9335_HPH_OCP_CTL, 0xFF, 0x52},
{WCD9335_HPH_L_TEST, 0x01, 0x01},
{WCD9335_HPH_R_TEST, 0x01, 0x01},
};
static const struct tasha_reg_mask_val tasha_codec_reg_defaults[] = {