summaryrefslogtreecommitdiff
path: root/drivers/media/dvb-frontends
diff options
context:
space:
mode:
authorMatthias Schwarzott <zzam@gentoo.org>2017-11-05 09:25:03 -0500
committerMauro Carvalho Chehab <mchehab@s-opensource.com>2017-12-12 05:35:36 -0500
commitf4d90518920952c0c7deae0f69dcaab32ad1735d (patch)
treec9d4013ad18309d38786ddbdc3756a7a506923e4 /drivers/media/dvb-frontends
parentec278f879a004db8865bdb53ef8e2b0ba6382435 (diff)
media: si2165: Write const value for lock timeout
The lock timeout should not depend on the bandwidth. It should be either constant or depend on xtal frequency. Signed-off-by: Matthias Schwarzott <zzam@gentoo.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Diffstat (limited to 'drivers/media/dvb-frontends')
-rw-r--r--drivers/media/dvb-frontends/si2165.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/media/dvb-frontends/si2165.c b/drivers/media/dvb-frontends/si2165.c
index b2541c1fe554..7f22f5bdc36a 100644
--- a/drivers/media/dvb-frontends/si2165.c
+++ b/drivers/media/dvb-frontends/si2165.c
@@ -821,7 +821,6 @@ static int si2165_set_frontend_dvbc(struct dvb_frontend *fe)
int ret;
struct dtv_frontend_properties *p = &fe->dtv_property_cache;
const u32 dvb_rate = p->symbol_rate;
- const u32 bw_hz = p->bandwidth_hz;
if (!state->has_dvbc)
return -EINVAL;
@@ -838,7 +837,7 @@ static int si2165_set_frontend_dvbc(struct dvb_frontend *fe)
if (ret < 0)
return ret;
- ret = si2165_writereg32(state, REG_LOCK_TIMEOUT, bw_hz);
+ ret = si2165_writereg32(state, REG_LOCK_TIMEOUT, 0x007a1200);
if (ret < 0)
return ret;