aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/em28xx/em28xx-i2c.c
diff options
context:
space:
mode:
authorVitaly Wool <vital@embeddedalley.com>2009-03-04 06:27:52 -0500
committerMauro Carvalho Chehab <mchehab@redhat.com>2009-03-30 11:43:07 -0400
commit2bd1d9eb1c27034a77c8e1887156da72d6160ae1 (patch)
treec80d2b235024e621e2633c6504511df1fbca20d4 /drivers/media/video/em28xx/em28xx-i2c.c
parent3341cc6e86da7b956084d5b6c9ca2e4f1c27f9bf (diff)
V4L/DVB (10833): em28xx: enable Compro VideoMate ForYou sound
Compro VideoMate uses an external audio DSP chip, controlled via tvaudio module (tda9874a). This patch improves em28xx infrastructure to support an external audio processor and fixes the Compro VideoMate entry to work with it. Signed-off-by: Vitaly Wool <vital@embeddedalley.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video/em28xx/em28xx-i2c.c')
-rw-r--r--drivers/media/video/em28xx/em28xx-i2c.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/media/video/em28xx/em28xx-i2c.c b/drivers/media/video/em28xx/em28xx-i2c.c
index 2dab43d22da2..02c12fe6361b 100644
--- a/drivers/media/video/em28xx/em28xx-i2c.c
+++ b/drivers/media/video/em28xx/em28xx-i2c.c
@@ -510,12 +510,17 @@ static int attach_inform(struct i2c_client *client)
510 dprintk1(1, "attach_inform: tvp5150 detected.\n"); 510 dprintk1(1, "attach_inform: tvp5150 detected.\n");
511 break; 511 break;
512 512
513 case 0xb0:
514 dprintk1(1, "attach_inform: tda9874 detected\n");
515 break;
516
513 default: 517 default:
514 if (!dev->tuner_addr) 518 if (!dev->tuner_addr)
515 dev->tuner_addr = client->addr; 519 dev->tuner_addr = client->addr;
516 520
517 dprintk1(1, "attach inform: detected I2C address %x\n", 521 dprintk1(1, "attach inform: detected I2C address %x\n",
518 client->addr << 1); 522 client->addr << 1);
523 dprintk1(1, "driver id %d\n", client->driver->id);
519 524
520 } 525 }
521 526
@@ -554,6 +559,7 @@ static char *i2c_devs[128] = {
554 [0x80 >> 1] = "msp34xx", 559 [0x80 >> 1] = "msp34xx",
555 [0x88 >> 1] = "msp34xx", 560 [0x88 >> 1] = "msp34xx",
556 [0xa0 >> 1] = "eeprom", 561 [0xa0 >> 1] = "eeprom",
562 [0xb0 >> 1] = "tda9874",
557 [0xb8 >> 1] = "tvp5150a", 563 [0xb8 >> 1] = "tvp5150a",
558 [0xba >> 1] = "tvp5150a", 564 [0xba >> 1] = "tvp5150a",
559 [0xc0 >> 1] = "tuner (analog)", 565 [0xc0 >> 1] = "tuner (analog)",