mirror of
https://github.com/team-infusion-developers/android_kernel_samsung_msm8976.git
synced 2024-11-01 02:21:16 +00:00
Merge "ASoC: wcd9xxx-mbhc: fix codec power leakage during suspend"
This commit is contained in:
commit
0b2b032dad
1 changed files with 4 additions and 1 deletions
|
@ -4255,7 +4255,10 @@ static void wcd9xxx_mbhc_setup(struct wcd9xxx_mbhc *mbhc)
|
|||
gain = wcd9xxx_mbhc_cal_btn_det_mp(btn_det, MBHC_BTN_DET_GAIN);
|
||||
snd_soc_update_bits(codec, WCD9XXX_A_CDC_MBHC_B2_CTL, 0x78,
|
||||
gain[idx] << 3);
|
||||
snd_soc_update_bits(codec, WCD9XXX_A_MICB_2_MBHC, 0x04, 0x04);
|
||||
if (mbhc->mbhc_cb && mbhc->mbhc_cb->get_cdc_type &&
|
||||
mbhc->mbhc_cb->get_cdc_type() !=
|
||||
WCD9XXX_CDC_TYPE_TOMTOM)
|
||||
snd_soc_update_bits(codec, WCD9XXX_A_MICB_2_MBHC, 0x04, 0x04);
|
||||
|
||||
pr_debug("%s: leave\n", __func__);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue