The patch number 11639 was added via Erik Andr?n <erik.and...@gmail.com> to http://linuxtv.org/hg/v4l-dvb master development tree.
Kernel patches in this development tree may be modified to be backward compatible with older kernels. Compatibility modifications will be removed before inclusion into the mainstream Kernel If anyone has any objections, please let us know by sending a message to: Linux Media Mailing List <linux-me...@vger.kernel.org> ------ From: Erik Andr?n <erik.and...@gmail.com> gspca - m5602-mt9m111: Correct the hflip/vflip semantics mt9m111: Hflip and vflip shall always be 0 at start and the image shall be correctly aligned. The mt9m111 is hflipped and vflipped by default. Correct the semantics to make this happen. Priority: normal Signed-off-by: Erik Andr?n <erik.and...@gmail.com> --- linux/drivers/media/video/gspca/m5602/m5602_mt9m111.c | 11 ++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff -r c404fc2bd021 -r 2bc8f20cdc0a linux/drivers/media/video/gspca/m5602/m5602_mt9m111.c --- a/linux/drivers/media/video/gspca/m5602/m5602_mt9m111.c Wed Jan 21 17:46:58 2009 +0100 +++ b/linux/drivers/media/video/gspca/m5602/m5602_mt9m111.c Thu Jan 22 07:32:32 2009 +0100 @@ -67,7 +67,7 @@ const static struct ctrl mt9m111_ctrls[] .minimum = 0, .maximum = 1, .step = 1, - .default_value = 1 + .default_value = 0 }, .set = mt9m111_set_vflip, .get = mt9m111_get_vflip @@ -81,7 +81,7 @@ const static struct ctrl mt9m111_ctrls[] .minimum = 0, .maximum = 1, .step = 1, - .default_value = 1 + .default_value = 0 }, .set = mt9m111_set_hflip, .get = mt9m111_get_hflip @@ -391,6 +391,9 @@ static int mt9m111_set_vflip(struct gspc sensor_settings[VFLIP_IDX] = val; + /* The mt9m111 is flipped by default */ + val = !val; + /* Set the correct page map */ err = m5602_write_sensor(sd, MT9M111_PAGE_MAP, data, 2); if (err < 0) @@ -427,6 +430,10 @@ static int mt9m111_set_hflip(struct gspc PDEBUG(D_V4L2, "Set horizontal flip to %d", val); sensor_settings[HFLIP_IDX] = val; + + /* The mt9m111 is flipped by default */ + val = !val; + /* Set the correct page map */ err = m5602_write_sensor(sd, MT9M111_PAGE_MAP, data, 2); if (err < 0) --- Patch is available at: http://linuxtv.org/hg/v4l-dvb/rev/2bc8f20cdc0a013306cadfc35b6e9a856f91f0b1 _______________________________________________ linuxtv-commits mailing list linuxtv-commits@linuxtv.org http://www.linuxtv.org/cgi-bin/mailman/listinfo/linuxtv-commits