aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/saa7134/saa7134-i2c.c
diff options
context:
space:
mode:
authorHans Verkuil <hverkuil@xs4all.nl>2008-09-06 05:34:44 -0400
committerMauro Carvalho Chehab <mchehab@redhat.com>2008-10-12 07:36:58 -0400
commit9afb7377ef16a73d1ae7b089aa853e00a3facea8 (patch)
tree4b5935da7097240c194b5899e0bcd08388353c43 /drivers/media/video/saa7134/saa7134-i2c.c
parentac2b97b13e5627127b8e29dc0e1e1d7be03eaae4 (diff)
V4L/DVB (8917): saa7134-empress: fix changing the capture standard for non-tuner inputs
When changing the standard the saa6752hs was not updated unless the input was the TV tuner. The saa6752hs should be updated regardless of the input. In addition the S_STD and G_STD ioctls for the mpeg video device didn't do anything. This is now fixed: they behave just like S_STD and G_STD on the video0 device. Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video/saa7134/saa7134-i2c.c')
-rw-r--r--drivers/media/video/saa7134/saa7134-i2c.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/drivers/media/video/saa7134/saa7134-i2c.c b/drivers/media/video/saa7134/saa7134-i2c.c
index 5f713e637683..b02965c52476 100644
--- a/drivers/media/video/saa7134/saa7134-i2c.c
+++ b/drivers/media/video/saa7134/saa7134-i2c.c
@@ -427,6 +427,16 @@ void saa7134_i2c_call_clients(struct saa7134_dev *dev,
427 i2c_clients_command(&dev->i2c_adap, cmd, arg); 427 i2c_clients_command(&dev->i2c_adap, cmd, arg);
428} 428}
429 429
430int saa7134_i2c_call_saa6752(struct saa7134_dev *dev,
431 unsigned int cmd, void *arg)
432{
433 if (dev->mpeg_i2c_client == NULL)
434 return -EINVAL;
435 return dev->mpeg_i2c_client->driver->command(dev->mpeg_i2c_client,
436 cmd, arg);
437}
438EXPORT_SYMBOL_GPL(saa7134_i2c_call_saa6752);
439
430int saa7134_i2c_register(struct saa7134_dev *dev) 440int saa7134_i2c_register(struct saa7134_dev *dev)
431{ 441{
432 dev->i2c_adap = saa7134_adap_template; 442 dev->i2c_adap = saa7134_adap_template;