Commit 94b5fa6c authored by Antti Palosaari's avatar Antti Palosaari Committed by Mauro Carvalho Chehab

[media] rtl28xxu: add module parameter to disable IR

Disable IR interrupts in order to avoid SDR sample loss.
IR interrupts causes some extra load for device and it seems
be one reason to loss samples when sampling rate is high.
Signed-off-by: default avatarAntti Palosaari <crope@iki.fi>
Signed-off-by: default avatarMauro Carvalho Chehab <m.chehab@samsung.com>
parent 96a5b3a8
...@@ -35,6 +35,9 @@ ...@@ -35,6 +35,9 @@
#include "tua9001.h" #include "tua9001.h"
#include "r820t.h" #include "r820t.h"
static int rtl28xxu_disable_rc;
module_param_named(disable_rc, rtl28xxu_disable_rc, int, 0644);
MODULE_PARM_DESC(disable_rc, "disable RTL2832U remote controller");
DVB_DEFINE_MOD_OPT_ADAPTER_NR(adapter_nr); DVB_DEFINE_MOD_OPT_ADAPTER_NR(adapter_nr);
static int rtl28xxu_ctrl_msg(struct dvb_usb_device *d, struct rtl28xxu_req *req) static int rtl28xxu_ctrl_msg(struct dvb_usb_device *d, struct rtl28xxu_req *req)
...@@ -1322,6 +1325,10 @@ static int rtl2832u_rc_query(struct dvb_usb_device *d) ...@@ -1322,6 +1325,10 @@ static int rtl2832u_rc_query(struct dvb_usb_device *d)
static int rtl2832u_get_rc_config(struct dvb_usb_device *d, static int rtl2832u_get_rc_config(struct dvb_usb_device *d,
struct dvb_usb_rc *rc) struct dvb_usb_rc *rc)
{ {
/* disable IR interrupts in order to avoid SDR sample loss */
if (rtl28xxu_disable_rc)
return rtl28xx_wr_reg(d, IR_RX_IE, 0x00);
/* load empty to enable rc */ /* load empty to enable rc */
if (!rc->map_name) if (!rc->map_name)
rc->map_name = RC_MAP_EMPTY; rc->map_name = RC_MAP_EMPTY;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment