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

Commit a1a8b5dc authored by Phani Kumar Uppalapati's avatar Phani Kumar Uppalapati Committed by Gerrit - the friendly Code Review server
Browse files

ASoC: wcd9xxx: Handle codec register config if MBHC is disabled



On codec reset, mic and micbias pulldown bits are enabled
by default. In cases when MBHC block on the codec is not
enabled, the pulldown bits should be disabled so that mic
and micbias can be enabled for voice call use cases on Headset.
Add support to check whether MBHC is enabled and update the
pulldown bits accordingly. Also, it is possible that DCE_Z
and DCE_MB calibration values can be zero if MBHC block is not
enabled, add check to avoid division by zero in this scenario.

Change-Id: Ica9d95142770d3e905ab71a1923c7e389c523d6f
Signed-off-by: default avatarPhani Kumar Uppalapati <phaniu@codeaurora.org>
parent 29561e63
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment