v4l2-ctl: fix control support for old kernels.
authorHans Verkuil <hans.verkuil@cisco.com>
Mon, 15 Sep 2014 12:04:45 +0000 (14:04 +0200)
committerHans Verkuil <hans.verkuil@cisco.com>
Mon, 15 Sep 2014 12:04:45 +0000 (14:04 +0200)
commit0ba5ee4ba7854f09ce327d410f88d0c06040ce95
tree9d3441df3b2caf9c3947d0966d20b768eb724fa5
parent8a4ac8966b367c90c81e0edf236df7409cee081a
v4l2-ctl: fix control support for old kernels.

For old kernels that return -EINVAL if QUERY_EXT_CTRL does not exist
no controls are reported anymore. Add an explicit test whether
QUERY_EXT_CTRL exists.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
utils/v4l2-ctl/v4l2-ctl-common.cpp