Lines Matching +full:pulse +full:- +full:code
1 // SPDX-License-Identifier: GPL-2.0-or-later
5 * Copyright 2012-2014 Imagination Technologies Ltd.
7 * From ir-sanyo-decoder.c:
10 * 13 bits Custom Code
11 * 13 bits NOT(Custom Code)
19 #include "img-ir-hw.h"
26 /* a repeat code has no data */ in img_ir_sanyo_scancode()
30 return -EINVAL; in img_ir_sanyo_scancode()
37 return -EINVAL; in img_ir_sanyo_scancode()
40 return -EINVAL; in img_ir_sanyo_scancode()
43 request->protocol = RC_PROTO_SANYO; in img_ir_sanyo_scancode()
44 request->scancode = addr << 8 | data; in img_ir_sanyo_scancode()
55 data = in->data & 0xff; in img_ir_sanyo_filter()
56 data_m = in->mask & 0xff; in img_ir_sanyo_filter()
59 if (in->data & 0xff700000) in img_ir_sanyo_filter()
60 return -EINVAL; in img_ir_sanyo_filter()
62 addr = (in->data >> 8) & 0x1fff; in img_ir_sanyo_filter()
63 addr_m = (in->mask >> 8) & 0x1fff; in img_ir_sanyo_filter()
66 out->data = (u64)data_inv << 34 | in img_ir_sanyo_filter()
70 out->mask = (u64)data_m << 34 | in img_ir_sanyo_filter()
89 .pulse = { 16 /* 9ms */ },
94 .pulse = { 1 /* 562.5 us */ },
99 .pulse = { 1 /* 562.5 us */ },
118 .minlen = 0, /* repeat code has no data */