Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 261242
b: refs/heads/master
c: f0ef7c8
h: refs/heads/master
v: v3
  • Loading branch information
Istvan Varga authored and Mauro Carvalho Chehab committed Jul 27, 2011
1 parent e7afe05 commit cb27e2d
Show file tree
Hide file tree
Showing 2 changed files with 16 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: 4911085fa3342d2ccb04f84c2987305b86785ebf
refs/heads/master: f0ef7c88ca919912011593d2392a59c2fde04748
17 changes: 15 additions & 2 deletions trunk/drivers/media/common/tuners/xc4000.c
Original file line number Diff line number Diff line change
Expand Up @@ -1184,15 +1184,28 @@ static int xc4000_set_params(struct dvb_frontend *fe,
type = DTV6;
break;
case BANDWIDTH_7_MHZ:
printk(KERN_ERR "xc4000 bandwidth 7MHz not supported\n");
priv->bandwidth = BANDWIDTH_7_MHZ;
priv->video_standard = XC4000_DTV7;
priv->freq_hz = params->frequency - 2250000;
type = DTV7;
return -EINVAL;
break;
case BANDWIDTH_8_MHZ:
priv->bandwidth = BANDWIDTH_8_MHZ;
priv->video_standard = XC4000_DTV8;
priv->freq_hz = params->frequency - 2750000;
type = DTV8;
break;
case BANDWIDTH_AUTO:
if (params->frequency < 400000000) {
priv->bandwidth = BANDWIDTH_7_MHZ;
priv->freq_hz = params->frequency - 2250000;
} else {
priv->bandwidth = BANDWIDTH_8_MHZ;
priv->freq_hz = params->frequency - 2750000;
}
priv->video_standard = XC4000_DTV7_8;
type = DTV78;
break;
default:
printk(KERN_ERR "xc4000 bandwidth not set!\n");
return -EINVAL;
Expand Down

0 comments on commit cb27e2d

Please sign in to comment.