drivers/media/video/saa7115.c misreports max. value of contrast and saturation

From: Kyler Laird
Date: Wed Feb 15 2006 - 00:20:54 EST


For changes to V4L2_CID_CONTRAST and V4L2_CID_SATURATION, the value is
checked by "if (ctrl->value < 0 || ctrl->value > 127)" yet the maximum
value in v4l2_queryctrl is set to 255 for both of these items. This
means that programs (like MythTV) which set the contrast and saturation
to the midvalue (127) get *full* contrast and saturation. (It's not
pretty.)

Setting the maximum values to 127 solves this problem.

Please copy me on responses.

Thank you.

--kyler

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/