Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 192705
b: refs/heads/master
c: 0fb84ce
h: refs/heads/master
i:
  192703: 8df3c76
v: v3
  • Loading branch information
Mauro Carvalho Chehab committed May 18, 2010
1 parent c5a1bc4 commit 1ca3de7
Show file tree
Hide file tree
Showing 2 changed files with 6 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: e8a4845d2a797958b1e0cb6acc5e826985ee90ce
refs/heads/master: 0fb84ce0dbffee26dc0934496e6bcdce853fa0d0
5 changes: 5 additions & 0 deletions trunk/drivers/media/common/tuners/tuner-xc2028.c
Original file line number Diff line number Diff line change
Expand Up @@ -811,6 +811,10 @@ static int check_firmware(struct dvb_frontend *fe, unsigned int type,
hwmodel, (version & 0xf000) >> 12, (version & 0xf00) >> 8,
(version & 0xf0) >> 4, version & 0xf);


if (priv->ctrl.read_not_reliable)
goto read_not_reliable;

/* Check firmware version against what we downloaded. */
if (priv->firm_version != ((version & 0xf0) << 4 | (version & 0x0f))) {
if (!priv->ctrl.read_not_reliable) {
Expand All @@ -834,6 +838,7 @@ static int check_firmware(struct dvb_frontend *fe, unsigned int type,
goto fail;
}

read_not_reliable:
memcpy(&priv->cur_fw, &new_fw, sizeof(priv->cur_fw));

/*
Expand Down

0 comments on commit 1ca3de7

Please sign in to comment.