hammerhead: add hs_detect key layout and key map

Change-Id: Iff2436478b82fdf30df2a09fba91b18e69ee0a2c
diff --git a/device.mk b/device.mk
index e6b8f5c..63b5f5f 100644
--- a/device.mk
+++ b/device.mk
@@ -38,7 +38,9 @@
     device/lge/hammerhead/qpnp_pon.kl:system/usr/keylayout/qpnp_pon.kl \
     device/lge/hammerhead/qpnp_pon.kcm:system/usr/keychars/qpnp_pon.kcm \
     device/lge/hammerhead/Button_Jack.kl:system/usr/keylayout/msm8974-taiko-mtp-snd-card_Button_Jack.kl \
-    device/lge/hammerhead/Button_Jack.kcm:system/usr/keychars/msm8974-taiko-mtp-snd-card_Button_Jack.kcm
+    device/lge/hammerhead/Button_Jack.kcm:system/usr/keychars/msm8974-taiko-mtp-snd-card_Button_Jack.kcm \
+    device/lge/hammerhead/hs_detect.kl:system/usr/keylayout/hs_detect.kl \
+    device/lge/hammerhead/hs_detect.kcm:system/usr/keychars/hs_detect.kcm
 
 # Prebuilt input device calibration files
 PRODUCT_COPY_FILES += \
diff --git a/hs_detect.kcm b/hs_detect.kcm
new file mode 100644
index 0000000..6757670
--- /dev/null
+++ b/hs_detect.kcm
@@ -0,0 +1,15 @@
+# Copyright 2013 The Android Open Source Project
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+#      http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+type SPECIAL_FUNCTION
diff --git a/hs_detect.kl b/hs_detect.kl
new file mode 100644
index 0000000..a5ffe2f
--- /dev/null
+++ b/hs_detect.kl
@@ -0,0 +1,3 @@
+key 226   HEADSETHOOK       WAKE
+key 115   VOLUME_UP         WAKE
+key 114   VOLUME_DOWN       WAKE