Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 76423
b: refs/heads/master
c: 5403bba
h: refs/heads/master
i:
  76421: 249e45f
  76419: 838ab13
  76415: 9f23e8a
v: v3
  • Loading branch information
Michel Ludwig authored and Mauro Carvalho Chehab committed Jan 25, 2008
1 parent 3f6d5e0 commit f43b632
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: a37b4c9bc87a74ed5003c385eae264fc0acf6b35
refs/heads/master: 5403bbae9bfebe1f2df3a022c83e54f70906cefe
20 changes: 20 additions & 0 deletions trunk/drivers/media/video/tuner-xc2028.c
Original file line number Diff line number Diff line change
Expand Up @@ -461,6 +461,23 @@ static int load_firmware(struct dvb_frontend *fe, unsigned int type,
}
continue;
}
if (size >= 0xff00) {
switch (size) {
case 0xff00:
rc = priv->tuner_callback(priv->video_dev,
XC2028_RESET_CLK, 0);
if (rc < 0) {
tuner_err("Error at RESET code %d\n",
(*p) & 0x7f);
return -EINVAL;
}
default:
tuner_info("Invalid RESET code %d\n",
size & 0x7f);
return -EINVAL;

}
}

/* Checks for a sleep command */
if (size & 0x8000) {
Expand Down Expand Up @@ -627,6 +644,9 @@ static int check_firmware(struct dvb_frontend *fe, enum tuner_mode new_mode,
priv->bandwidth = bandwidth;
}

if (!change_digital_bandwidth && priv->mode == T_DIGITAL_TV)
return 0;

/* Load INIT1, if needed */
tuner_dbg("Load init1 firmware, if exists\n");
type0 = BASE | INIT1;
Expand Down

0 comments on commit f43b632

Please sign in to comment.