uvc & pwc: Add support for control events (v2)

Hans de Goede
2012-03-25T11:54:50Z

Hi All,

This patch series adds supports for control events to the uvc and pwc
drivers.

Note:
-This series depends on Hans Verkuil's poll work, the latest version of
-which
can be found here:
http://git.linuxtv.org/hgoede/gspca.git/shortlog/refs/heads/poll_req_events
-This series has been posted before, this version is rebased on top of
the latest media_tree.git/staging/for_v3.4 and has some remarks from
earlier reviews addressed

Changes in v2:
- Make the last param of __uvc_ctrl_get a s32 rather then an xctrl, as only
the value part of the xctrl was used
- Make uvc_ctrl_send_event static as it is only used in uvc_ctrls.c
- Move some functions around in uvc_ctrls.c to avoid the need for forward
declarations for static / private helper functions
- Refactor uvc_ctrl_send_event into uvc_ctrl_send_event and
uvc_ctrl_send_events in preparation for the next patches
- Properly report the INACTIVE flag for inactive controls
- Send ctrl change events when the inactive flag changes due to the master
ctrl changing

Regards,

Hans