16 #include <linux/module.h>
20 #define JVC_UNIT 525000
21 #define JVC_HEADER_PULSE (16 * JVC_UNIT)
22 #define JVC_HEADER_SPACE (8 * JVC_UNIT)
23 #define JVC_BIT_PULSE (1 * JVC_UNIT)
24 #define JVC_BIT_0_SPACE (1 * JVC_UNIT)
25 #define JVC_BIT_1_SPACE (3 * JVC_UNIT)
26 #define JVC_TRAILER_PULSE (1 * JVC_UNIT)
27 #define JVC_TRAILER_SPACE (35 * JVC_UNIT)
48 struct jvc_dec *
data = &dev->
raw->jvc;
53 if (!is_timing_event(ev)) {
62 IR_dprintk(2,
"JVC decode started at state %d (%uus %s)\n",
66 switch (data->state) {
77 data->toggle = !data->toggle;
140 scancode = (bitrev8((data->bits >> 8) & 0xff) << 8) |
141 (bitrev8((data->bits >> 0) & 0xff) << 0);
142 IR_dprintk(1,
"JVC scancode 0x%04x\n", scancode);
145 data->old_bits = data->bits;
146 }
else if (data->bits == data->old_bits) {
170 IR_dprintk(1,
"JVC decode failed at state %d (%uus %s)\n",
178 .decode = ir_jvc_decode,
181 static int __init ir_jvc_decode_init(
void)
189 static void __exit ir_jvc_decode_exit(
void)