Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 76647
b: refs/heads/master
c: ef207fe
h: refs/heads/master
i:
  76645: 3c30d83
  76643: 591567b
  76639: 01d6b18
v: v3
  • Loading branch information
Chris Pascoe authored and Mauro Carvalho Chehab committed Jan 25, 2008
1 parent 467396b commit ffe4f0a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 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: 0e614cd1a5a09b36a3b6d0fff8a08a97800d3cce
refs/heads/master: ef207feddf826f099562b239543c447e68991b84
11 changes: 7 additions & 4 deletions trunk/drivers/media/video/tuner-xc2028.c
Original file line number Diff line number Diff line change
Expand Up @@ -395,6 +395,7 @@ static int seek_firmware(struct dvb_frontend *fe, unsigned int type,
{
struct xc2028_data *priv = fe->tuner_priv;
int i, best_i = -1, best_nr_matches = 0;
unsigned int ign_firm_type_mask = 0;

tuner_dbg("%s called, want type=", __FUNCTION__);
if (debug) {
Expand All @@ -412,16 +413,18 @@ static int seek_firmware(struct dvb_frontend *fe, unsigned int type,

if (type & BASE)
type &= BASE_TYPES;
else if (type & SCODE)
else if (type & SCODE) {
type &= SCODE_TYPES;
else if (type & DTV_TYPES)
ign_firm_type_mask = HAS_IF;
} else if (type & DTV_TYPES)
type &= DTV_TYPES;
else if (type & STD_SPECIFIC_TYPES)
type &= STD_SPECIFIC_TYPES;

/* Seek for exact match */
for (i = 0; i < priv->firm_size; i++) {
if ((type == priv->firm[i].type) && (*id == priv->firm[i].id))
if ((type == (priv->firm[i].type & ~ign_firm_type_mask)) &&
(*id == priv->firm[i].id))
goto found;
}

Expand All @@ -430,7 +433,7 @@ static int seek_firmware(struct dvb_frontend *fe, unsigned int type,
v4l2_std_id match_mask;
int nr_matches;

if (type != priv->firm[i].type)
if (type != (priv->firm[i].type & ~ign_firm_type_mask))
continue;

match_mask = *id & priv->firm[i].id;
Expand Down

0 comments on commit ffe4f0a

Please sign in to comment.