[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:

committad av
Mauro Carvalho Chehab

förälder
e8f4818895
incheckning
b73bc16d08
@@ -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--)
|
||||
|
Referens i nytt ärende
Block a user