Audio: prevent headphone insertion event handler from turning micbias ON.

Always disable micbias when headphone insertion to save power around 1.5mA.

Bug: 9946473

Change-Id: I7cd2df4872b8388287df69a344f1dc1d45653405
Signed-off-by: Karl Yu <Karl_Yu@asus.com>
This commit is contained in:
Karl Yu
2013-07-24 14:49:55 +08:00
committed by Ed Tam
parent 0fc7c505f3
commit a9b960e8f3

View File

@@ -240,7 +240,7 @@ static void detection_work(struct work_struct *work)
printk(KERN_INFO "HOOK_GPIO value: %d\n", mic_in);
if (switch_get_state(&hs_data->sdev) == NO_DEVICE)
insert_headset();
else if (mic_in == 1)
if (mic_in == 1)
goto closed_micbias;
} else{
printk(KERN_INFO "HEADSET: Jack-in GPIO is low, but not a headset\n");