diff options
Diffstat (limited to 'drivers/media/usb/dvb-usb-v2/rtl28xxu.c')
-rw-r--r-- | drivers/media/usb/dvb-usb-v2/rtl28xxu.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/media/usb/dvb-usb-v2/rtl28xxu.c b/drivers/media/usb/dvb-usb-v2/rtl28xxu.c index a331af19b3a7..5e223e807de1 100644 --- a/drivers/media/usb/dvb-usb-v2/rtl28xxu.c +++ b/drivers/media/usb/dvb-usb-v2/rtl28xxu.c | |||
@@ -35,6 +35,9 @@ | |||
35 | #include "tua9001.h" | 35 | #include "tua9001.h" |
36 | #include "r820t.h" | 36 | #include "r820t.h" |
37 | 37 | ||
38 | static int rtl28xxu_disable_rc; | ||
39 | module_param_named(disable_rc, rtl28xxu_disable_rc, int, 0644); | ||
40 | MODULE_PARM_DESC(disable_rc, "disable RTL2832U remote controller"); | ||
38 | DVB_DEFINE_MOD_OPT_ADAPTER_NR(adapter_nr); | 41 | DVB_DEFINE_MOD_OPT_ADAPTER_NR(adapter_nr); |
39 | 42 | ||
40 | static int rtl28xxu_ctrl_msg(struct dvb_usb_device *d, struct rtl28xxu_req *req) | 43 | static int rtl28xxu_ctrl_msg(struct dvb_usb_device *d, struct rtl28xxu_req *req) |
@@ -1322,6 +1325,10 @@ err: | |||
1322 | static int rtl2832u_get_rc_config(struct dvb_usb_device *d, | 1325 | static int rtl2832u_get_rc_config(struct dvb_usb_device *d, |
1323 | struct dvb_usb_rc *rc) | 1326 | struct dvb_usb_rc *rc) |
1324 | { | 1327 | { |
1328 | /* disable IR interrupts in order to avoid SDR sample loss */ | ||
1329 | if (rtl28xxu_disable_rc) | ||
1330 | return rtl28xx_wr_reg(d, IR_RX_IE, 0x00); | ||
1331 | |||
1325 | /* load empty to enable rc */ | 1332 | /* load empty to enable rc */ |
1326 | if (!rc->map_name) | 1333 | if (!rc->map_name) |
1327 | rc->map_name = RC_MAP_EMPTY; | 1334 | rc->map_name = RC_MAP_EMPTY; |