Commit f4d90518 authored by Matthias Schwarzott's avatar Matthias Schwarzott Committed by Mauro Carvalho Chehab

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: default avatarMatthias Schwarzott <zzam@gentoo.org>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@s-opensource.com>
parent ec278f87
...@@ -821,7 +821,6 @@ static int si2165_set_frontend_dvbc(struct dvb_frontend *fe) ...@@ -821,7 +821,6 @@ static int si2165_set_frontend_dvbc(struct dvb_frontend *fe)
int ret; int ret;
struct dtv_frontend_properties *p = &fe->dtv_property_cache; struct dtv_frontend_properties *p = &fe->dtv_property_cache;
const u32 dvb_rate = p->symbol_rate; const u32 dvb_rate = p->symbol_rate;
const u32 bw_hz = p->bandwidth_hz;
if (!state->has_dvbc) if (!state->has_dvbc)
return -EINVAL; return -EINVAL;
...@@ -838,7 +837,7 @@ static int si2165_set_frontend_dvbc(struct dvb_frontend *fe) ...@@ -838,7 +837,7 @@ static int si2165_set_frontend_dvbc(struct dvb_frontend *fe)
if (ret < 0) if (ret < 0)
return ret; return ret;
ret = si2165_writereg32(state, REG_LOCK_TIMEOUT, bw_hz); ret = si2165_writereg32(state, REG_LOCK_TIMEOUT, 0x007a1200);
if (ret < 0) if (ret < 0)
return ret; return ret;
......
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