aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2015-01-11 21:49:36 +0100
committerTakashi Iwai <tiwai@suse.de>2015-01-11 21:51:51 +0100
commitf4f48b3c2f9e9defde48c8e1b0197e8d9e800569 (patch)
tree3127c62439ccede0d5820e7017ab1643b6b160b0
parentaa18b3ccf7ce62694112eaea6d0e14baba027c83 (diff)
downloadhda-emu-f4f48b3c2f9e9defde48c8e1b0197e8d9e800569.tar.gz
Add a few more input device wrappers
input_report_key(), input_report_sync(), keybits[] and a few KEY_* constants definitions for the recent patch to support HP mic-mute key handling. Signed-off-by: Takashi Iwai <tiwai@suse.de>
-rw-r--r--include/linux/input.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/linux/input.h b/include/linux/input.h
index 02afd62..213c12b 100644
--- a/include/linux/input.h
+++ b/include/linux/input.h
@@ -23,6 +23,7 @@ struct input_dev {
unsigned long evbit[8];
unsigned long sndbit[8];
+ unsigned long keybit[0x300 / (sizeof(long) * 8)];
/* ... */
int (*open)(struct input_dev *dev);
@@ -50,6 +51,8 @@ static inline void input_free_device(struct input_dev *dev)
#define input_get_drvdata(idev) ((idev)->dev.driver_data)
#define input_register_device(dev) 0
#define input_unregister_device(dev) input_free_device(dev)
+static inline void input_report_key(struct input_dev *dev, unsigned int code, int value) {}
+static inline void input_sync(struct input_dev *dev) {}
#define BUS_PCI 0x01
@@ -74,4 +77,9 @@ static inline void input_free_device(struct input_dev *dev)
#define EV_MAX 0x1f
#define EV_CNT (EV_MAX+1)
+#define KEY_MUTE 113
+#define KEY_VOLUMEDOWN 114
+#define KEY_VOLUMEUP 115
+#define KEY_MICMUTE 248 /* Mute / unmute the microphone */
+
#endif /* __LINUX_INPUT_H */