80b44ef23a746af5a05562d314184b5923574bb6 |
|
04-Jun-2014 |
Philipp Zabel <p.zabel@pengutronix.de> |
[media] mt9v032: use regmap This switches all register accesses to use regmap. It allows to use the regmap cache, tracing, and debug register dump facilities, and removes the need to open code read-modify-writes. Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de> Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
|
94b76ce83de2fb4dd12001bbaef4301dc681700a |
|
04-Jun-2014 |
Philipp Zabel <p.zabel@pengutronix.de> |
[media] mt9v032: register v4l2 asynchronous subdevice Add support for registering the sensor subdevice using the v4l2-async API. Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de> Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
|
d8dde6c8dd3916f532b5fd3b1fc377e01ea41e01 |
|
03-Jun-2014 |
Philipp Zabel <p.zabel@pengutronix.de> |
[media] mt9v032: add support for mt9v022 and mt9v024 as are mt9v024 and mt9v034. With minimal changes it is possible to support mt9v02[24] with the same driver. Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de> Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
|
d131e54b686049f90a34f195a7d276083ef68aa0 |
|
03-Jun-2014 |
Philipp Zabel <p.zabel@pengutronix.de> |
[media] mt9v032: do not clear reserved bits in read mode register The read mode register bits 8 and 9 are set and marked as reserved. Don't clear them. Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de> Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
|
f17bc3f4707eb87bdb80b895911c551cdd606fbd |
|
26-May-2014 |
Philipp Zabel <p.zabel@pengutronix.de> |
[media] mt9v032: fix hblank calculation Since (min_row_time - crop->width) can be negative, we have to do a signed comparison here. Otherwise max_t casts the negative value to unsigned int and sets min_hblank to that invalid value. Cc: stable@vger.kernel.org Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de> Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
|
2a9ec3731137f973c6289698de6566a25418b96f |
|
27-Apr-2014 |
Hans Verkuil <hans.verkuil@cisco.com> |
[media] v4l2-ctrls: use ptrs for all but the s32 type Rather than having two unions for all types just keep 'val' and 'cur.val' and use the p_cur and p_new unions to access all others. The only reason for keeping 'val' and 'cur.val' is that it is used all over, so converting this as well would be a huge job. Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
|
0ba2aeb6dab80920edd9cf5b93b1ea4d6913b8f3 |
|
16-Apr-2014 |
Hans Verkuil <hans.verkuil@cisco.com> |
[media] v4l2-ctrls: increase internal min/max/step/def to 64 bit While VIDIOC_QUERYCTRL is limited to 32 bit min/max/step/def values for controls, the upcoming VIDIOC_QUERY_EXT_CTRL isn't. So increase the internal representation to 64 bits in preparation. Because of these changes the msi3101 driver has been modified slightly to fix a formatting issue (%d becomes %lld), vivi had to be modified as well to cope with the new 64-bit min/max values and the PIXEL_RATE control in a few sensor drivers required proper min/max/def values. Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Reviewed-by: Sylwester Nawrocki <s.nawrocki@samsung.com> Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
|
79019190a4c3a082c739cf7cc73a040c48b333bb |
|
17-Jan-2014 |
Lad, Prabhakar <prabhakar.csengg@gmail.com> |
[media] mt9v032: Check return value of clk_prepare_enable/clk_set_rate clk_set_rate(), clk_prepare_enable() functions can fail, so check the return values to avoid surprises. Signed-off-by: Lad, Prabhakar <prabhakar.csengg@gmail.com> Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
|
f90580ca0133c533763a6cb3e632a21098a382df |
|
26-Nov-2013 |
Ricardo Ribalda <ricardo.ribalda@gmail.com> |
[media] videodev2: Set vb2_rect's width and height as unsigned As discussed on the media summit 2013, there is no reason for the width and height to be signed. Therefore this patch is an attempt to convert those fields from __s32 to __u32. Signed-off-by: Ricardo Ribalda Delgado <ricardo.ribalda@gmail.com> Acked-by: Sakari Ailus <sakari.ailus@iki.fi> (documentation and smiapp) Acked-by: Lad, Prabhakar <prabhakar.csengg@gmail.com> Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
|
daecfebcb8847ae759efdd1637857b2108000844 |
|
02-Dec-2013 |
Laurent Pinchart <laurent.pinchart@ideasonboard.com> |
[media] mt9v032: Add support for the MT9V034 The MT9V034 sensor is very similar to the MT9V032, with a couple of different registers and parameters. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
|
0a466b600d03e8c4a90ac8aa9e9e0aa382976003 |
|
02-Dec-2013 |
Laurent Pinchart <laurent.pinchart@ideasonboard.com> |
[media] mt9v032: Add support for model-specific parameters To prepare support of the MT9V034, add the necessary infrastructure to support model-specific parameters. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
|
220ddc7f1d19de71cbe1fe29dbf97548efbb5fa9 |
|
04-Dec-2013 |
Laurent Pinchart <laurent.pinchart@ideasonboard.com> |
[media] mt9v032: Add support for monochrome models Identify the model based on the I2C device name and configure formats accordingly. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
|
637f005e455739c8128dadb73dfbe67a4db26f45 |
|
02-Dec-2013 |
Laurent Pinchart <laurent.pinchart@ideasonboard.com> |
[media] mt9v032: Fix binning configuration The sensor can scale the image down using binning by 1, 2 or 4 in both directions. Update size enumeration and ratio and binning factor computation accordingly. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
|
2b9e9f779cb29f25102d4e7f14df557ead58e659 |
|
02-Dec-2013 |
Laurent Pinchart <laurent.pinchart@ideasonboard.com> |
[media] mt9v032: Fix pixel array size The active pixel array size is 753x481 with 4 additional black rows at the top. Fix the driver accordingly. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
|
4d88550a9a370e6fe6733d5c9424c10f20c0580f |
|
02-Dec-2013 |
Laurent Pinchart <laurent.pinchart@ideasonboard.com> |
[media] mt9v032: Remove unused macro The EXT_CLK macro is unused, remove it. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
|
3300a8fd48976e7126cf078de95f52d59e413bb0 |
|
05-Jul-2013 |
Laurent Pinchart <laurent.pinchart@ideasonboard.com> |
[media] mt9v032: Use the common clock framework Configure the device external clock using the common clock framework instead of a board code callback function. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Acked-by: Sylwester Nawrocki <s.nawrocki@samsung.com> Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
|
c02b211df6fc54e51ee554c27a6736a11255a764 |
|
02-May-2013 |
Laurent Pinchart <laurent.pinchart@ideasonboard.com> |
[media] media: i2c: Convert to devm_kzalloc() Using the managed function the kfree() calls can be removed from the probe error path and the remove handler. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Acked-by: Sylwester Nawrocki <s.nawrocki@samsung.com> Acked-by: Lad, Prabhakar <prabhakar.csengg@gmail.com> Acked-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Reviewed-by: Benoît Thébaudeau <benoit.thebaudeau@advansee.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
|
9462550f66dfbbb2eb0961af2c9d2c3e000d9239 |
|
02-May-2013 |
Laurent Pinchart <laurent.pinchart@ideasonboard.com> |
[media] mt9v032: Free control handler in cleanup paths The control handler must be freed in the probe error path and in the remove handler. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
|
b28d70176e9f05fb94256678b4ff5b3527e81b7f |
|
25-Sep-2012 |
Lad, Prabhakar <prabhakar.lad@ti.com> |
[media] media: mt9p031/mt9t001/mt9v032: use V4L2_CID_TEST_PATTERN for test pattern control V4L2_CID_TEST_PATTERN is now a standard control. This patch replaces the user defined control for test pattern to make use of standard control V4L2_CID_TEST_PATTERN. Signed-off-by: Lad, Prabhakar <prabhakar.lad@ti.com> Signed-off-by: Manjunath Hadli <manjunath.hadli@ti.com> Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Acked-by: Sakari Ailus <sakari.ailus@iki.fi> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
|
9ec670e2aad515bbb36c020a6ebdc707ace4f24d |
|
23-Jul-2012 |
Laurent Pinchart <laurent.pinchart@ideasonboard.com> |
[media] mt9v032: Export horizontal and vertical blanking as V4L2 controls Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
|
e9a50e4c2dd8ca871c20480e49125ef67da84722 |
|
26-Jul-2012 |
Laurent Pinchart <laurent.pinchart@ideasonboard.com> |
[media] mt9v032: Provide link frequency control Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Acked-by: Sakari Ailus <sakari.ailus@iki.fi> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
|
41a33a00e82a897f973a98355e43e78efaa292e1 |
|
15-Mar-2012 |
Sakari Ailus <sakari.ailus@iki.fi> |
[media] mt9v032: Provide pixel rate control Provide pixel rate control calculated from external clock and horizontal binning factor. Signed-off-by: Sakari Ailus <sakari.ailus@iki.fi> Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
|
cb7a01ac324bf2ee2c666f37ac867e4135f9785a |
|
14-Aug-2012 |
Mauro Carvalho Chehab <mchehab@redhat.com> |
[media] move i2c files into drivers/media/i2c Move ancillary I2C drivers into drivers/media/i2c, in order to better organize them. Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
|