mirror of
https://github.com/torvalds/linux.git
synced 2026-04-25 01:52:32 -04:00
media: lirc: scancode rc devices should have a lirc device too
Now that the lirc interface supports scancodes, RC scancode devices can also have a lirc device. The only receiving feature they will have enabled is LIRC_CAN_REC_SCANCODE. Note that CEC devices have no lirc device, since they can be controlled from their /dev/cecN chardev. Signed-off-by: Sean Young <sean@mess.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
This commit is contained in:
committed by
Mauro Carvalho Chehab
parent
7d402db89b
commit
62d6f1994b
@@ -57,7 +57,10 @@ int ir_lirc_register(struct rc_dev *dev)
|
||||
dev->lirc_dev.release = lirc_release_device;
|
||||
dev->send_mode = LIRC_MODE_PULSE;
|
||||
|
||||
dev->rec_mode = LIRC_MODE_MODE2;
|
||||
if (dev->driver_type == RC_DRIVER_SCANCODE)
|
||||
dev->rec_mode = LIRC_MODE_SCANCODE;
|
||||
else
|
||||
dev->rec_mode = LIRC_MODE_MODE2;
|
||||
|
||||
if (dev->driver_type == RC_DRIVER_IR_RAW) {
|
||||
if (kfifo_alloc(&dev->rawir, MAX_IR_EVENT_SIZE, GFP_KERNEL))
|
||||
|
||||
Reference in New Issue
Block a user