[PORT FROM R2]audio: mfld_machine: Increased the wake lock duration from 1 second...
authornamarta <namartax.kohli@intel.com>
Fri, 3 Feb 2012 10:41:54 +0000 (16:11 +0530)
committerbuildbot <buildbot@intel.com>
Mon, 13 Feb 2012 08:32:50 +0000 (00:32 -0800)
commitc4664ebbf3fead79aeb121be6101e8aa5bd8150e
tree11eb3a0a00f4433beab4534149434462e23bb3d1
parent27b0c5a97d9bac3bf14b29be56d8709b3f3ac271
[PORT FROM R2]audio: mfld_machine: Increased the wake lock duration from 1 second to 2 seconds

BZ: 22014

If frequent jack insertion/removal is done when phone is in S3 state, jack
events are reported by ALSA but they are not propagated to Andriod due to
hardcoded delay of 1 second in the HeadsetObserver before sending the intent.
But phone goes back to S3 state in 1 second, so intent is sent only when phone
wakes up.

Increased the wake lock duration to 2 seconds because duration of 1 second was
not sufficient.

Change-Id: I21cf5b9bb516051fbc0e0d9c2126335d03bde3fa
old-Change-Id: I64dd3d0a28107082177c88ab92c65d3b216b5f6d
Signed-off-by: namarta <namartax.kohli@intel.com>
Reviewed-on: http://android.intel.com:8080/34871
Reviewed-by: M, Arulselvan <arulselvan.m@intel.com>
Tested-by: M, Arulselvan <arulselvan.m@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
sound/soc/mid-x86/mfld_machine.c