asoc: tegra: Fix headset detection
Vijay Mali [Wed, 17 Oct 2012 07:26:06 +0000 (12:26 +0530)]
Increase debounce time. Helps in making correct
decision of headset insert and remove events.

For bug 1060874

Signed-off-by: Vijay Mali <vmali@nvidia.com>
Reviewed-on: http://git-master/r/145165
(cherry picked from commit f62ad8e7f9013169f1e5b8aed833e56c9e4509ff)

Change-Id: Iec7d34b0e2bf0de4bfca31f13818be900ca2188c
Signed-off-by: Bharat Nihalani <bnihalani@nvidia.com>
Reviewed-on: http://git-master/r/146967
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Vijay Mali <vmali@nvidia.com>
Tested-by: Vijay Mali <vmali@nvidia.com>

sound/soc/codecs/rt5640.c

index 22cc413..786c75f 100644 (file)
@@ -457,7 +457,7 @@ int rt5640_headset_detect(struct snd_soc_codec *codec, int jack_insert)
                        RT5640_PWR_MB_PU | RT5640_PWR_CLK25M_PU);
                snd_soc_update_bits(codec, RT5640_DUMMY1,
                        0x1, 0x1);
-               msleep(100);
+               msleep(150);
                if (snd_soc_read(codec, RT5640_IRQ_CTRL2) & 0x8)
                        jack_type = RT5640_HEADPHO_DET;
                else