diff options
Diffstat (limited to 'drivers/media/video/tuner-core.c')
-rw-r--r-- | drivers/media/video/tuner-core.c | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/drivers/media/video/tuner-core.c b/drivers/media/video/tuner-core.c index b9f1acf30caf..d4786b331467 100644 --- a/drivers/media/video/tuner-core.c +++ b/drivers/media/video/tuner-core.c | |||
@@ -364,7 +364,8 @@ static int tuner_attach(struct i2c_adapter *adap, int addr, int kind) | |||
364 | } | 364 | } |
365 | /* TEA5767 autodetection code - only for addr = 0xc0 */ | 365 | /* TEA5767 autodetection code - only for addr = 0xc0 */ |
366 | if (!no_autodetect) { | 366 | if (!no_autodetect) { |
367 | if (addr == 0x60) { | 367 | switch (addr) { |
368 | case 0x60: | ||
368 | if (tea5767_autodetection(&t->i2c) != EINVAL) { | 369 | if (tea5767_autodetection(&t->i2c) != EINVAL) { |
369 | t->type = TUNER_TEA5767; | 370 | t->type = TUNER_TEA5767; |
370 | t->mode_mask = T_RADIO; | 371 | t->mode_mask = T_RADIO; |
@@ -376,7 +377,17 @@ static int tuner_attach(struct i2c_adapter *adap, int addr, int kind) | |||
376 | set_type(&t->i2c,t->type, t->mode_mask); | 377 | set_type(&t->i2c,t->type, t->mode_mask); |
377 | return 0; | 378 | return 0; |
378 | } | 379 | } |
380 | case 0x42: | ||
381 | case 0x43: | ||
382 | case 0x4a: | ||
383 | case 0x44: | ||
384 | if (tda8290_init(&t->i2c)<0) { | ||
385 | kfree(t); | ||
386 | return 0; | ||
387 | } | ||
388 | |||
379 | } | 389 | } |
390 | |||
380 | } | 391 | } |
381 | 392 | ||
382 | /* Initializes only the first adapter found */ | 393 | /* Initializes only the first adapter found */ |