Hi Martin, On Wednesday 19 January 2011 20:12:14 martin@xxxxxxxxxxxxxxxxxxxxxx wrote: > On Wed, Jan 19, 2011 at 12:05:10AM +0100, Hans Verkuil wrote: > > On Tuesday, January 18, 2011 23:18:42 Martin Hostettler wrote: [snip] > > > +#ifdef CONFIG_VIDEO_ADV_DEBUG > > > +static long mt9m032_ioctl(struct v4l2_subdev *sd, unsigned int cmd, > > > void *arg) +{ > > > + if (cmd == VIDIOC_DBG_G_REGISTER || cmd == VIDIOC_DBG_S_REGISTER) { > > > + struct v4l2_dbg_register *p = arg; > > > + > > > + if (!capable(CAP_SYS_ADMIN)) > > > + return -EPERM; > > > + > > > + if (cmd == VIDIOC_DBG_G_REGISTER) > > > + return v4l2_subdev_call(sd, core, g_register, p); > > > + else > > > + return v4l2_subdev_call(sd, core, s_register, p); > > > + } else { > > > + return -ENOIOCTLCMD; > > > + } > > > +} > > > > Huh? Ah, I get it. This is for when the user uses the subdev's device > > node directly. This is not good, the v4l2 framework should do translate > > this to g/s_register. The same should be done for g_chip_ident, I guess. > > I'm not sure what you are saying here. Should i move this to a patch for > v4l2-subdev.c to dispatch those ioctls for all subdevs? Yes, please do that. > I need these ioctls to work with the driver and last that i looked nothing > in the general framework or the omap3 ISP driver was forwarding there from > the video device node to the subdevice driver... -- Regards, Laurent Pinchart -- To unsubscribe from this list: send the line "unsubscribe linux-media" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html