]> git.openfabrics.org - ~shefty/rdma-dev.git/commitdiff
[media] m5mols: Correct reported ISO values
authorSylwester Nawrocki <s.nawrocki@samsung.com>
Tue, 24 Jul 2012 15:12:07 +0000 (12:12 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Mon, 30 Jul 2012 22:23:33 +0000 (19:23 -0300)
The V4L2_CID_ISO_SENSITIVITY control menu values should be
standard ISO values multiplied by 1000. Multiply all menu
items by 1000 so ISO is properly reported as 50...3200 range.

This applies to kernels 3.5+.

Cc: stable@vger.kernel.org
Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/m5mols/m5mols_controls.c

index 392a028730e2db657ca1f506893ff65a537fe3cc..fdbc205a29698a1836b94d1fb9b6d9f8de0e798a 100644 (file)
@@ -527,8 +527,8 @@ static const struct v4l2_ctrl_ops m5mols_ctrl_ops = {
 
 /* Supported manual ISO values */
 static const s64 iso_qmenu[] = {
-       /* AE_ISO: 0x01...0x07 */
-       50, 100, 200, 400, 800, 1600, 3200
+       /* AE_ISO: 0x01...0x07 (ISO: 50...3200) */
+       50000, 100000, 200000, 400000, 800000, 1600000, 3200000
 };
 
 /* Supported Exposure Bias values, -2.0EV...+2.0EV */