Hi,
We are using the TVP7002 to convert 1080i HD component video to YCbCr 4:2:2 to input into the DM8168. We would like to be able to adjust the digital(fine) gain of the TVP7002 during runtime from the userspace. In the tvp7002.c driver I see that there are two functions (tvp7002_s_ctrl, tvp7002_g_ctrl) that appear to read and set the gain.
Reading through more documentation I find that the V4L2 API has a couple ioctls (VIDIOC_G_CTRL, VIDIOC_S_CTRL) which look like what I need. However, I'm not sure how to access these functions.
- Am I on the right track?
- How do I set the gain from userspace?
- Do I need to modify the tvp7002.c driver to export the s_ctrl and g_ctrl functions?