[media] mce_kbd: add encoder

Split the protocol into two variants, one for keyboard and one for mouse
data.

Note that the mce_kbd protocol cannot be used on the igorplugusb, since
the IR is too long.

Signed-off-by: Sean Young <sean@mess.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
This commit is contained in:
Sean Young
2017-02-11 20:33:38 -02:00
committad av Mauro Carvalho Chehab
förälder e8f4818895
incheckning b73bc16d08
6 ändrade filer med 99 tillägg och 46 borttagningar

Visa fil

@@ -258,13 +258,13 @@ static void ir_raw_disable_protocols(struct rc_dev *dev, u64 protocols)
*/
int ir_raw_gen_manchester(struct ir_raw_event **ev, unsigned int max,
const struct ir_raw_timings_manchester *timings,
unsigned int n, unsigned int data)
unsigned int n, u64 data)
{
bool need_pulse;
unsigned int i;
u64 i;
int ret = -ENOBUFS;
i = 1 << (n - 1);
i = BIT_ULL(n - 1);
if (timings->leader) {
if (!max--)