summaryrefslogtreecommitdiff
path: root/linux/drivers/media/video/wm8739.c
diff options
context:
space:
mode:
authorHans Verkuil <hverkuil@xs4all.nl>2007-02-28 00:25:51 +0100
committerHans Verkuil <hverkuil@xs4all.nl>2007-02-28 00:25:51 +0100
commitdef3a3061098518446069b287d7eba281cfe0afe (patch)
treebb88900b964b51f045e5cd9a237c4df8aaf76c9d /linux/drivers/media/video/wm8739.c
parent48b48aad8f2170c48618958d828ea1df98a87bcd (diff)
downloadmediapointer-dvb-s2-def3a3061098518446069b287d7eba281cfe0afe.tar.gz
mediapointer-dvb-s2-def3a3061098518446069b287d7eba281cfe0afe.tar.bz2
Add VIDIOC_G_CHIP_IDENT to various i2c modules
From: Hans Verkuil <hverkuil@xs4all.nl> Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Diffstat (limited to 'linux/drivers/media/video/wm8739.c')
-rw-r--r--linux/drivers/media/video/wm8739.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/linux/drivers/media/video/wm8739.c b/linux/drivers/media/video/wm8739.c
index 4b4e5277f..da14fa401 100644
--- a/linux/drivers/media/video/wm8739.c
+++ b/linux/drivers/media/video/wm8739.c
@@ -29,6 +29,7 @@
#include <linux/i2c-id.h>
#include <linux/videodev.h>
#include <media/v4l2-common.h>
+#include <media/v4l2-chip-ident.h>
#if LINUX_VERSION_CODE < KERNEL_VERSION(2,5,0)
#include "i2c-compat.h"
#include <linux/slab.h>
@@ -248,6 +249,9 @@ static int wm8739_command(struct i2c_client *client, unsigned int cmd, void *arg
return -EINVAL;
}
+ case VIDIOC_G_CHIP_IDENT:
+ return v4l2_chip_ident_i2c_client(client, arg, V4L2_IDENT_WM8739, 0);
+
case VIDIOC_LOG_STATUS:
v4l_info(client, "Frequency: %u Hz\n", state->clock_freq);
v4l_info(client, "Volume L: %02x%s\n", state->vol_l & 0x1f,