summaryrefslogtreecommitdiffstats
path: root/drivers/media/usb/dvb-usb-v2/rtl28xxu.h
diff options
context:
space:
mode:
authorRodrigo Tartajo2013-04-21 01:02:12 +0200
committerMauro Carvalho Chehab2013-06-09 02:54:53 +0200
commit1e41413f9869c4a688b2f937ff50584bd62eeb31 (patch)
tree553cbbbc533ccff04816e64553f52c4f55c99056 /drivers/media/usb/dvb-usb-v2/rtl28xxu.h
parent[media] media: Rename media_entity_remote_source to media_entity_remote_pad (diff)
downloadkernel-qcow2-linux-1e41413f9869c4a688b2f937ff50584bd62eeb31.tar.gz
kernel-qcow2-linux-1e41413f9869c4a688b2f937ff50584bd62eeb31.tar.xz
kernel-qcow2-linux-1e41413f9869c4a688b2f937ff50584bd62eeb31.zip
[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
*