aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/videodev.c
diff options
context:
space:
mode:
authorHans Verkuil <hverkuil@xs4all.nl>2007-04-27 11:31:08 -0400
committerMauro Carvalho Chehab <mchehab@infradead.org>2007-04-27 14:43:27 -0400
commit3434eb7e14d9587ee56f3462bcfa5726b62dadb9 (patch)
tree49afb0915dac8e7864f89582ddbb7a6453982e2c /drivers/media/video/videodev.c
parentced80c67cd1ed503c6fb72f02ac7342ab4ebf67a (diff)
V4L/DVB (5306): Add support for VIDIOC_G_CHIP_IDENT
VIDIOC_G_CHIP_IDENT improves debugging of card problems: it can be used to detect which chips are on the board and based on that information selected register dumps can be made, making it easy to debug complicated media chips containing tens or hundreds of registers. This ioctl replaces the internal VIDIOC_INT_G_CHIP_IDENT ioctl. Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers/media/video/videodev.c')
-rw-r--r--drivers/media/video/videodev.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/drivers/media/video/videodev.c b/drivers/media/video/videodev.c
index 5c9f2116d7b..fdfef0b5331 100644
--- a/drivers/media/video/videodev.c
+++ b/drivers/media/video/videodev.c
@@ -1532,6 +1532,16 @@ static int __video_do_ioctl(struct inode *inode, struct file *file,
1532 break; 1532 break;
1533 } 1533 }
1534#endif 1534#endif
1535 case VIDIOC_G_CHIP_IDENT:
1536 {
1537 struct v4l2_chip_ident *p=arg;
1538 if (!vfd->vidioc_g_chip_ident)
1539 break;
1540 ret=vfd->vidioc_g_chip_ident(file, fh, p);
1541 if (!ret)
1542 dbgarg (cmd, "chip_ident=%u, revision=0x%x\n", p->ident, p->revision);
1543 break;
1544 }
1535 } /* switch */ 1545 } /* switch */
1536 1546
1537 if (vfd->debug & V4L2_DEBUG_IOCTL_ARG) { 1547 if (vfd->debug & V4L2_DEBUG_IOCTL_ARG) {