diff options
Diffstat (limited to 'drivers/media/video/saa7134/saa7134-i2c.c')
-rw-r--r-- | drivers/media/video/saa7134/saa7134-i2c.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/drivers/media/video/saa7134/saa7134-i2c.c b/drivers/media/video/saa7134/saa7134-i2c.c index d8af3863f2d3..20c1b33caf7b 100644 --- a/drivers/media/video/saa7134/saa7134-i2c.c +++ b/drivers/media/video/saa7134/saa7134-i2c.c | |||
@@ -327,6 +327,8 @@ static int attach_inform(struct i2c_client *client) | |||
327 | 327 | ||
328 | d1printk( "%s i2c attach [addr=0x%x,client=%s]\n", | 328 | d1printk( "%s i2c attach [addr=0x%x,client=%s]\n", |
329 | client->driver->driver.name, client->addr, client->name); | 329 | client->driver->driver.name, client->addr, client->name); |
330 | if (client->addr == 0x20 && client->driver && client->driver->command) | ||
331 | dev->mpeg_i2c_client = client; | ||
330 | 332 | ||
331 | /* Am I an i2c remote control? */ | 333 | /* Am I an i2c remote control? */ |
332 | 334 | ||
@@ -335,6 +337,7 @@ static int attach_inform(struct i2c_client *client) | |||
335 | case 0x47: | 337 | case 0x47: |
336 | case 0x71: | 338 | case 0x71: |
337 | case 0x2d: | 339 | case 0x2d: |
340 | case 0x30: | ||
338 | { | 341 | { |
339 | struct IR_i2c *ir = i2c_get_clientdata(client); | 342 | struct IR_i2c *ir = i2c_get_clientdata(client); |
340 | d1printk("%s i2c IR detected (%s).\n", | 343 | d1printk("%s i2c IR detected (%s).\n", |
@@ -425,6 +428,16 @@ void saa7134_i2c_call_clients(struct saa7134_dev *dev, | |||
425 | i2c_clients_command(&dev->i2c_adap, cmd, arg); | 428 | i2c_clients_command(&dev->i2c_adap, cmd, arg); |
426 | } | 429 | } |
427 | 430 | ||
431 | int saa7134_i2c_call_saa6752(struct saa7134_dev *dev, | ||
432 | unsigned int cmd, void *arg) | ||
433 | { | ||
434 | if (dev->mpeg_i2c_client == NULL) | ||
435 | return -EINVAL; | ||
436 | return dev->mpeg_i2c_client->driver->command(dev->mpeg_i2c_client, | ||
437 | cmd, arg); | ||
438 | } | ||
439 | EXPORT_SYMBOL_GPL(saa7134_i2c_call_saa6752); | ||
440 | |||
428 | int saa7134_i2c_register(struct saa7134_dev *dev) | 441 | int saa7134_i2c_register(struct saa7134_dev *dev) |
429 | { | 442 | { |
430 | dev->i2c_adap = saa7134_adap_template; | 443 | dev->i2c_adap = saa7134_adap_template; |