Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 271655
b: refs/heads/master
c: 2d84ca2
h: refs/heads/master
i:
  271653: 90b64af
  271651: cd66bce
  271647: f4c749c
v: v3
  • Loading branch information
Jose Alberto Reguero authored and Mauro Carvalho Chehab committed Aug 7, 2011
1 parent ce46d42 commit c4d52ae
Show file tree
Hide file tree
Showing 2 changed files with 7 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: d1520c58eb84ad1ec973a257cd835c948215aab5
refs/heads/master: 2d84ca215f6d67f9ba7b3d4ab32265e085229662
8 changes: 6 additions & 2 deletions trunk/drivers/media/common/tuners/tda827x.c
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ static int tda827xo_set_params(struct dvb_frontend *fe,
if_freq = 5000000;
break;
}
tuner_freq = params->frequency + if_freq;
tuner_freq = params->frequency;

i = 0;
while (tda827x_table[i].lomax < tuner_freq) {
Expand All @@ -185,6 +185,8 @@ static int tda827xo_set_params(struct dvb_frontend *fe,
i++;
}

tuner_freq += if_freq;

N = ((tuner_freq + 125000) / 250000) << (tda827x_table[i].spd + 2);
buf[0] = 0;
buf[1] = (N>>8) | 0x40;
Expand Down Expand Up @@ -540,7 +542,7 @@ static int tda827xa_set_params(struct dvb_frontend *fe,
if_freq = 5000000;
break;
}
tuner_freq = params->frequency + if_freq;
tuner_freq = params->frequency;

if (fe->ops.info.type == FE_QAM) {
dprintk("%s select tda827xa_dvbc\n", __func__);
Expand All @@ -554,6 +556,8 @@ static int tda827xa_set_params(struct dvb_frontend *fe,
i++;
}

tuner_freq += if_freq;

N = ((tuner_freq + 31250) / 62500) << frequency_map[i].spd;
buf[0] = 0; // subaddress
buf[1] = N >> 8;
Expand Down

0 comments on commit c4d52ae

Please sign in to comment.