Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 76614
b: refs/heads/master
c: 3dfefc5
h: refs/heads/master
v: v3
  • Loading branch information
Chris Pascoe authored and Mauro Carvalho Chehab committed Jan 25, 2008
1 parent 48a8c76 commit 82d37e3
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 9 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: 897b842296f1285a6b58e9170f7017022e2e2603
refs/heads/master: 3dfefc50ff45744ffb97ce0bf9c213a3fb6d5d3d
23 changes: 15 additions & 8 deletions trunk/drivers/media/video/tuner-xc2028.c
Original file line number Diff line number Diff line change
Expand Up @@ -998,20 +998,27 @@ static int xc2028_set_params(struct dvb_frontend *fe,
return -EINVAL;
}

/* FIXME:
There are two Scodes that will never be selected:
DTV78 ZARLINK456, DTV78 DIBCOM52
When it should opt for DTV78 instead of DTV7 or DTV8?
*/
switch (bw) {
case BANDWIDTH_8_MHZ:
type |= DTV8 | F8MHZ;
if (p->frequency < 470000000)
priv->ctrl.vhfbw7 = 0;
else
priv->ctrl.uhfbw8 = 1;
type |= (priv->ctrl.vhfbw7 && priv->ctrl.uhfbw8) ? DTV78 : DTV8;
type |= F8MHZ;
break;
case BANDWIDTH_7_MHZ:
type |= DTV7 | F8MHZ;
if (p->frequency < 470000000)
priv->ctrl.vhfbw7 = 1;
else
priv->ctrl.uhfbw8 = 0;
type |= (priv->ctrl.vhfbw7 && priv->ctrl.uhfbw8) ? DTV78 : DTV7;
type |= F8MHZ;
break;
case BANDWIDTH_6_MHZ:
type |= DTV6 ;
type |= DTV6;
priv->ctrl.vhfbw7 = 0;
priv->ctrl.uhfbw8 = 0;
break;
default:
tuner_err("error: bandwidth not supported.\n");
Expand Down
2 changes: 2 additions & 0 deletions trunk/drivers/media/video/tuner-xc2028.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ struct xc2028_ctrl {
unsigned int mts :1;
unsigned int d2633 :1;
unsigned int input1:1;
unsigned int vhfbw7:1;
unsigned int uhfbw8:1;
unsigned int demod;
};

Expand Down

0 comments on commit 82d37e3

Please sign in to comment.