dafb9c70abb7896a43288fbec2a9f2ed6e915d18 |
|
01-Dec-2011 |
Sylwester Nawrocki <s.nawrocki@samsung.com> |
[media] s5p-fimc: Add support for alpha component configuration On Exynos SoCs the FIMC IP allows to configure globally the alpha component of all pixels for V4L2_PIX_FMT_RGB32, V4L2_PIX_FMT_RGB555 and V4L2_PIX_FMT_RGB444 image formats. This patch adds a v4l2 control in order to let the applications control the alpha component value. The alpha value range depends on the pixel format, for RGB32 it's 0..255 (8-bits), for RGB555 - 0..1 (1-bit) and for RGB444 - 0..15 (4-bits). The v4l2 control range is always 0..255 and the alpha component data width is determined by currently set format on the V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE buffer queue. The applications need to match the alpha channel value range and the pixel format since the driver will clamp the alpha component. Depending on fourcc the valid alpha bits are: - V4L2_PIX_FMT_RGB555 [0] - V4L2_PIX_FMT_RGB444 [3:0] - V4L2_PIX_FMT_RGB32 [7:0] When switching to a pixel format with smaller alpha component width the currently set alpha value will be clamped to maximum value valid for current format. When switching to a format with wider alpha the alpha value remains unchanged. The variant description data structure is extended with a new entry so an additional control is created only where really supported by the hardware. V4L2_PIX_FMT_RGB555 and V4L2_PIX_FMT_RGB444 formats are only valid for V4L2_BUF_TYPE_VIDEO_CAPTURE buffer queue. 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/s5p-fimc/fimc-reg.c
|
2c1bb62e217f4f2eb6fa9734dcb331bc09c7768e |
|
05-Oct-2011 |
Sylwester Nawrocki <s.nawrocki@samsung.com> |
[media] s5p-fimc: Fix buffer dequeue order issue When requested more than 2 buffers the buffer dequeue order was wrong due to erroneous updating FIMC registers in every interrupt handler call. This also fixes regression of resetting the output DMA buffer pointer at wrong time, when some buffers are already queued in hardware. The hardware is reset in the start_streaming callback in order to align the H/W state with the software output buffer pointer (buf_index). Additionally a simple write to S5P_CISCCTRL register is replaced with a read/modification/write to make sure the scaler is not being disabled in fimc_hw_set_scaler(). 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/s5p-fimc/fimc-reg.c
|
12ecf56d1a2f93b625ca30049072613cba2d96b1 |
|
19-Sep-2011 |
Sylwester Nawrocki <s.nawrocki@samsung.com> |
[media] s5p-fimc: Convert to use generic media bus polarity flags Switch to generic media bus signal polarity flags and allow configuring the FIELD signal polarity. 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/s5p-fimc/fimc-reg.c
|
ee7160e57c98ffb03253abb2cb4ad5b1376a2257 |
|
26-Aug-2011 |
Sylwester Nawrocki <s.nawrocki@samsung.com> |
[media] s5p-fimc: Add support for JPEG capture Add support for transparent DMA transfer of JPEG data with MIPI-CSI2 USER1 format. In JPEG mode the color effect, scaling and cropping is not supported as well as image rotation and flipping thus these controls are marked as inactive if V4L2_PIX_FMT_JPEG pixel format was selected. 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/s5p-fimc/fimc-reg.c
|
237e026559b7cd03fc575b6007cea11aef9e0aa6 |
|
25-Aug-2011 |
Sylwester Nawrocki <s.nawrocki@samsung.com> |
[media] s5p-fimc: Add subdev for the FIMC processing block Add a subdev to expose the host's scaling and composition functions. The camera frame composition onto an output buffer may be configured through set/get_crop at FIMC.{n} source pad. Additionally allow crop, composition and controls to be modified during streaming. Make sure the default format is set when opening the video capture node. Rename struct fimc_vid_cap::fmt to more relevant 'mf' to avoid confusion. 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/s5p-fimc/fimc-reg.c
|
131b6c619758ed8fd16d26b06a423801a497b867 |
|
25-Aug-2011 |
Sylwester Nawrocki <s.nawrocki@samsung.com> |
[media] s5p-fimc: Convert to the new control framework Convert the v4l controls code to use the new control framework. fimc_ctrls_activate/deactivate functions are introduced for the transparent DMA transfer mode (JPEG), where the rotation and flipping controls are not supported. The capture video node does not inherit sensors' controls when the subdevs are configured by the user space (user_subdev_api == true). However by default after the driver's initialization the 'user-subdev_api' flag is false and any sensor controls will also be available at the video node. When the pipeline links are disconnected through the media device the FIMC and any sensor inherited controls are destroyed and then again created when the pipeline connection completes. 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/s5p-fimc/fimc-reg.c
|
30c9939d79d6edf64092148842835893d156b672 |
|
10-Jun-2011 |
Sylwester Nawrocki <s.nawrocki@samsung.com> |
[media] s5p-fimc: Remove v4l2_device from video capture and m2m driver Currently there is a v4l2_device instance being registered per each (capture and memory-to-memory) video node created per FIMC H/W instance. This patch is a prerequisite for using the top level v4l2_device instantiated by the media device driver. To retain current debug trace semantic (so it's possible to distinguish between the capture and m2m FIMC) the video_device is used in place of v4l2_device where appropriate. 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/s5p-fimc/fimc-reg.c
|
e9e21083ef9361f89e19bb709eac441edc24ba02 |
|
02-Sep-2011 |
Sylwester Nawrocki <s.nawrocki@samsung.com> |
[media] s5p-fimc: Add runtime PM support in the mem-to-mem driver Add runtime PM and system sleep support in the memory-to-memory driver. It's required to enable the FIMC operation on Exynos4 SoCs. This patch prevents system boot failure when the driver is compiled in, as it now tries to access its I/O memory without first enabling the corresponding power domain. The camera capture device suspend/resume is not fully covered, the capture device is just powered on/off during the video node open/close. However this enables it's normal operation on Exynos4 SoCs. [mchehab@redhat.com: fix a small checkpatch error] 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/s5p-fimc/fimc-reg.c
|
25985edcedea6396277003854657b5f3cb31a628 |
|
31-Mar-2011 |
Lucas De Marchi <lucas.demarchi@profusion.mobi> |
Fix common misspellings Fixes generated by 'codespell' and manually reviewed. Signed-off-by: Lucas De Marchi <lucas.demarchi@profusion.mobi>
/drivers/media/video/s5p-fimc/fimc-reg.c
|
e0eec9af8bf599642f2730ed207296a92e6204aa |
|
21-Feb-2011 |
Sylwester Nawrocki <s.nawrocki@samsung.com> |
[media] s5p-fimc: Add a platform data entry for MIPI-CSI data alignment Allow the MIPI-CSI data alignment to be defined in the board setup as it may be different across various camera sensors. 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/s5p-fimc/fimc-reg.c
|
5bbe425e57d3ca715cfe9c98bac5f8f07a96c81a |
|
29-Dec-2010 |
Hyunwoong Kim <khw0178.kim@samsung.com> |
[media] s5p-fimc: fix MSCTRL.FIFO_CTRL for performance enhancement This patch fixes the value of FIFO_CTRL in MSCTRL. Main-scaler has the value to specify a basis FIFO control of input DMA. The description of FIFO_CTRL has been changed as below. 0 = FIFO Empty (Next burst transaction is possible when FIFO is empty) 1 = FIFO Full (Next burst transaction is possible except Full FIFO) Value '1' is recommended to enhance the FIMC operation performance. Reviewed-by: Jonghun Han <jonghun.han@samsung.com> Signed-off-by: Hyunwoong Kim <khw0178.kim@samsung.com> Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
/drivers/media/video/s5p-fimc/fimc-reg.c
|
70f66ea2aafbd9022a5dcdfd823538e540873585 |
|
28-Dec-2010 |
Sylwester Nawrocki <s.nawrocki@samsung.com> |
[media] s5p-fimc: Move scaler details handling to the register API file 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/s5p-fimc/fimc-reg.c
|
b241c6d6f4ceddddfd8097c702dcfdd6b38fbe18 |
|
28-Dec-2010 |
Hyunwoong Kim <khw0178.kim@samsung.com> |
[media] s5p-fimc: Configure scaler registers depending on FIMC version The main scaler has four SFRs for main scaler ratio depending on FIMC version. FIMC 4.x has only two SFRs and FIMC 5.x has four SFRs for main scaler. Those are MainHorRatio, MainHorRatio_ext, MainVerRatio and MainverRatio_ext. The FIMC 5.x has 15 bit resolution for scaling ratio as below. {MainHorRatio,MainHorRatio_ext} = {[14:6],[5:0]}. {MainVerRatio,MainVerRatio_ext} = {[14:6],[5:0]}. MainHorRatio = CISCCTRL[24:16], MainHorRatio_ext = CIEXTEN[15:10] MainVerRatio = CISCCTRL[8:0], MainVerRatio_ext = CIEXTEN[5:0] This patch supports FIMC 4.x and FIMC 5.x using platform_device_id::driver_data. Reviewed-by: Jonghun Han <jonghun.han@samsung.com> Signed-off-by: Hyunwoong Kim <khw0178.kim@samsung.com> Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
/drivers/media/video/s5p-fimc/fimc-reg.c
|
ac75934cc644051dc1b33b234448ea4a0990f31f |
|
27-Dec-2010 |
Sylwester Nawrocki <s.nawrocki@samsung.com> |
[media] s5p-fimc: Enable simultaneous rotation and flipping Map all (0, 90, 180, 270) deg counterclockwise rotation and horizontal and vertical flip controls to (0, 90) deg rotation, horizontal and vertical flip transformations available in the device. 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/s5p-fimc/fimc-reg.c
|
d9160afd31565e44ebbd909b283baad8c9a3c224 |
|
08-Dec-2010 |
Sylwester Nawrocki <s.nawrocki@samsung.com> |
[media] s5p-fimc: Use default input DMA burst count Increase the input DMA "successive burst count" to default value 4 to improve DMA performance. Minor cleanup. 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/s5p-fimc/fimc-reg.c
|
3d0ce7ed037af9bafec498246d0e4af8302d993a |
|
27-Dec-2010 |
Sylwester Nawrocki <s.nawrocki@samsung.com> |
[media] s5p-fimc: Derive camera bus width from mediabus pixelcode Remove bus_width from s5p_fimc_isp_info data structure. Determine camera data bus width based on mediabus pixel format. 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/s5p-fimc/fimc-reg.c
|
df7e09a351199ad9a70eb9ae3b072cc4fc59a9bb |
|
27-Dec-2010 |
Sylwester Nawrocki <s.nawrocki@samsung.com> |
[media] s5p-fimc: Rename s3c_fimc* to s5p_fimc* Change s3c_fimc.h header file name to s5p_fimc.h, replace s3c_fimc_* names with s5p_fimc_*. s3c_fimc need to be reserved for S3C series and s5p-fimc driver will not cover CAMIF devices in S3C SoC series. 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/s5p-fimc/fimc-reg.c
|
ef7af59b2cf950a44576d4364459ffd3d5d1d9bc |
|
08-Dec-2010 |
Sylwester Nawrocki <s.nawrocki@samsung.com> |
[media] s5p-fimc: Conversion to multiplanar formats Conversion to multiplanar color formats and minor cleanup. 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/s5p-fimc/fimc-reg.c
|
5f3cc4474cdeab3ee44962fd752baec24e8fecec |
|
07-Oct-2010 |
Sylwester Nawrocki <s.nawrocki@samsung.com> |
[media] s5p-fimc: Add camera capture support Add a video device driver per each FIMC entity to support the camera capture input mode. Video capture node is registered only if CCD sensor data is provided through driver's platfrom data and board setup code. Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com> Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com> Reviewed-by: Marek Szyprowski <m.szyprowski@samsung.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
/drivers/media/video/s5p-fimc/fimc-reg.c
|
47654df8a925ea4f6660b357cbd4ef2ead50c6ad |
|
08-Oct-2010 |
Sylwester Nawrocki <s.nawrocki@samsung.com> |
[media] s5p-fimc: Fix 90/270 deg rotation errors Due to errorneous swapping of image dimensions the rotation control was not handled properly in subsequent calls. 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/s5p-fimc/fimc-reg.c
|
548aafcd9e73b14fd959ec3689d1551bf7f388d3 |
|
08-Oct-2010 |
Sylwester Nawrocki <s.nawrocki@samsung.com> |
[media] s5p-fimc: mem2mem driver refactoring and cleanup Register access functions refactored for camera capture interface control. Removed the workqueue since it was only useful for FIFO output mode which is not supported at this time. Fixed errors on module unload. Comments and whitespace cleanup. 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/s5p-fimc/fimc-reg.c
|
77e6208252cccc377aecec18340ee0bfbcb02108 |
|
28-Sep-2010 |
Sylwester Nawrocki <s.nawrocki@samsung.com> |
[media] s5p-fimc: Register definition cleanup Add MIPI CSI format definitions, prepare DMA address definitions for interlaced input frame mode. 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/s5p-fimc/fimc-reg.c
|
5fd8f7388c9a8601c2dbe0da458df602fe427e83 |
|
03-Aug-2010 |
Sylwester Nawrocki <s.nawrocki@samsung.com> |
V4L/DVB: v4l: Add driver for Samsung S5P SoC video postprocessor This driver exports a video device node per each camera interface/ video postprocessor (FIMC) device contained in Samsung S5P SoC series. The driver is based on v4l2-mem2mem framework. Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com> Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com> Signed-off-by: Pawel Osciak <p.osciak@samsung.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
/drivers/media/video/s5p-fimc/fimc-reg.c
|