Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 285341
b: refs/heads/master
c: 0433cd2
h: refs/heads/master
i:
  285339: f88fdbc
v: v3
  • Loading branch information
Mauro Carvalho Chehab committed Dec 9, 2011
1 parent cdfaf4a commit 8458560
Show file tree
Hide file tree
Showing 2 changed files with 9 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: 78bd3dc8dafc48f11fb761bc01b16e045638fec8
refs/heads/master: 0433cd28f3a421e0be708c856c7d0c66d3f60bd7
10 changes: 8 additions & 2 deletions trunk/drivers/media/common/tuners/xc5000.c
Original file line number Diff line number Diff line change
Expand Up @@ -676,8 +676,10 @@ static int xc5000_set_params(struct dvb_frontend *fe,
priv->freq_hz = params->frequency - 1750000;
break;
case BANDWIDTH_7_MHZ:
printk(KERN_ERR "xc5000 bandwidth 7MHz not supported\n");
return -EINVAL;
priv->bandwidth = BANDWIDTH_7_MHZ;
priv->video_standard = DTV7;
priv->freq_hz = params->frequency - 2250000;
break;
case BANDWIDTH_8_MHZ:
priv->bandwidth = BANDWIDTH_8_MHZ;
priv->video_standard = DTV8;
Expand Down Expand Up @@ -715,6 +717,10 @@ static int xc5000_set_params(struct dvb_frontend *fe,
priv->bandwidth = BANDWIDTH_6_MHZ;
priv->video_standard = DTV6;
priv->freq_hz = params->frequency - 1750000;
} else if (bw <= 7000000) {
priv->bandwidth = BANDWIDTH_7_MHZ;
priv->video_standard = DTV7;
priv->freq_hz = params->frequency - 2250000;
} else {
priv->bandwidth = BANDWIDTH_8_MHZ;
priv->video_standard = DTV7_8;
Expand Down

0 comments on commit 8458560

Please sign in to comment.