summaryrefslogtreecommitdiff
path: root/drivers/media/usb/dvb-usb-v2/rtl28xxu.h
diff options
context:
space:
mode:
authorRodrigo Tartajo <rtarty@gmail.com>2013-04-21 03:02:12 +0400
committerMauro Carvalho Chehab <mchehab@redhat.com>2013-06-09 04:54:53 +0400
commit1e41413f9869c4a688b2f937ff50584bd62eeb31 (patch)
tree553cbbbc533ccff04816e64553f52c4f55c99056 /drivers/media/usb/dvb-usb-v2/rtl28xxu.h
parent1bddf1b3ac021feb9dafcc2c6ef7018453e22589 (diff)
downloadlinux-1e41413f9869c4a688b2f937ff50584bd62eeb31.tar.xz
[media] rtl2832u: restore ir remote control support
Hi, This patch uses the driver from openpli[1] as a template to restore the remote control support. I had to divert from the original to use the in kernel rc protocol decoder. The key repetition does, not seem to work but I cant find the problem in the driver. As a raw rc provider, no key table is hardcoded. Rodrigo. [1]: https://aur.archlinux.org/packages/dvb-usb-rtl2832u-openpli/?comments=all Signed-off-by: Rodrigo Tartajo <rtarty@gmail.com> Signed-off-by: Antti Palosaari <crope@iki.fi> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/usb/dvb-usb-v2/rtl28xxu.h')
-rw-r--r--drivers/media/usb/dvb-usb-v2/rtl28xxu.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/drivers/media/usb/dvb-usb-v2/rtl28xxu.h b/drivers/media/usb/dvb-usb-v2/rtl28xxu.h
index 533a33127289..0177b3871ba4 100644
--- a/drivers/media/usb/dvb-usb-v2/rtl28xxu.h
+++ b/drivers/media/usb/dvb-usb-v2/rtl28xxu.h
@@ -97,6 +97,17 @@ struct rtl28xxu_reg_val {
u8 val;
};
+enum OP{
+ OP_AND =0,
+ OP_OR
+};
+
+struct rtl28xxu_xreg_val {
+ u16 reg;
+ u8 op;
+ u8 mask;
+};
+
/*
* memory map
*