]> git.baikalelectronics.ru Git - kernel.git/commit
media: rtl28xxu: fix idle handling
authorSean Young <sean@mess.org>
Sat, 31 Aug 2019 08:37:39 +0000 (05:37 -0300)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Mon, 7 Oct 2019 10:42:43 +0000 (07:42 -0300)
commit74460a468d05f7bad429d26fe418bd5c912bf728
tree242c4387ca17398ca4a6b172895f5c6372c4a705
parent20b0d6949b14f202c85240d31928bdae3b0a3b16
media: rtl28xxu: fix idle handling

Currently the IR receiver is put into idle mode after each interrupt.
However longer IR like NEC can be distributed over multiple interrupts,
so putting the IR into idle in the middle of such a message will break
decoding.

Every IR message has a trailing space of 0xbf (one less than
IR_IDE_LEN{0,1} which is programmed to 0xc0). So, set the timeout to that
value and rc-core will put the IR receiver into idle mode automatically.

Thanks to Jan Pieter van Woerkom <jp@jpvw.nl> for providing the hardware.

Signed-off-by: Sean Young <sean@mess.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
drivers/media/usb/dvb-usb-v2/dvb_usb.h
drivers/media/usb/dvb-usb-v2/dvb_usb_core.c
drivers/media/usb/dvb-usb-v2/rtl28xxu.c