v4l2-ctl: fix regression in ability to set/get private controls
authorDevin Heitmueller <dheitmueller@kernellabs.com>
Thu, 11 Mar 2010 04:01:53 +0000 (23:01 -0500)
committerHans de Goede <hdegoede@redhat.com>
Fri, 12 Mar 2010 16:28:34 +0000 (17:28 +0100)
commit23958e6d9aafe66febda8979339448591ff042c8
tree80101bf549dc7a8c3d0ff288615daf510c624609
parenta4bdf3575f76a05407ffb264bdd5008a55be0455
v4l2-ctl: fix regression in ability to set/get private controls

In hg revision 12546, a regression was introduced which resulted in the
ability to get/set private controls.  The change resulted in all attempts
to set private controls going through the extended controls interface, and
the extended controls interface explicitly denies ability to use private
control CIDs (it's enforced in the check_ext_ctl function in v4l2-ioctl.c.

Fix the code such that it goes back to using the older g_ctrl/s_ctrl if the
control ID is a private control.

Priority: high

Signed-off-by: Devin Heitmueller <dheitmueller@kernellabs.com>
Acked-by: Hans Verkuil <hverkuil@xs4all.nl>
utils/v4l2-ctl/v4l2-ctl.cpp