ASoC: WCD9310: Switch micbias to VDDIO to avoid click noise in playback

The microphone bias used for headset microphone is also used for button
polling in case of headset. This causes fluctuation of current on the
headphone path, resulting in a periodic clicking noise.

Switching the microphone bias to VDDIO when headphone playback is in
progress and headset mic recording is not in progress avoids the click
noise problem

Change-Id: Ic9a1de508bbf48703f4e42c12c1cf4d08cad748b
Signed-off-by: Bhalchandra Gajare <gajare@codeaurora.org>
1 file changed