asoc: codec: es755: headset redetection
authorMaheedhar Sai Sandeep Pamuru <mpamuru@nvidia.com>
Fri, 20 Mar 2015 02:27:35 +0000 (19:27 -0700)
committerSumit Bhattacharya <sumitb@nvidia.com>
Fri, 14 Aug 2015 05:21:22 +0000 (22:21 -0700)
commitdf3513c07cd65dc03573ef62768ce2ecd627d4cb
tree7a321ed68d291eb93400a30500845e2292518647
parentc13abf6e77a5e59d4f3a476c63c5f11466dfc385
asoc: codec: es755: headset redetection

In the current implementation, codec mis-detects the headphone as
headset esp when user plug-in the headphone slowly.

Added change to redetect the headset after 250 millisec.
No redetection in case of Headphone.

K-control to change the detection delay:
adb shell tinymix "HS Delay" "250" [250 millisec]
Supported range: 50 millisec - 2000 millisec

bug: 200072731

Change-Id: I8e1bab8e06d0f75a7b1e4e33326bff8eee6af3cf
Reviewed-on: http://git-master/r/719996
Signed-off-by: Srinivas Anne <sanne@nvidia.com>
Reviewed-on: http://git-master/r/721197
Reviewed-on: http://git-master/r/761514
Reviewed-by: Dara Ramesh <dramesh@nvidia.com>
Reviewed-by: Sumit Bhattacharya <sumitb@nvidia.com>
sound/soc/codecs/audience/es755.c [changed mode: 0644->0755]
sound/soc/codecs/audience/es755.h [changed mode: 0644->0755]
sound/soc/codecs/audience/escore.h [changed mode: 0644->0755]