[RFC PATCH V0 3/7] [media] dt-bindings: mt8183: Added CAM-SMEM dt-bindings

2019-02-04 Thread Frederic Chen
From: Jungo Lin This patch adds the DT binding documentation for the shared memory between Pass 1 unit of the camera ISP system and the co-processor in Mediatek SoCs. Signed-off-by: Jungo Lin Signed-off-by: Frederic Chen --- .../bindings/media/mediatek,cam_smem.txt | 32

[RFC PATCH V0 1/7] [media] dt-bindings: mt8183: Add binding for ISP Pass 1 shared memory

2019-02-04 Thread Frederic Chen
This patch adds the binding for describing the shared memory used to exchange configuration and tuning data between the co-processor and Pass 1 (P1) unit of the camera ISP system on Mediatek SoCs. Signed-off-by: Frederic Chen --- .../mediatek,reserve-memory-cam_smem.txt | 44 ++

[RFC PATCH V0 0/7] media: platform: Add support for ISP Pass 1 on mt8183 SoC

2019-02-04 Thread Frederic Chen
Hello, This is a first version of the RFC patch series adding the driver for Pass 1 (P1) unit in Mediatek's camera ISP system on mt8183 SoC, which will be used in camera features of CrOS. It's the first time Mediatek develops ISP kernel drivers based on V4L2 and media controller framework. I poste

[RFC PATCH V0 5/7] dts: arm64: mt8183: Add ISP Pass 1 nodes

2019-02-04 Thread Frederic Chen
From: Jungo Lin Add nodes for Pass 1 unit of Mediatek's camera ISP system. Pass 1 unit embedded in Mediatek SOCs, works with the co-processor to process image signal from the image sensor and output RAW data. Signed-off-by: Jungo Lin Signed-off-by: Frederic Chen --- arch/arm64/boot/dts/mediat

[RFC PATCH V0 6/7] media: platform: Add Mediatek ISP Pass 1 driver KConfig

2019-02-04 Thread Frederic Chen
This patch adds KConfig for Pass 1 (P1) unit driver of Mediatek's camera ISP system. ISP P1 unit is embedded in Mediatek SOCs. It provides RAW processing which includes optical black correction, defect pixel correction, W/IR imbalance correction and lens shading correction. Signed-off-by: Frederic

[RFC PATCH V0 4/7] [media] dt-bindings: mt8183: Added camera ISP Pass 1 dt-bindings

2019-02-04 Thread Frederic Chen
From: Jungo Lin This patch adds DT binding document for the Pass 1 (P1) unit in Mediatek's camera ISP system. The Pass 1 unit grabs the sensor data out from the sensor interface, applies ISP effects and writes the image data to DRAM. Signed-off-by: Jungo Lin Signed-off-by: Frederic Chen --- .

[RFC PATCH V0 2/7] dts: arm64: mt8183: Add ISP Pass 1 shared memory node

2019-02-04 Thread Frederic Chen
From: Jungo Lin This patch adds a shared memory region used on mt8183 for exchanging tuning data between co-processor and the Pass 1 unit of the camera ISP system Signed-off-by: Jungo Lin Signed-off-by: Frederic Chen --- arch/arm64/boot/dts/mediatek/mt8183.dtsi | 14 ++ 1 file cha

compile error at sun6i_video

2019-02-04 Thread Kuninori Morimoto
Hi MultiMedia ML I got below compile error at SH. ... CC drivers/tty/tty_io.o /opt/RB02197/home/morimoto/save/WORK/linux/drivers/media/platform/sunxi/sun6i-csi/sun6i_video.c: In function 'sun6i_video_start_streaming': /opt/RB02197/home/morimoto/save/WORK/linux/drivers/media/platform/s

Re: [PATCH] media: vim2m: add bayer capture formats

2019-02-04 Thread Tomasz Figa
Hi Mauro, On Fri, Feb 1, 2019 at 11:19 PM Mauro Carvalho Chehab wrote: > > The vim2m device is interesting to simulate a webcam. Hmm, how would you simulate a webcam with a mem2mem device? The same process needs to control both OUTPUT and CAPTURE queues, so regular webcam apps wouldn't work. Be

Re: [PATCH 10/10] venus: dec: make decoder compliant with stateful codec API

2019-02-04 Thread Tomasz Figa
On Fri, Feb 1, 2019 at 12:18 AM Nicolas Dufresne wrote: > > Le jeudi 31 janvier 2019 à 22:34 +0900, Tomasz Figa a écrit : > > On Thu, Jan 31, 2019 at 9:42 PM Philipp Zabel > > wrote: > > > Hi Nicolas, > > > > > > On Wed, 2019-01-30 at 10:32 -0500, Nicolas Dufresne wrote: > > > > Le mercredi 30 j

Re: [PATCH v7 00/16] Intel IPU3 ImgU patchset

2019-02-04 Thread Tomasz Figa
Hi Jacopo, On Fri, Feb 1, 2019 at 7:04 PM Jacopo Mondi wrote: > > Hi Tomasz, > > On Tue, Jan 29, 2019 at 05:56:35PM +0900, Tomasz Figa wrote: > > On Mon, Jan 28, 2019 at 7:08 PM Jacopo Mondi wrote: > > > > > > Hi Sakari, everyone.. > > > > > > On Wed, Jan 02, 2019 at 10:26:56PM +0200, Sakari Ail

cron job: media_tree daily build: WARNINGS

2019-02-04 Thread Hans Verkuil
This message is generated daily by a cron job that builds media_tree for the kernels and architectures in the list below. Results of the daily build of media_tree: date: Tue Feb 5 05:00:10 CET 2019 media-tree git hash:f0ef022c85a899bcc7a1b3a0955c78a3d7109106 media_build git

Re: [PATCH] media: v4l2-tpg: Fix the memory layout of AYUV buffers

2019-02-04 Thread Vivek Kasireddy
On Sat, 2 Feb 2019 09:03:17 +0100 Hans Verkuil wrote: Hi Hans, > On 02/02/2019 01:48 AM, Vivek Kasireddy wrote: > > On Fri, 1 Feb 2019 10:08:52 +0100 > > Hans Verkuil wrote: > > Hi Hans, > > > >> On 2/1/19 3:29 AM, Vivek Kasireddy wrote: > >>> On Thu, 31 Jan 2019 14:36:42 +0100 > >>> Hans V

Re: [PATCH 3/3] media: imx: Allow BT.709 encoding for IC routes

2019-02-04 Thread Steve Longerbeam
Sorry this patch isn't working, it's not possible to set BT.709 encoding, working on a fix for v2. Steve On 2/3/19 11:47 AM, Steve Longerbeam wrote: The IC now supports BT.709 Y'CbCr encoding, in addition to existing BT.601 encoding, so allow both, for pipelines that route through the IC. Re

Need to retouch your photos?

2019-02-04 Thread Stacy
Need to retouch your photos? Deep etching or masking for your photos? We are the studio who can do those service for your photos. Please send photos to start Thanks, Stacy Salzgitdter Altednburg

Need to retouch your photos?

2019-02-04 Thread Stacy
Need to retouch your photos? Deep etching or masking for your photos? We are the studio who can do those service for your photos. Please send photos to start Thanks, Stacy Neudwied Heindberg

RE: [PATCH] media: staging/intel-ipu3: Implement lock for stream on/off operations

2019-02-04 Thread Mani, Rajmohan
Hi Sakari, [snip] > > > > > fail_stop_pipeline: > > > > > @@ -543,6 +546,8 @@ static void ipu3_vb2_stop_streaming(struct > > > > vb2_queue *vq) > > > > > dev_err(&imgu->pci_dev->dev, > > > > > "failed to stop subdev streaming\n"); > > > > > > > > > > + mut

[PATCH] vivid: add vertical down sampling to imagesize calc

2019-02-04 Thread André Almeida
To correctly set the size of the image in a plane, it's needed to divide the height of image by the vertical down sampling factor. This was only happening in vivid_try_fmt_vid_cap(), but now it applied in others sizeimage calculations as well. Signed-off-by: André Almeida --- drivers/media/platf

[GIT PULL for 5.1] Ipu3 patches

2019-02-04 Thread Sakari Ailus
Hi Mauro, Here are a few ipu3 driver fixes for 5.1. Please pull. The following changes since commit f0ef022c85a899bcc7a1b3a0955c78a3d7109106: media: vim2m: allow setting the default transaction time via parameter (2019-01-31 17:17:08 -0200) are available in the git repository at: ssh://

Need to retouch your photos?

2019-02-04 Thread Stacy
Need to retouch your photos? Deep etching or masking for your photos? We are the studio who can do those service for your photos. Please send photos to start Thanks, Stacy Wordms Hdaltern

[PATCH 1/2] soc_camera: Remove the mt9m001 SoC camera sensor driver

2019-02-04 Thread Sakari Ailus
There is a V4L2 sub-device sensor driver for the mt9m001. Remove the SoC camera one. Signed-off-by: Sakari Ailus --- drivers/media/i2c/soc_camera/Kconfig | 7 - drivers/media/i2c/soc_camera/Makefile | 1 - drivers/media/i2c/soc_camera/soc_mt9m001.c | 757 --

[PATCH 0/2] Remove more SoC camera sensor drivers

2019-02-04 Thread Sakari Ailus
Hi folks, This set removes two additional SoC camera sensor drivers that have corresponding V4L2 sub-device drivers. Sakari Ailus (2): soc_camera: Remove the mt9m001 SoC camera sensor driver soc_camera: Remove the rj45n1 SoC camera sensor driver drivers/media/i2c/soc_camera/Kconfig

[PATCH 2/2] soc_camera: Remove the rj45n1 SoC camera sensor driver

2019-02-04 Thread Sakari Ailus
There is a V4L2 sub-device sensor driver for the rj45n1. Remove the SoC camera one. Signed-off-by: Sakari Ailus --- drivers/media/i2c/soc_camera/Kconfig |6 - drivers/media/i2c/soc_camera/Makefile |1 - drivers/media/i2c/soc_camera/soc_rj54n1cb0c.c | 1415 ---

Need to retouch your photos?

2019-02-04 Thread Stacy
Need to retouch your photos? Deep etching or masking for your photos? We are the studio who can do those service for your photos. Please send photos to start Thanks, Stacy Ulmd Heindberg

[PATCHv2] media: videobuf2: Return error after allocation failure

2019-02-04 Thread Souptick Joarder
There is no point to continuing assignment after memory allocation failed, rather throw error immediately. Signed-off-by: Souptick Joarder --- v1 -> v2: Corrected typo in change log. drivers/media/common/videobuf2/videobuf2-vmalloc.c | 8 1 file changed, 4 insertions(+), 4 dele

[PATCH v3 2/2] media: atmel-isc: Update device tree binding documentation

2019-02-04 Thread Ken Sloat
From: Ken Sloat Update device tree binding documentation specifying how to enable BT656 with CRC decoding and specify properties for default parallel bus type. Signed-off-by: Ken Sloat --- Changes in v2: -Use correct media "bus-type" dt property. Changes in v3: -Specify default bus type.

[PATCH v3 1/2] media: atmel-isc: Add support for BT656 with CRC decoding

2019-02-04 Thread Ken Sloat
From: Ken Sloat The ISC driver currently supports ITU-R 601 encoding which utilizes the external hysync and vsync signals. ITU-R 656 format removes the need for these pins by embedding the sync pulses within the data packet. To support this feature, enable necessary register bits when this featu

Re: [PATCH v5 0/9] phy: Add configuration interface for MIPI D-PHY devices

2019-02-04 Thread Maxime Ripard
Hi Kishon, On Mon, Feb 04, 2019 at 03:33:31PM +0530, Kishon Vijay Abraham I wrote: > On 21/01/19 9:15 PM, Maxime Ripard wrote: > > Here is a set of patches to allow the phy framework consumers to test and > > apply runtime configurations. > > > > This is needed to support more phy classes that re

[PATCH v12 10/13] media: imx7.rst: add documentation for i.MX7 media driver

2019-02-04 Thread Rui Miguel Silva
Add rst document to describe the i.MX7 media driver and also a working example from the Warp7 board usage with a OV2680 sensor. Signed-off-by: Rui Miguel Silva Acked-by: Sakari Ailus --- Documentation/media/v4l-drivers/imx7.rst | 157 ++ Documentation/media/v4l-drivers/inde

[PATCH v12 13/13] media: MAINTAINERS: add entry for Freescale i.MX7 media driver

2019-02-04 Thread Rui Miguel Silva
Add maintainer entry for the imx7 media csi, mipi csis driver, dt-bindings and documentation. Signed-off-by: Rui Miguel Silva Acked-by: Sakari Ailus --- MAINTAINERS | 11 +++ 1 file changed, 11 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 51029a425dbe..ad267b3dd18b 100644

[PATCH v12 09/13] ARM: dts: imx7s-warp: add ov2680 sensor node

2019-02-04 Thread Rui Miguel Silva
Warp7 comes with a Omnivision OV2680 sensor, add the node here to make complete the camera data path for this system. Add the needed regulator to the analog voltage supply, the port and endpoints in mipi_csi node and the pinctrl for the reset gpio. Signed-off-by: Rui Miguel Silva --- arch/arm/bo

[PATCH v12 11/13] media: staging/imx: add i.MX7 entries to TODO file

2019-02-04 Thread Rui Miguel Silva
Add some i.MX7 related entries to TODO file. Signed-off-by: Rui Miguel Silva Acked-by: Sakari Ailus --- drivers/staging/media/imx/TODO | 9 + 1 file changed, 9 insertions(+) diff --git a/drivers/staging/media/imx/TODO b/drivers/staging/media/imx/TODO index aeeb15494a49..6f29b5ca5324 10

[PATCH v12 08/13] ARM: dts: imx7: Add video mux, csi and mipi_csi and connections

2019-02-04 Thread Rui Miguel Silva
This patch adds the device tree nodes for csi, video multiplexer and mipi-csi besides the graph connecting the necessary endpoints to make the media capture entities to work in imx7 Warp board. Signed-off-by: Rui Miguel Silva --- arch/arm/boot/dts/imx7s-warp.dts | 51

[PATCH v12 07/13] ARM: dts: imx7s: add multiplexer controls

2019-02-04 Thread Rui Miguel Silva
The IOMUXC General Purpose Register has bitfield to control video bus multiplexer to control the CSI input between the MIPI-CSI2 and parallel interface. Add that register and mask. Signed-off-by: Rui Miguel Silva Reviewed-by: Philipp Zabel --- arch/arm/boot/dts/imx7s.dtsi | 9 - 1 file

[PATCH v12 06/13] ARM: dts: imx7s: add mipi phy power domain

2019-02-04 Thread Rui Miguel Silva
Add power domain index 0 related with mipi-phy to imx7s. While at it rename pcie power-domain node to remove pgc prefix. Signed-off-by: Rui Miguel Silva --- arch/arm/boot/dts/imx7s.dtsi | 8 +++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/imx7s.dtsi b/arc

[PATCH v12 05/13] media: staging/imx7: add MIPI CSI-2 receiver subdev for i.MX7

2019-02-04 Thread Rui Miguel Silva
Adds MIPI CSI-2 subdev for i.MX7 to connect with sensors with a MIPI CSI-2 interface. Signed-off-by: Rui Miguel Silva --- drivers/staging/media/imx/Makefile |1 + drivers/staging/media/imx/imx7-mipi-csis.c | 1186 2 files changed, 1187 insertions(+) create mode

[PATCH v12 00/13] media: staging/imx7: add i.MX7 media driver

2019-02-04 Thread Rui Miguel Silva
Hi, This series introduces the Media driver to work with the i.MX7 SoC. it uses the already existing imx media core drivers but since the i.MX7, contrary to i.MX5/6, do not have an IPU and because of that some changes in the imx media core are made along this series to make it support that case. T

[PATCH v12 12/13] media: video-mux: add bayer formats

2019-02-04 Thread Rui Miguel Silva
Add non vendor bayer formats to the allowed format array. Signed-off-by: Rui Miguel Silva Reviewed-by: Philipp Zabel Acked-by: Sakari Ailus --- drivers/media/platform/video-mux.c | 20 1 file changed, 20 insertions(+) diff --git a/drivers/media/platform/video-mux.c b/dr

[PATCH v12 04/13] media: staging/imx7: add imx7 CSI subdev driver

2019-02-04 Thread Rui Miguel Silva
This add the media entity subdevice and control driver for the i.MX7 CMOS Sensor Interface. Signed-off-by: Rui Miguel Silva --- drivers/staging/media/imx/Kconfig |9 +- drivers/staging/media/imx/Makefile |2 + drivers/staging/media/imx/imx7-media-csi.c | 1365 +++

[PATCH v12 02/13] media: staging/imx: rearrange group id to take in account IPU

2019-02-04 Thread Rui Miguel Silva
Some imx system do not have IPU, so prepare the imx media drivers to support this kind of devices. Rename the group ids to include an _IPU_ prefix, add a new group id to support systems with only a CSI without IPU, and also rename the create internal links to make it clear that only systems with IP

[PATCH v12 01/13] media: staging/imx: refactor imx media device probe

2019-02-04 Thread Rui Miguel Silva
Refactor and move media device initialization code to a new common module, so it can be used by other devices, this will allow for example a near to introduce imx7 CSI driver, to use this media device. Signed-off-by: Rui Miguel Silva --- drivers/staging/media/imx/Makefile| 1 + .../

[PATCH v12 03/13] media: dt-bindings: add bindings for i.MX7 media driver

2019-02-04 Thread Rui Miguel Silva
Add bindings documentation for i.MX7 media drivers. The imx7 MIPI CSI2 and imx7 CMOS Sensor Interface. Signed-off-by: Rui Miguel Silva Reviewed-by: Rob Herring Acked-by: Sakari Ailus --- .../devicetree/bindings/media/imx7-csi.txt| 45 ++ .../bindings/media/imx7-mipi-csi2.txt

Re: [PATCH v5 0/9] phy: Add configuration interface for MIPI D-PHY devices

2019-02-04 Thread Kishon Vijay Abraham I
On 21/01/19 9:15 PM, Maxime Ripard wrote: > Hi, > > Here is a set of patches to allow the phy framework consumers to test and > apply runtime configurations. > > This is needed to support more phy classes that require tuning based on > parameters depending on the current use case of the device

[PATCHv2 1/3] vb2: replace bool by bitfield in vb2_buffer

2019-02-04 Thread hverkuil-cisco
From: Hans Verkuil The bool type is not recommended for use in structs, so replace these by bitfields. Signed-off-by: Hans Verkuil --- drivers/media/common/videobuf2/videobuf2-core.c | 12 ++-- include/media/videobuf2-core.h | 4 ++-- 2 files changed, 8 insertions(+),

[PATCHv2 2/3] vb2: keep track of timestamp status

2019-02-04 Thread hverkuil-cisco
From: Hans Verkuil If a stream is stopped, or if a USERPTR/DMABUF buffer is queued backed by a different user address or dmabuf fd, then the timestamp should be skipped by vb2_find_timestamp since the memory it refers to is no longer valid. So keep track of a 'copied_timestamp' state: it is set

[PATCHv2 0/3] Improve vb2_find_buffer

2019-02-04 Thread hverkuil-cisco
From: Hans Verkuil This supersedes my previous patch: https://www.mail-archive.com/linux-media@vger.kernel.org/msg144099.html Rather than marking a timestamp of 0 as 'special', I add a bitfield to keep track of the validity of the timestamp. The last patch also adds extra checks to verify that

[PATCHv2 3/3] vb2: add 'match' arg to vb2_find_buffer()

2019-02-04 Thread hverkuil-cisco
From: Hans Verkuil When finding a buffer vb2_find_buffer() should also check if the properties of the found buffer (i.e. number of planes and plane sizes) match the properties of the 'match' buffer. Update the cedrus driver accordingly. Signed-off-by: Hans Verkuil --- drivers/media/common/vid

Re: [PATCH v2 00/13] media: mt9m001: switch soc_mt9m001 to a standard subdev sensor driver

2019-02-04 Thread Sakari Ailus
Hi Mita-san, On Tue, Jan 08, 2019 at 11:51:37PM +0900, Akinobu Mita wrote: > This patchset converts soc_camera mt9m001 driver to a standard subdev > sensor driver. > > * v2 > - Update binding doc suggested by Rob Herring. > - Fix MODULE_LICENSE() masmatch. > - Sort headers alphabetically. > - Add

Re: [PATCH][next] media: staging: intel-ipu3: fix unsigned comparison with < 0

2019-02-04 Thread Sakari Ailus
On Sat, Feb 02, 2019 at 10:12:41PM +, Colin Ian King wrote: > ping? I seem to have applied this to a wrong branch, it'll now be part of my next pull request to Mauro. Thanks! > > On 22/12/2018 11:49, Colin King wrote: > > From: Colin Ian King > > > > The comparison css->pipes[pipe].bindex

Re: [PATCH 2/3] media: sun6i: Add support for RGB565 formats

2019-02-04 Thread Maxime Ripard
On Mon, Feb 04, 2019 at 12:03:57AM +0800, Chen-Yu Tsai wrote: > The CSI controller can take raw data from the data bus and output RGB565 > format. The controller does not distinguish between RGB565 LE and BE. > Instead this is determined by the media bus format, i.e. the format or > order the senso

Re: [PATCH 1/3] media: sun6i: Fix CSI regmap's max_register

2019-02-04 Thread Maxime Ripard
On Mon, Feb 04, 2019 at 12:03:56AM +0800, Chen-Yu Tsai wrote: > max_register is currently set to 0x1000. This is beyond the mapped > address range of the hardware, so attempts to dump the regmap from > debugfs would trigger a kernel exception. > > Furthermore, the useful registers only occupy a sm