Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 285479
b: refs/heads/master
c: 66e6cd5
h: refs/heads/master
i:
  285477: 47090cb
  285475: 7adaa4f
  285471: 86c58ee
v: v3
  • Loading branch information
Mauro Carvalho Chehab committed Dec 31, 2011
1 parent e09f598 commit 1482258
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: 3608dbb6dcf31e9cd25d43d999b79819837068c1
refs/heads/master: 66e6cd596c9921d5eb2ea6e6443dd98b2a2782c7
5 changes: 3 additions & 2 deletions trunk/drivers/media/dvb/frontends/tda826x.c
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ static int tda826x_sleep(struct dvb_frontend *fe)

static int tda826x_set_params(struct dvb_frontend *fe, struct dvb_frontend_parameters *params)
{
struct dtv_frontend_properties *p = &fe->dtv_property_cache;
struct tda826x_priv *priv = fe->tuner_priv;
int ret;
u32 div;
Expand All @@ -83,11 +84,11 @@ static int tda826x_set_params(struct dvb_frontend *fe, struct dvb_frontend_param

dprintk("%s:\n", __func__);

div = (params->frequency + (1000-1)) / 1000;
div = (p->frequency + (1000-1)) / 1000;

/* BW = ((1 + RO) * SR/2 + 5) * 1.3 [SR in MSPS, BW in MHz] */
/* with R0 = 0.35 and some transformations: */
ksyms = params->u.qpsk.symbol_rate / 1000;
ksyms = p->symbol_rate / 1000;
bandwidth = (878 * ksyms + 6500000) / 1000000 + 1;
if (bandwidth < 5)
bandwidth = 5;
Expand Down

0 comments on commit 1482258

Please sign in to comment.