media: rc: new driver for early iMon device
Subsystems (4)
Sean Young
maintainerPATCH v2 1/1 media: rc: new driver for early iMon device
These devices were supported by the lirc_imon.c driver which was removed from staging in commit f41003a23a02 ("[media] staging: lirc_imon: port remaining usb ids to imon and remove").
Signed-off-by Sean Young <[email protected]>
--- MAINTAINERS | 7 ++ drivers/media/rc/Kconfig | 12 +++ drivers/media/rc/Makefile | 1 + drivers/media/rc/imon_raw.c | 199 ++++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 219 insertions(+) create mode 100644 drivers/media/rc/imon_raw.c
MAINTAINERS +7 -0
@@ -6903,6 +6903,13 @@ M: James Hogan <[email protected]> S: Maintained F: drivers/media/rc/img-ir/ +IMON SOUNDGRAPH USB IR RECEIVER +M: Sean Young <[email protected]> +L: [email protected] +S: Maintained +F: drivers/media/rc/imon_raw.c +F: drivers/media/rc/imon.c + IMS TWINTURBO FRAMEBUFFER DRIVER L: [email protected] S: Orphan
drivers/media/rc/Kconfig +12 -0
@@ -175,6 +175,18 @@ config IR_IMON To compile this driver as a module, choose M here: the module will be called imon. +config IR_IMON_RAW + tristate "SoundGraph iMON Receiver (early raw IR models)" + depends on USB_ARCH_HAS_HCD + depends on RC_CORE + select USB + ---help--- + Say Y here if you want to use a SoundGraph iMON IR Receiver, + early raw models. + + To compile this driver as a module, choose M here: the + module will be called imon_raw. + config IR_MCEUSB tristate "Windows Media Center Ed. eHome Infrared Transceiver" depends on USB_ARCH_HAS_HCD
drivers/media/rc/Makefile +1 -0
@@ -19,6 +19,7 @@ obj-$(CONFIG_IR_XMP_DECODER) += ir-xmp-decoder.o obj-$(CONFIG_RC_ATI_REMOTE) += ati_remote.o obj-$(CONFIG_IR_HIX5HD2) += ir-hix5hd2.o obj-$(CONFIG_IR_IMON) += imon.o +obj-$(CONFIG_IR_IMON_RAW) += imon_raw.o obj-$(CONFIG_IR_ITE_CIR) += ite-cir.o obj-$(CONFIG_IR_MCEUSB) += mceusb.o obj-$(CONFIG_IR_FINTEK) += fintek-cir.o
drivers/media/rc/imon_raw.c new file +199 -0
199 lines not on this page · raw message
Signature · 1 line
2.14.3
Sean Young
maintainerPATCH 1/1 media: rc: oops in ir_timer_keyup after device unplug
If there is IR in the raw kfifo when ir_raw_event_unregister() is called, then kthread_stop() causes ir_raw_event_thread to be scheduled, decode some scancodes and re-arm timer_keyup. The timer_keyup then fires when the rc device is long gone.
Signed-off-by Sean Young <[email protected]>
--- drivers/media/rc/rc-main.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
drivers/media/rc/rc-main.c +3 -3
@@ -1932,12 +1932,12 @@ void rc_unregister_device(struct rc_dev *dev)if (!dev)return ; -del_timer_sync (&dev->timer_keyup); -del_timer_sync (&dev->timer_repeat); -if (dev->driver_type ==RC_DRIVER_IR_RAW )ir_raw_event_unregister (dev); +del_timer_sync (&dev->timer_keyup); +del_timer_sync (&dev->timer_repeat); +rc_free_rx_device (dev);mutex_lock (&dev->lock);
Signature · 1 line
2.14.3