Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 285467
b: refs/heads/master
c: 27b7faf
h: refs/heads/master
i:
  285465: 7151455
  285463: 3c7895f
v: v3
  • Loading branch information
Mauro Carvalho Chehab committed Dec 31, 2011
1 parent 2e42db6 commit 7d8d361
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 40d6f2b83788cfc125867c8c7a7a0b32c72d9e54
refs/heads/master: 27b7faf13af878807ebff04322cad74b053510b4
5 changes: 3 additions & 2 deletions trunk/drivers/media/dvb/frontends/cx24113.c
Original file line number Diff line number Diff line change
Expand Up @@ -479,18 +479,19 @@ static int cx24113_init(struct dvb_frontend *fe)
static int cx24113_set_params(struct dvb_frontend *fe,
struct dvb_frontend_parameters *p)
{
struct dtv_frontend_properties *c = &fe->dtv_property_cache;
struct cx24113_state *state = fe->tuner_priv;
/* for a ROLL-OFF factor of 0.35, 0.2: 600, 0.25: 625 */
u32 roll_off = 675;
u32 bw;

bw = ((p->u.qpsk.symbol_rate/100) * roll_off) / 1000;
bw = ((c->symbol_rate/100) * roll_off) / 1000;
bw += (10000000/100) + 5;
bw /= 10;
bw += 1000;
cx24113_set_bandwidth(state, bw);

cx24113_set_frequency(state, p->frequency);
cx24113_set_frequency(state, c->frequency);
msleep(5);
return cx24113_get_status(fe, &bw);
}
Expand Down

0 comments on commit 7d8d361

Please sign in to comment.