Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 13401
b: refs/heads/master
c: 07345f5
h: refs/heads/master
i:
  13399: e958fa5
v: v3
  • Loading branch information
Hartmut Hackmann authored and Linus Torvalds committed Nov 9, 2005
1 parent 95c033d commit 0c638e6
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 12 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: 5d5c9904e56ae39ff71b86dc5046e24601bff00f
refs/heads/master: 07345f5d6a92bc1184ca8b05069ec1cd3514fe11
23 changes: 12 additions & 11 deletions trunk/drivers/media/video/tuner-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -362,29 +362,30 @@ static int tuner_attach(struct i2c_adapter *adap, int addr, int kind)
/* TEA5767 autodetection code - only for addr = 0xc0 */
if (!no_autodetect) {
switch (addr) {
case 0x60:
if (tea5767_autodetection(&t->i2c) != EINVAL) {
t->type = TUNER_TEA5767;
t->mode_mask = T_RADIO;
t->mode = T_STANDBY;
t->freq = 87.5 * 16; /* Sets freq to FM range */
default_mode_mask &= ~T_RADIO;

goto register_client;
}
case 0x42:
case 0x43:
case 0x4a:
case 0x4b:
/* If chip is not tda8290, don't register.
since it can be tda9887*/
if (tda8290_probe(&t->i2c) != 0) {
tuner_dbg("chip at addr %x is not a tda8290\n", addr);
kfree(t);
return 0;
}
break;
case 0x60:
if (tea5767_autodetection(&t->i2c) != EINVAL) {
t->type = TUNER_TEA5767;
t->mode_mask = T_RADIO;
t->mode = T_STANDBY;
t->freq = 87.5 * 16; /* Sets freq to FM range */
default_mode_mask &= ~T_RADIO;

goto register_client;
}
break;
}

}

/* Initializes only the first adapter found */
Expand Down

0 comments on commit 0c638e6

Please sign in to comment.