aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/media')
-rw-r--r--drivers/media/common/tuners/tda8290.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/drivers/media/common/tuners/tda8290.c b/drivers/media/common/tuners/tda8290.c
index c190b0dedee4..19010f3d4508 100644
--- a/drivers/media/common/tuners/tda8290.c
+++ b/drivers/media/common/tuners/tda8290.c
@@ -672,16 +672,19 @@ static int tda8290_probe(struct tuner_i2c_props *i2c_props)
672static int tda8295_probe(struct tuner_i2c_props *i2c_props) 672static int tda8295_probe(struct tuner_i2c_props *i2c_props)
673{ 673{
674#define TDA8295_ID 0x8a 674#define TDA8295_ID 0x8a
675#define TDA8295C2_ID 0x8b
675 unsigned char tda8295_id[] = { 0x2f, 0x00 }; 676 unsigned char tda8295_id[] = { 0x2f, 0x00 };
676 677
677 /* detect tda8295 */ 678 /* detect tda8295 */
678 tuner_i2c_xfer_send(i2c_props, &tda8295_id[0], 1); 679 tuner_i2c_xfer_send(i2c_props, &tda8295_id[0], 1);
679 tuner_i2c_xfer_recv(i2c_props, &tda8295_id[1], 1); 680 tuner_i2c_xfer_recv(i2c_props, &tda8295_id[1], 1);
680 681
681 if (tda8295_id[1] == TDA8295_ID) { 682 if ((tda8295_id[1] & 0xfe) == TDA8295_ID) {
682 if (debug) 683 if (debug)
683 printk(KERN_DEBUG "%s: tda8295 detected @ %d-%04x\n", 684 printk(KERN_DEBUG "%s: %s detected @ %d-%04x\n",
684 __func__, i2c_adapter_id(i2c_props->adap), 685 __func__, (tda8295_id[1] == TDA8295_ID) ?
686 "tda8295c1" : "tda8295c2",
687 i2c_adapter_id(i2c_props->adap),
685 i2c_props->addr); 688 i2c_props->addr);
686 return 0; 689 return 0;
687 } 690 }