Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 76657
b: refs/heads/master
c: c907627
h: refs/heads/master
i:
  76655: ef4eebf
v: v3
  • Loading branch information
Michael Krufky authored and Mauro Carvalho Chehab committed Jan 25, 2008
1 parent 2f1728a commit d5268e7
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 2 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: fe0bf6d783d8057bd3dd0dd69613a390d6986c47
refs/heads/master: c90762799c42df203fc2c9c1a2ac39f154f8faca
9 changes: 8 additions & 1 deletion trunk/drivers/media/video/tda8290.c
Original file line number Diff line number Diff line change
Expand Up @@ -688,10 +688,17 @@ struct dvb_frontend *tda829x_attach(struct dvb_frontend *fe,
sizeof(struct analog_demod_ops));
}

if (tda829x_find_tuner(fe) < 0)
if ((!(cfg) || (TDA829X_PROBE_TUNER == cfg->probe_tuner)) &&
(tda829x_find_tuner(fe) < 0))
goto fail;

switch (priv->ver) {
case TDA8290:
name = "tda8290";
break;
case TDA8295:
name = "tda8295";
break;
case TDA8290 | TDA8275:
name = "tda8290+75";
break;
Expand Down
4 changes: 4 additions & 0 deletions trunk/drivers/media/video/tda8290.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@
struct tda829x_config {
unsigned int *lna_cfg;
int (*tuner_callback) (void *dev, int command, int arg);

unsigned int probe_tuner:1;
#define TDA829X_PROBE_TUNER 0
#define TDA829X_DONT_PROBE 1
};

#if defined(CONFIG_TUNER_TDA8290) || (defined(CONFIG_TUNER_TDA8290_MODULE) && defined(MODULE))
Expand Down

0 comments on commit d5268e7

Please sign in to comment.