commit | 54812c77bc830e2dbcb62b4c6d8a9c7f97cfdd1b | [log] [tgz] |
---|---|---|
author | Laurent Pinchart <laurent.pinchart@skynet.be> | Thu Jul 17 07:37:37 2008 -0300 |
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | Sat Jul 26 13:18:25 2008 -0300 |
tree | fc9fa9a0d6ed8b1af83f5d3f4f5a4a6e44653163 | |
parent | 90ac5ea37f91e38d798c5e355232ce7f9c2a24d4 [diff] |
V4L/DVB (8498): uvcvideo: Return sensible min and max values when querying a boolean control. Although the V4L2 spec states that the minimum and maximum fields may not be valid for control types other than V4L2_CTRL_TYPE_INTEGER, it makes sense to set the bounds to 0 and 1 for boolean controls instead of returning uninitialized values. Signed-off-by: Laurent Pinchart <laurent.pinchart@skynet.be> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>