Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 261229
b: refs/heads/master
c: fe83036
h: refs/heads/master
i:
  261227: e66991d
v: v3
  • Loading branch information
Devin Heitmueller authored and Mauro Carvalho Chehab committed Jul 27, 2011
1 parent d20f5f2 commit d5d83b0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 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: ee4c3cd67b90cb42143e230485d3aad60768c551
refs/heads/master: fe8303647640e1183640a9b85cd60c4a981c7b4b
10 changes: 5 additions & 5 deletions trunk/drivers/media/common/tuners/xc4000.c
Original file line number Diff line number Diff line change
Expand Up @@ -883,7 +883,7 @@ static int load_scode(struct dvb_frontend *fe, unsigned int type,
u8 scode_buf[13];
u8 indirect_mode[5];

dprintk(1, "%s called\n", __func__);
dprintk(1, "%s called int_freq=%d\n", __func__, int_freq);

if (!int_freq) {
pos = seek_firmware(fe, type, id);
Expand Down Expand Up @@ -1186,7 +1186,7 @@ static int xc4000_set_params(struct dvb_frontend *fe,
dprintk(1, "%s() frequency=%d (Hz)\n", __func__, params->frequency);

/* FIXME: setup proper parameters */
if (check_firmware(fe, DTV8, 0, 5400) != XC_RESULT_SUCCESS) {
if (check_firmware(fe, DTV8, 0, priv->if_khz) != XC_RESULT_SUCCESS) {
return -EREMOTEIO;
}

Expand Down Expand Up @@ -1302,7 +1302,7 @@ static int xc4000_set_analog_params(struct dvb_frontend *fe,
__func__, params->frequency);

/* FIXME: setup proper parameters */
if (check_firmware(fe, DTV8, 0, 5400) != XC_RESULT_SUCCESS) {
if (check_firmware(fe, DTV8, 0, priv->if_khz) != XC_RESULT_SUCCESS) {
return -EREMOTEIO;
}

Expand Down Expand Up @@ -1424,7 +1424,7 @@ static int xc4000_init(struct dvb_frontend *fe)
struct xc4000_priv *priv = fe->tuner_priv;
dprintk(1, "%s()\n", __func__);

if (check_firmware(fe, DTV8, 0, 5400) != XC_RESULT_SUCCESS) {
if (check_firmware(fe, DTV8, 0, priv->if_khz) != XC_RESULT_SUCCESS) {
printk(KERN_ERR "xc4000: Unable to initialise tuner\n");
return -EREMOTEIO;
}
Expand Down Expand Up @@ -1547,7 +1547,7 @@ struct dvb_frontend *xc4000_attach(struct dvb_frontend *fe,

/* FIXME: For now, load the firmware at startup. We will remove this
before the code goes to production... */
check_firmware(fe, DTV8, 0, 5400);
check_firmware(fe, DTV8, 0, priv->if_khz);

return fe;
fail:
Expand Down

0 comments on commit d5d83b0

Please sign in to comment.