aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/dvb-frontends/si2168.c
diff options
context:
space:
mode:
authorOlli Salonen <olli.salonen@iki.fi>2014-07-17 18:43:27 (GMT)
committerMauro Carvalho Chehab <m.chehab@samsung.com>2014-07-22 00:21:53 (GMT)
commit43911776faf04599f48732403959d510bde03815 (patch)
treee1d73122f099ad693b0c3c2a1e1e5353719609d1 /drivers/media/dvb-frontends/si2168.c
parent32bf88182d8babfa205e2bd5cbaa992cd1c75511 (diff)
[media] si2168: improve scanning performance
Improve scanning performance by setting property 0301 with a value from Windows driver. Signed-off-by: Olli Salonen <olli.salonen@iki.fi> Signed-off-by: Antti Palosaari <crope@iki.fi> Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
Diffstat (limited to 'drivers/media/dvb-frontends/si2168.c')
-rw-r--r--drivers/media/dvb-frontends/si2168.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/media/dvb-frontends/si2168.c b/drivers/media/dvb-frontends/si2168.c
index 5075189..303a441 100644
--- a/drivers/media/dvb-frontends/si2168.c
+++ b/drivers/media/dvb-frontends/si2168.c
@@ -325,6 +325,13 @@ static int si2168_set_frontend(struct dvb_frontend *fe)
if (ret)
goto err;
+ memcpy(cmd.args, "\x14\x00\x01\x03\x0c\x00", 6);
+ cmd.wlen = 6;
+ cmd.rlen = 4;
+ ret = si2168_cmd_execute(s, &cmd);
+ if (ret)
+ goto err;
+
memcpy(cmd.args, "\x85", 1);
cmd.wlen = 1;
cmd.rlen = 1;

Privacy Policy