On Wed, 6 Jan 2010, Kuninori Morimoto wrote: > > Hi all > > Now I have mt9t112 / ov772x soc-camera. > And it can change fps by register setting. > So, I would like to add such support to driver. > > But I don't know how to order it from user program. > Can you please teach me about it ? > > # in my easy search, using ioctrl with VIDIOC_S_PARM > # seems good, I'm not sure though Yes, I think, you're right. It's the .timeperframe member of struct v4l2_captureparm, that you'd be looking at. And yes, you'd have to add support for it to soc-camera, by adding a suitable operation to struct soc_camera_host_ops, and calling it from soc_camera.c - if provided by the host driver. Then you add it to sh_mobile_ceu_camera.c and just call .s_parm from struct v4l2_subdev_video_ops. I'm replying to this email with two patches, please, see if they provide the necessary infrastructure for you and let me know the result - I'll push them upstream if you're fine with them. Thanks Guennadi --- Guennadi Liakhovetski, Ph.D. Freelance Open-Source Software Developer http://www.open-technology.de/ -- 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