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

2019-01-24 Thread Tomasz Figa
.Hi Stan, On Fri, Jan 18, 2019 at 1:21 AM Stanimir Varbanov wrote: > > This refactored code for start/stop streaming vb2 operations and > adds a state machine handling similar to the one in stateful codec > API documentation. One major change is that now the HFI session is > started on STREAMON(O

Request for Quotation

2019-01-24 Thread Sasha Kelley
Nice day to you! My Names Sasha Kelley from Earthlink, Inc. Moscow Russia There is an available invitation to tender suitable for your  products and I would like to inquire if your company will be  interested to submit offer for your products in Moscow Russia. Please confirm interest by sending

[PATCH 2/3] media: remove unneeded header search paths

2019-01-24 Thread Masahiro Yamada
I was able to build without these extra header search paths. Signed-off-by: Masahiro Yamada --- drivers/media/dvb-frontends/cxd2880/Makefile | 2 -- drivers/media/pci/bt8xx/Makefile | 1 - drivers/media/platform/sti/c8sectpfe/Makefile | 1 - drivers/media/radio/Makefile

[PATCH 3/3] media: prefix header search paths with $(srctree)/

2019-01-24 Thread Masahiro Yamada
Currently, the Kbuild core manipulates header search paths in a crazy way [1]. To fix this mess, I want all Makefiles to add explicit $(srctree)/ to the search paths in the srctree. Some Makefiles are already written in that way, but not all. The goal of this work is to make the notation consisten

[PATCH 1/3] media: coda: remove -I$(src) header search path

2019-01-24 Thread Masahiro Yamada
Remove the header search path to the current directory. The compiler will search headers in the current directory by using #include "..." instead of #include <...> Also, change TRACE_INCLUDE_PATH to point to the location of trace.h. Signed-off-by: Masahiro Yamada --- drivers/media/platform/co

[PATCH 0/3] media: clean-up header search paths and add $(srctree)/ prefix

2019-01-24 Thread Masahiro Yamada
My main motivation is to get rid of crappy header search path manipulation from Kbuild core. Before that, I want to do as many treewide cleanups as possible. If you are interested in the big picture of this work, the full patch set is available at: git://git.kernel.org/pub/scm/linux/kernel/git/ma

Re: [PATCHv2 3/3] Documentation/media: rename "Codec Interface"

2019-01-24 Thread Alexandre Courbot
On Wed, Jan 23, 2019 at 5:07 PM Hans Verkuil wrote: > > The "Codec Interface" chapter is poorly named since codecs are just one > use-case of the Memory-to-Memory Interface. Rename it and clean up the > text a bit. > > Signed-off-by: Hans Verkuil > --- > Incorporated Tomasz' comments. > > Note th

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

2019-01-24 Thread Alexandre Courbot
On Thu, Jan 24, 2019 at 9:34 PM Stanimir Varbanov wrote: > > Hi Alex, > > Thanks for the comments! > > On 1/24/19 10:44 AM, Alexandre Courbot wrote: > > On Fri, Jan 18, 2019 at 1:21 AM Stanimir Varbanov > > wrote: > >> > >> This refactored code for start/stop streaming vb2 operations and > > > >

Re: [PATCH 07/10] venus: helpers: add three more helper functions

2019-01-24 Thread Alexandre Courbot
On Thu, Jan 24, 2019 at 5:54 PM Stanimir Varbanov wrote: > > Hi Alex, > > Thanks for the review! > > On 1/24/19 10:43 AM, Alexandre Courbot wrote: > > On Fri, Jan 18, 2019 at 1:21 AM Stanimir Varbanov > > wrote: > >> > >> This adds three more helper functions: > >> * for internal buffers realloc

Re: [PATCH 09/10] venus: vdec: allow bigger sizeimage set by clients

2019-01-24 Thread Alexandre Courbot
On Thu, Jan 24, 2019 at 7:05 PM Stanimir Varbanov wrote: > > Hi Alex, > > Thanks for the comments! > > On 1/24/19 10:43 AM, Alexandre Courbot wrote: > > On Fri, Jan 18, 2019 at 1:21 AM Stanimir Varbanov > > wrote: > >> > >> In most of the cases the client will know better what could be > >> the m

Re: [PATCH 00/10] Venus stateful Codec API

2019-01-24 Thread Alexandre Courbot
On Thu, Jan 24, 2019 at 7:13 PM Stanimir Varbanov wrote: > > Hi Alex, > > Thank you for review and valuable comments! > > On 1/24/19 10:43 AM, Alexandre Courbot wrote: > > Hi Stanimir, > > > > On Fri, Jan 18, 2019 at 1:20 AM Stanimir Varbanov > > wrote: > >> > >> Hello, > >> > >> This aims to mak

Re: [PATCHv2 3/4] vb2 core: add new queue_setup_lock/unlock ops

2019-01-24 Thread Tomasz Figa
Hi Hans, On Mon, Nov 19, 2018 at 8:09 PM Hans Verkuil wrote: > > If queue->lock is different from the video_device lock, then > you need to serialize queue_setup with VIDIOC_S_FMT, and this > should be done by the driver. > > Signed-off-by: Hans Verkuil > --- > .../media/common/videobuf2/videob

Re: [PATCHv2 4/4] vivid: add queue_setup_(un)lock ops

2019-01-24 Thread Tomasz Figa
On Mon, Nov 19, 2018 at 8:09 PM Hans Verkuil wrote: > > Add these ops to serialize queue_setup with VIDIOC_S_FMT. > > Signed-off-by: Hans Verkuil > --- > drivers/media/platform/vivid/vivid-core.c| 14 ++ > drivers/media/platform/vivid/vivid-core.h| 3 +++ > drivers/media/pla

Re: [PATCH 7/9] videobuf2/videobuf2-dma-sg.c: Convert to use vm_insert_range_buggy

2019-01-24 Thread Souptick Joarder
Hi Marek, On Tue, Jan 22, 2019 at 8:37 PM Marek Szyprowski wrote: > > Hi Souptick, > > On 2019-01-11 16:11, Souptick Joarder wrote: > > Convert to use vm_insert_range_buggy to map range of kernel memory > > to user vma. > > > > This driver has ignored vm_pgoff. We could later "fix" these drivers

Re: [PATCHv2 1/4] vb2: add waiting_in_dqbuf flag

2019-01-24 Thread Tomasz Figa
Hi Hans, On Mon, Nov 19, 2018 at 8:09 PM Hans Verkuil wrote: > > Calling VIDIOC_DQBUF can release the core serialization lock pointed to > by vb2_queue->lock if it has to wait for a new buffer to arrive. > > However, if userspace dup()ped the video device filehandle, then it is > possible to read

cron job: media_tree daily build: OK

2019-01-24 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: Fri Jan 25 05:00:12 CET 2019 media-tree git hash:337e90ed028643c7acdfd0d31e3224d05ca03d66 media_build git

Re: [PATCHv2.1 2/4] vivid: use per-queue mutexes instead of one global mutex.

2019-01-24 Thread Tomasz Figa
On Mon, Nov 19, 2018 at 9:22 PM Hans Verkuil wrote: > > From d15ccd98e557a8cef1362cb591eb3011a6d8e1fd Mon Sep 17 00:00:00 2001 > From: Hans Verkuil > Date: Fri, 16 Nov 2018 12:14:31 +0100 > Subject: [PATCH 2/4] vivid: use per-queue mutexes instead of one global mutex. > > This avoids having to un

Re: [PATCH v2 2/2] media: docs-rst: Document memory-to-memory video encoder interface

2019-01-24 Thread Tomasz Figa
On Fri, Jan 25, 2019 at 5:14 AM Nicolas Dufresne wrote: > > Le mercredi 23 janvier 2019 à 14:04 +0100, Hans Verkuil a écrit : > > > > Does this return the same set of formats as in the 'Querying > > > > Capabilities' phase? > > > > > > > > > > It's actually an interesting question. At this point

Re: [PATCH v2 2/2] media: docs-rst: Document memory-to-memory video encoder interface

2019-01-24 Thread Tomasz Figa
On Fri, Jan 25, 2019 at 5:04 AM Nicolas Dufresne wrote: > > Le mercredi 23 janvier 2019 à 12:28 +0100, Hans Verkuil a écrit : > > On 01/23/19 11:00, Tomasz Figa wrote: > > > On Sat, Nov 17, 2018 at 8:37 PM Hans Verkuil wrote: > > > > On 11/17/2018 05:18 AM, Nicolas Dufresne wrote: > > > > > Le lu

Re: [PATCH v2 1/2] media: docs-rst: Document memory-to-memory video decoder interface

2019-01-24 Thread Tomasz Figa
On Fri, Jan 25, 2019 at 4:55 AM Nicolas Dufresne wrote: > > Le jeudi 24 janvier 2019 à 18:06 +0900, Tomasz Figa a écrit : > > > Actually I just realized the last point might not even be achievable > > > for some of the decoders (s5p-mfc, mtk-vcodec), as they don't report > > > which frame originat

Re: [PATCH 1/3] media: dt: bindings: sunxi-ir: Add A64 compatible

2019-01-24 Thread Chen-Yu Tsai
On Fri, Jan 25, 2019 at 2:57 AM Jernej Škrabec wrote: > > Dne ponedeljek, 21. januar 2019 ob 10:57:57 CET je Chen-Yu Tsai napisal(a): > > On Mon, Jan 21, 2019 at 5:50 PM Maxime Ripard > wrote: > > > Hi, > > > > > > I'm a bit late to the party, sorry for that. > > > > > > On Sat, Jan 12, 2019 at 0

Re: [PATCH 1/3] media: dt: bindings: sunxi-ir: Add A64 compatible

2019-01-24 Thread Chen-Yu Tsai
On Tue, Jan 22, 2019 at 9:38 PM Rob Herring wrote: > > On Mon, Jan 21, 2019 at 8:16 PM Chen-Yu Tsai wrote: > > > > On Tue, Jan 22, 2019 at 8:19 AM Rob Herring wrote: > > > > > > On Mon, Jan 21, 2019 at 05:57:57PM +0800, Chen-Yu Tsai wrote: > > > > On Mon, Jan 21, 2019 at 5:50 PM Maxime Ripard >

[PATCH zbar 1/1] v4l2: add fallback for systems without v4l2_query_ext_ctrl

2019-01-24 Thread james . hilliard1
From: James Hilliard Signed-off-by: James Hilliard --- zbar/video/v4l2.c | 22 ++ 1 file changed, 22 insertions(+) diff --git a/zbar/video/v4l2.c b/zbar/video/v4l2.c index 0d18094..1610b95 100644 --- a/zbar/video/v4l2.c +++ b/zbar/video/v4l2.c @@ -55,6 +55,28 @@ #define V4

[PATCH v3 1/1] media: ipu3: update meta format documentation

2019-01-24 Thread Yong Zhi
Language improvements, fix entity naming, make pipeline a graph and move device usage documentation to device documentation ipu3.rst. Signed-off-by: Yong Zhi --- v3 - Outline main changes in commit message. - Remove the intel-ipu3.h renaming from this patch. v2 Rename stats_4a_config to stats_3a

[PATCH v10 1/4] media: Media Device Allocator API

2019-01-24 Thread Shuah Khan
Media Device Allocator API to allows multiple drivers share a media device. This API solves a very common use-case for media devices where one physical device (an USB stick) provides both audio and video. When such media device exposes a standard USB Audio class, a proprietary Video class, two or m

[PATCH v10 2/4] media: change au0828 to use Media Device Allocator API

2019-01-24 Thread Shuah Khan
Media Device Allocator API to allows multiple drivers share a media device. This API solves a very common use-case for media devices where one physical device (an USB stick) provides both audio and video. When such media device exposes a standard USB Audio class, a proprietary Video class, two or m

[PATCH v10 4/4] sound/usb: Use Media Controller API to share media resources

2019-01-24 Thread Shuah Khan
Media Device Allocator API to allows multiple drivers share a media device. This API solves a very common use-case for media devices where one physical device (an USB stick) provides both audio and video. When such media device exposes a standard USB Audio class, a proprietary Video class, two or m

[PATCH v10 3/4] media: media.h: Enable ALSA MEDIA_INTF_T* interface types

2019-01-24 Thread Shuah Khan
Move PCM_CAPTURE, PCM_PLAYBACK, and CONTROL ALSA MEDIA_INTF_T* interface types back into __KERNEL__ scope to get ready for adding ALSA support for these to the media controller. Signed-off-by: Shuah Khan --- include/uapi/linux/media.h | 25 +++-- 1 file changed, 15 insertions

[PATCH v10 0/4] Media Device Allocator API

2019-01-24 Thread Shuah Khan
Media Device Allocator API to allows multiple drivers share a media device. This API solves a very common use-case for media devices where one physical device (an USB stick) provides both audio and video. When such media device exposes a standard USB Audio class, a proprietary Video class, two or m

Re: [PATCH v4l-utils] Introduce v4l2-get-device tool

2019-01-24 Thread Laurent Pinchart
Hello, On Thu, Jan 24, 2019 at 10:24:48AM +0100, Hans Verkuil wrote: > Resurrecting this thread, since this functionality would be really useful :-) > > On 11/10/18 12:17 PM, Ezequiel Garcia wrote: > > On Sat, 2018-11-10 at 12:09 +0100, Hans Verkuil wrote: > >> On 11/10/2018 12:01 PM, Ezequiel Ga

Re: [PATCH v2 2/2] media: docs-rst: Document memory-to-memory video encoder interface

2019-01-24 Thread Nicolas Dufresne
Le mercredi 23 janvier 2019 à 14:04 +0100, Hans Verkuil a écrit : > > > Does this return the same set of formats as in the 'Querying > > > Capabilities' phase? > > > > > > > It's actually an interesting question. At this point we wouldn't have > > the OUTPUT resolution set yet, so that would be

Re: [PATCH v2 2/2] media: docs-rst: Document memory-to-memory video encoder interface

2019-01-24 Thread Nicolas Dufresne
Le mercredi 23 janvier 2019 à 12:28 +0100, Hans Verkuil a écrit : > On 01/23/19 11:00, Tomasz Figa wrote: > > On Sat, Nov 17, 2018 at 8:37 PM Hans Verkuil wrote: > > > On 11/17/2018 05:18 AM, Nicolas Dufresne wrote: > > > > Le lundi 12 novembre 2018 à 14:23 +0100, Hans Verkuil a écrit : > > > > >

Re: [PATCH v2 2/2] media: docs-rst: Document memory-to-memory video encoder interface

2019-01-24 Thread Nicolas Dufresne
Le mercredi 23 janvier 2019 à 19:02 +0900, Tomasz Figa a écrit : > On Sun, Nov 18, 2018 at 10:34 AM Nicolas Dufresne > wrote: > > Le samedi 17 novembre 2018 à 12:37 +0100, Hans Verkuil a écrit : > > > > > Does V4L2_CID_MIN_BUFFERS_FOR_CAPTURE make any sense for encoders? > > > > > > > > We do ac

Re: [PATCH v2 1/2] media: docs-rst: Document memory-to-memory video decoder interface

2019-01-24 Thread Nicolas Dufresne
Le jeudi 24 janvier 2019 à 18:06 +0900, Tomasz Figa a écrit : > > Actually I just realized the last point might not even be achievable > > for some of the decoders (s5p-mfc, mtk-vcodec), as they don't report > > which frame originates from which bitstream buffer and the driver just > > picks the mo

Re: [PATCH 1/3] media: dt: bindings: sunxi-ir: Add A64 compatible

2019-01-24 Thread Jernej Škrabec
Dne ponedeljek, 21. januar 2019 ob 10:57:57 CET je Chen-Yu Tsai napisal(a): > On Mon, Jan 21, 2019 at 5:50 PM Maxime Ripard wrote: > > Hi, > > > > I'm a bit late to the party, sorry for that. > > > > On Sat, Jan 12, 2019 at 09:56:11AM +0800, Chen-Yu Tsai wrote: > > > On Sat, Jan 12, 2019 at 1:3

[PATCH v7 3/5] arm64: dts: allwinner: a64: Add A64 CSI controller

2019-01-24 Thread Jagan Teki
Add dts node details for Allwinner A64 CSI controller. A64 CSI has similar features as like in H3, but the CSI_SCLK need to update it to 300MHz than default clock rate. Signed-off-by: Jagan Teki --- arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi | 20 +++ 1 file changed, 20 inser

[PATCH v7 0/5] media/sun6i: Allwinner A64 CSI support

2019-01-24 Thread Jagan Teki
Add CSI support for Allwinner A64. Here is previous series[1] Changes for v7: - Drop quirk change, and add as suggusted by Maxime - Use csi instead csi0 in pinctrl function Changes for v6: - set the mod rate in seett_power instead of probe Changes for v5: - Add mod_rate quirk for better handling c

[PATCH v7 4/5] arm64: dts: allwinner: a64: Add pinmux setting for CSI MCLK on PE1

2019-01-24 Thread Jagan Teki
Some camera modules have the SoC feeding a master clock to the sensor instead of having a standalone crystal. This clock signal is generated from the clock control unit and output from the CSI MCLK function of pin PE1. Add a pinmux setting for it for camera sensors to reference. Signed-off-by: Ja

[DO NOT MERGE] [PATCH v7 5/5] arm64: dts: allwinner: bananapi-m64: Add HDF5640 camera module

2019-01-24 Thread Jagan Teki
Bananapi M64 comes with an optional sensor based on the ov5640, add support for it with below pin information. - PE13, PE12 via i2c-gpio bitbanging - CLK_CSI_MCLK as external clock - PE1 as external clock pin muxing - DLDO3 as AVDD supply - ALDO1 as DOVDD supply - ELDO3 as DVDD supply - PE16 gpio

[PATCH v7 2/5] media: sun6i: Add A64 CSI block support

2019-01-24 Thread Jagan Teki
CSI block in Allwinner A64 has similar features as like in H3, but the default CSI_SCLK rate cannot work properly to drive the connected sensor interface. The tested mod cock rate is 300 MHz and BSP vfe media driver is also using the same rate. Unfortunately there is no valid information about clo

[PATCH v7 1/5] dt-bindings: media: sun6i: Add A64 CSI compatible

2019-01-24 Thread Jagan Teki
Allwinner A64 CSI is a single channel time-multiplexed BT.656 protocol interface. Add separate compatible string for A64 since it require explicit change in sun6i_csi driver to update default CSI_SCLK rate. Reviewed-by: Rob Herring Signed-off-by: Jagan Teki --- Documentation/devicetree/binding

[PATCH] media: ov5640: Fix set 15fps regression

2019-01-24 Thread Jagan Teki
The ov5640_try_frame_interval operation updates the FPS as per user input based on default ov5640_frame_rate, OV5640_30_FPS which is failed to update when user trigger 15fps. So, initialize the default ov5640_frame_rate to OV5640_15_FPS so-that it can satisfy to update all fps. Fixes: 5a3ad937bc7

RE: [PATCH v2] media: ipu3: update meta format documentation

2019-01-24 Thread Zhi, Yong
Hi, Sakari, > -Original Message- > From: Sakari Ailus [mailto:sakari.ai...@linux.intel.com] > Sent: Wednesday, January 23, 2019 11:25 PM > To: Zhi, Yong > Cc: linux-media@vger.kernel.org; laurent.pinch...@ideasonboard.com; > Mani, Rajmohan ; tf...@chromium.org; > hans.verk...@cisco.com; m

Re: [PATCH v2] Input: Add missing event codes for common IR remote buttons

2019-01-24 Thread VDR User
> > > KEY_ASPECT_RATIO (formerly KEY_SCREEN). > > > > Physical displays have a single set aspect ratio (W/H). Images have > > their own aspect ratios. When the AR of the video to be display and > > the display itself are mismatched, you have to do something > > (letterbox, pillarbox, windowbox) to

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

2019-01-24 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 v11 10/13] media: imx7.rst: add documentation for i.MX7 media driver

2019-01-24 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 --- Documentation/media/v4l-drivers/imx7.rst | 157 ++ Documentation/media/v4l-drivers/index.rst | 1 + 2 files c

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

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

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

2019-01-24 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 v11 13/13] media: MAINTAINERS: add entry for Freescale i.MX7 media driver

2019-01-24 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 --- MAINTAINERS | 11 +++ 1 file changed, 11 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 51029a425dbe..ad267b3dd18b 100644 --- a/MAINTAINERS +++ b

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

2019-01-24 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 | 1184 2 files changed, 1185 insertions(+) create mode

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

2019-01-24 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 v11 11/13] media: staging/imx: add i.MX7 entries to TODO file

2019-01-24 Thread Rui Miguel Silva
Add some i.MX7 related entries to TODO file. Signed-off-by: Rui Miguel Silva --- 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 100644 --- a/drivers/stagi

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

2019-01-24 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 v11 03/13] media: staging/imx7: add imx7 CSI subdev driver

2019-01-24 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/imx7-media-csi.c | 1360 1 file changed, 1360 insertions(+) create mode 100644 drivers/staging/media/imx/imx7-media-csi.

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

2019-01-24 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 ++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/drivers/stag

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

2019-01-24 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 v11 00/13] media: staging/imx7: add i.MX7 media driver

2019-01-24 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 v11 02/13] media: dt-bindings: add bindings for i.MX7 media driver

2019-01-24 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 v4l-utils] Introduce v4l2-get-device tool

2019-01-24 Thread Ezequiel Garcia
On Thu, 2019-01-24 at 10:24 +0100, Hans Verkuil wrote: > Resurrecting this thread, since this functionality would be really useful :-) > Thanks for the resurrection chant :-) > On 11/10/18 12:17 PM, Ezequiel Garcia wrote: > > On Sat, 2018-11-10 at 12:09 +0100, Hans Verkuil wrote: > > > On 11/10/

[GIT PULL FOR v5.1] vb2 + cedrus fixes/improvements

2019-01-24 Thread Hans Verkuil
The first two patches simplify the function to find buffers based on a timestamp: the current code only considered DONE and DEQUEUED buffers, but that is unnecessarily restrictive. The next two patches keep dmabuf-based buffers mapped when they are dequeued. This avoids having to re-map them if th

Want to start it?

2019-01-24 Thread Denna
Please let me know the status of your photos, waiting to retouching them. Do your photos need white background? sharpen? retouching? We can do it for you. Send us the test photos today and we can start to work on them. Thanks, Denna

Re: [PATCH v2 1/2] media: uapi: Add H264 low-level decoder API compound controls.

2019-01-24 Thread Ayaka
Sent from my iPad > On Jan 24, 2019, at 10:23 PM, Maxime Ripard wrote: > > Hi! > > On Sun, Jan 20, 2019 at 08:48:32PM +0800, ayaka wrote: > +struct v4l2_ctrl_h264_scaling_matrix { > +__u8 scaling_list_4x4[6][16]; > +__u8 scaling_list_8x8[6][64]; > +}; I wonder wh

Re: [PATCH v2 1/2] media: uapi: Add H264 low-level decoder API compound controls.

2019-01-24 Thread Maxime Ripard
Hi! On Sun, Jan 20, 2019 at 08:48:32PM +0800, ayaka wrote: > > > > +struct v4l2_ctrl_h264_scaling_matrix { > > > > + __u8 scaling_list_4x4[6][16]; > > > > + __u8 scaling_list_8x8[6][64]; > > > > +}; > > > I wonder which decoder want this. > > I'm not sure I follow you, scaling lists ar

[GIT PULL FOR v5.1] vicodec improvements/fixes

2019-01-24 Thread Hans Verkuil
This series fixes various vicodec issues and it now follows the stateful codec API. This ensures a good starting point for adding codec compliance tests and starting work to support the stateless codec variant. Regards, Hans The following changes since commit 337e90ed028643c7acdfd0d31e3

Re: [PATCH v2 2/2] media: cedrus: Add HEVC/H.265 decoding support

2019-01-24 Thread Paul Kocialkowski
Hi, On Tue, 2018-11-27 at 09:21 +0100, Maxime Ripard wrote: > Hi! > > On Fri, Nov 23, 2018 at 02:02:09PM +0100, Paul Kocialkowski wrote: > > This introduces support for HEVC/H.265 to the Cedrus VPU driver, with > > both uni-directional and bi-directional prediction modes supported. > > > > Field

[PATCH v2] Revert "media: cedrus: Allow using the current dst buffer as reference"

2019-01-24 Thread Paul Kocialkowski
This reverts commit cf20ae1535eb690a87c29b9cc7af51881384e967. The vb2_find_timestamp helper was modified to allow finding buffers regardless of their current state in the queue. This means that we no longer have to take particular care of references to the current capture buffer. Signed-off-by: P

Re: [PATCH] Revert "media: cedrus: Allow using the current dst buffer as reference"

2019-01-24 Thread Paul Kocialkowski
Hi, On Thu, 2019-01-24 at 11:32 +0100, Greg KH wrote: > On Thu, Jan 24, 2019 at 10:55:42AM +0100, Paul Kocialkowski wrote: > > This reverts commit cf20ae1535eb690a87c29b9cc7af51881384e967. > > > > The vb2_find_timestamp helper was modified to allow finding buffers > > regardless of their current

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

2019-01-24 Thread Stanimir Varbanov
Hi Alex, Thanks for the comments! On 1/24/19 10:44 AM, Alexandre Courbot wrote: > On Fri, Jan 18, 2019 at 1:21 AM Stanimir Varbanov > wrote: >> >> This refactored code for start/stop streaming vb2 operations and > > s/refactored/refactors? Ack. > >> adds a state machine handling similar to t

Re: [linux-sunxi] [PATCH v2 1/2] media: v4l: Add definitions for the HEVC slice format and controls

2019-01-24 Thread Ayaka
Sent from my iPad > On Jan 24, 2019, at 6:27 PM, Paul Kocialkowski > wrote: > > Hi, > >> On Thu, 2019-01-10 at 21:32 +0800, ayaka wrote: >> I forget a important thing, for the rkvdec and rk hevc decoder, it would >> requests cabac table, scaling list, picture parameter set and reference >

Re: [linux-sunxi] [PATCH v2 1/2] media: v4l: Add definitions for the HEVC slice format and controls

2019-01-24 Thread Ayaka
Sent from my iPad > On Jan 24, 2019, at 6:36 PM, Paul Kocialkowski > wrote: > > Hi, > >> On Tue, 2019-01-08 at 18:00 +0800, Ayaka wrote: >> >> Sent from my iPad >> >>> On Jan 8, 2019, at 4:38 PM, Paul Kocialkowski >>> wrote: >>> >>> Hi, >>> On Tue, 2019-01-08 at 09:16 +0800, Ayak

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

2019-01-24 Thread Philipp Zabel
On Wed, 2019-01-23 at 10:52 +, Rui Miguel Silva wrote: > Add non vendor bayer formats to the allowed format array. > > Signed-off-by: Rui Miguel Silva > --- > drivers/media/platform/video-mux.c | 20 > 1 file changed, 20 insertions(+) > > diff --git a/drivers/media/pla

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

2019-01-24 Thread Sakari Ailus
Hi Rui, On Wed, Jan 23, 2019 at 10:52:10AM +, Rui Miguel Silva wrote: > 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-

Re: [PATCH v3 0/2] Document memory-to-memory video codec interfaces

2019-01-24 Thread Hans Verkuil
On 01/24/19 11:04, Tomasz Figa wrote: > Late happy new year everyone. It's been a while, but here is the v3 of > the stateful mem2mem codec interfaces documentation. Sorry for taking so > long time to respin. (Again.) > > This series attempts to add the documentation of what was discussed > during

Re: [linux-sunxi] [PATCH v2 1/2] media: v4l: Add definitions for the HEVC slice format and controls

2019-01-24 Thread Paul Kocialkowski
Hi, On Tue, 2019-01-08 at 18:00 +0800, Ayaka wrote: > > Sent from my iPad > > > On Jan 8, 2019, at 4:38 PM, Paul Kocialkowski > > wrote: > > > > Hi, > > > > > On Tue, 2019-01-08 at 09:16 +0800, Ayaka wrote: > > > > > > Sent from my iPad > > > > > > > On Jan 7, 2019, at 5:57 PM, Paul Kocial

Re: [PATCH] Revert "media: cedrus: Allow using the current dst buffer as reference"

2019-01-24 Thread Greg KH
On Thu, Jan 24, 2019 at 10:55:42AM +0100, Paul Kocialkowski wrote: > This reverts commit cf20ae1535eb690a87c29b9cc7af51881384e967. > > The vb2_find_timestamp helper was modified to allow finding buffers > regardless of their current state in the queue. This means that we > no longer have to take p

Re: [linux-sunxi] [PATCH v2 1/2] media: v4l: Add definitions for the HEVC slice format and controls

2019-01-24 Thread Paul Kocialkowski
Hi, On Thu, 2019-01-10 at 21:32 +0800, ayaka wrote: > I forget a important thing, for the rkvdec and rk hevc decoder, it would > requests cabac table, scaling list, picture parameter set and reference > picture storing in one or various of DMA buffers. I am not talking about > the data been par

Re: [yavta PATCH v2 1/1] v4l2-ctl: Add support for META_OUTPUT buffer type

2019-01-24 Thread Sakari Ailus
Hi Hans, On Thu, Jan 24, 2019 at 09:44:13AM +0100, Hans Verkuil wrote: > Note: the subject it wrong, it's v4l-utils, not yavta. Oops, my bad. I must have been thinking of yavta when writing that. :-) And thanks for the review. > > On 1/22/19 1:05 PM, Sakari Ailus wrote: > > Add support for MET

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

2019-01-24 Thread Stanimir Varbanov
Hi Malathi, On 1/21/19 1:20 PM, mgot...@codeaurora.org wrote: > On 2019-01-17 21:50, Stanimir Varbanov wrote: >> This refactored code for start/stop streaming vb2 operations and >> adds a state machine handling similar to the one in stateful codec >> API documentation. One major change is that now

Re: [PATCH 4/6] ARM: dts: sunxi: h3-h5: Add pinmux setting for CSI MCLK on PE1

2019-01-24 Thread Chen-Yu Tsai
On Mon, Dec 3, 2018 at 5:46 PM Jagan Teki wrote: > > On Fri, Nov 30, 2018 at 1:28 PM Chen-Yu Tsai wrote: > > > > Some camera modules have the SoC feeding a master clock to the sensor > > instead of having a standalone crystal. This clock signal is generated > > from the clock control unit and out

Re: [PATCH 3/6] ARM: dts: sunxi: h3/h5: Drop A31 fallback compatible for CSI controller

2019-01-24 Thread Chen-Yu Tsai
On Mon, Dec 3, 2018 at 5:44 PM Jagan Teki wrote: > > On Fri, Nov 30, 2018 at 1:29 PM Chen-Yu Tsai wrote: > > > > The CSI controller found on the H3 (and H5) is a reduced version of the > > one found on the A31. It only has 1 channel, instead of 4 channels for > > time-multiplexed BT.656. Since th

Re: [PATCH 00/10] Venus stateful Codec API

2019-01-24 Thread Stanimir Varbanov
Hi Alex, Thank you for review and valuable comments! On 1/24/19 10:43 AM, Alexandre Courbot wrote: > Hi Stanimir, > > On Fri, Jan 18, 2019 at 1:20 AM Stanimir Varbanov > wrote: >> >> Hello, >> >> This aims to make Venus decoder compliant with stateful Codec API [1]. >> The patches 1-9 are prepa

Re: [PATCH 09/10] venus: vdec: allow bigger sizeimage set by clients

2019-01-24 Thread Stanimir Varbanov
Hi Alex, Thanks for the comments! On 1/24/19 10:43 AM, Alexandre Courbot wrote: > On Fri, Jan 18, 2019 at 1:21 AM Stanimir Varbanov > wrote: >> >> In most of the cases the client will know better what could be >> the maximum size for compressed data buffers. Change the driver >> to permit the us

[PATCH v3 1/2] media: docs-rst: Document memory-to-memory video decoder interface

2019-01-24 Thread Tomasz Figa
Due to complexity of the video decoding process, the V4L2 drivers of stateful decoder hardware require specific sequences of V4L2 API calls to be followed. These include capability enumeration, initialization, decoding, seek, pause, dynamic resolution change, drain and end of stream. Specifics of

[PATCH v3 2/2] media: docs-rst: Document memory-to-memory video encoder interface

2019-01-24 Thread Tomasz Figa
Due to complexity of the video encoding process, the V4L2 drivers of stateful encoder hardware require specific sequences of V4L2 API calls to be followed. These include capability enumeration, initialization, encoding, encode parameters change, drain and reset. Specifics of the above have been di

[PATCH v3 0/2] Document memory-to-memory video codec interfaces

2019-01-24 Thread Tomasz Figa
Late happy new year everyone. It's been a while, but here is the v3 of the stateful mem2mem codec interfaces documentation. Sorry for taking so long time to respin. (Again.) This series attempts to add the documentation of what was discussed during Media Workshops at LinuxCon Europe 2012 in Barcel

Re: [PATCH 08/10] venus: vdec_ctrls: get real minimum buffers for capture

2019-01-24 Thread Stanimir Varbanov
Hi Alex, Thanks for the comments! On 1/24/19 10:43 AM, Alexandre Courbot wrote: > On Fri, Jan 18, 2019 at 1:21 AM Stanimir Varbanov > wrote: >> >> Until now we returned num_output_bufs set during reqbuf but >> that could be wrong when we implement stateful Codec API. So >> get the minimum buffer

[PATCH] Revert "media: cedrus: Allow using the current dst buffer as reference"

2019-01-24 Thread Paul Kocialkowski
This reverts commit cf20ae1535eb690a87c29b9cc7af51881384e967. The vb2_find_timestamp helper was modified to allow finding buffers regardless of their current state in the queue. This means that we no longer have to take particular care of references to the current capture buffer. --- drivers/stag

[PATCH 2/2] media: cedrus: Remove completed item from TODO list (dma-buf references)

2019-01-24 Thread Paul Kocialkowski
Access to reference frames that were imported from dma-buf was taken care of and is no longer a pending item on the driver's TODO list. Signed-off-by: Paul Kocialkowski --- drivers/staging/media/sunxi/cedrus/TODO | 5 - 1 file changed, 5 deletions(-) diff --git a/drivers/staging/media/sunxi

[PATCH 1/2] media: vb2: Keep dma-buf buffers mapped until they are freed

2019-01-24 Thread Paul Kocialkowski
From: Pawel Osciak When using vb2 for video decoding, dequeued capture buffers may still be accessed by the hardware: this is the case when they are used as reference frames for decoding subsequent frames. When the buffer is imported with dma-buf, it needs to be mapped before access. Until now,

[PATCH v2] media: vicodec: ensure comp frame pointer kept in range

2019-01-24 Thread Dafna Hirschfeld
Make sure that the pointer to the compressed frame does not get out of the buffer. Signed-off-by: Dafna Hirschfeld --- Changes from v1: set OVERFLOW_BIT in derlc return val to indicate overflow. fix return value type from s16 to u16 drivers/media/platform/vicodec/codec-fwht.c | 71 +++

Re: Test results (v4l2) for media/master - v4.20-rc5-281-gd2b4387f3bdf

2019-01-24 Thread Guillaume Tucker
Hi Mauro, Thanks for the review. We've made some progress but I would like to check things with you before putting this in production, please see below. On 18/12/2018 17:52, Mauro Carvalho Chehab wrote: > Em Tue, 18 Dec 2018 07:31:23 -0800 (PST) > "kernelci.org bot" escreveu: > >> Test results

Re: [PATCH v4l-utils] Introduce v4l2-get-device tool

2019-01-24 Thread Hans Verkuil
Resurrecting this thread, since this functionality would be really useful :-) On 11/10/18 12:17 PM, Ezequiel Garcia wrote: > On Sat, 2018-11-10 at 12:09 +0100, Hans Verkuil wrote: >> On 11/10/2018 12:01 PM, Ezequiel Garcia wrote: >>> On Sat, 2018-11-10 at 11:29 +0100, Hans Verkuil wrote: On 1

Re: [PATCH v2 1/2] media: docs-rst: Document memory-to-memory video decoder interface

2019-01-24 Thread Tomasz Figa
On Wed, Jan 23, 2019 at 2:27 PM Tomasz Figa wrote: > > On Tue, Jan 22, 2019 at 11:47 PM Hans Verkuil wrote: > > > > On 01/22/19 11:02, Tomasz Figa wrote: [snip] > > >>> + one ``CAPTURE`` buffer, the following cases are defined: > > >>> + > > >>> + * one ``OUTPUT`` buffer generates multiple ``

Re: [PATCH] media: docs-rst: Document m2m stateless video decoder interface

2019-01-24 Thread Alexandre Courbot
On Wed, Jan 23, 2019 at 7:42 PM Paul Kocialkowski wrote: > > Hi Alex, > > On Wed, 2019-01-23 at 18:43 +0900, Alexandre Courbot wrote: > > On Tue, Jan 22, 2019 at 7:10 PM Paul Kocialkowski > > wrote: > > > Hi, > > > > > > On Tue, 2019-01-22 at 17:19 +0900, Tomasz Figa wrote: > > > > Hi Paul, > > >

Re: [PATCHv2] vb2: vb2_find_timestamp: drop restriction on buffer state

2019-01-24 Thread Paul Kocialkowski
HI, On Thu, 2019-01-24 at 09:47 +0100, Hans Verkuil wrote: > There really is no reason why vb2_find_timestamp can't just find > buffers in any state. Drop that part of the test. > > This also means that vb->timestamp should only be set to 0 when > the driver doesn't copy timestamps. > > This cha

Re: [PATCHv2] vb2: vb2_find_timestamp: drop restriction on buffer state

2019-01-24 Thread Alexandre Courbot
On Thu, Jan 24, 2019 at 5:47 PM Hans Verkuil wrote: > > There really is no reason why vb2_find_timestamp can't just find > buffers in any state. Drop that part of the test. > > This also means that vb->timestamp should only be set to 0 when > the driver doesn't copy timestamps. > > This change all

Re: [PATCH] media: docs-rst: Document m2m stateless video decoder interface

2019-01-24 Thread Tomasz Figa
On Thu, Jan 24, 2019 at 5:59 PM Paul Kocialkowski wrote: > > Hi, > > On Thu, 2019-01-24 at 17:07 +0900, Tomasz Figa wrote: > > On Wed, Jan 23, 2019 at 7:42 PM Paul Kocialkowski > > wrote: > > > Hi Alex, > > > > > > On Wed, 2019-01-23 at 18:43 +0900, Alexandre Courbot wrote: > > > > On Tue, Jan 22

Re: [PATCH] media: docs-rst: Document m2m stateless video decoder interface

2019-01-24 Thread Paul Kocialkowski
Hi, On Thu, 2019-01-24 at 17:07 +0900, Tomasz Figa wrote: > On Wed, Jan 23, 2019 at 7:42 PM Paul Kocialkowski > wrote: > > Hi Alex, > > > > On Wed, 2019-01-23 at 18:43 +0900, Alexandre Courbot wrote: > > > On Tue, Jan 22, 2019 at 7:10 PM Paul Kocialkowski > > > wrote: > > > > Hi, > > > > > > >

Re: [PATCHv2] vb2: vb2_find_timestamp: drop restriction on buffer state

2019-01-24 Thread Tomasz Figa
On Thu, Jan 24, 2019 at 5:47 PM Hans Verkuil wrote: > > There really is no reason why vb2_find_timestamp can't just find > buffers in any state. Drop that part of the test. > > This also means that vb->timestamp should only be set to 0 when > the driver doesn't copy timestamps. > > This change all

Re: [PATCH 07/10] venus: helpers: add three more helper functions

2019-01-24 Thread Stanimir Varbanov
Hi Alex, Thanks for the review! On 1/24/19 10:43 AM, Alexandre Courbot wrote: > On Fri, Jan 18, 2019 at 1:21 AM Stanimir Varbanov > wrote: >> >> This adds three more helper functions: >> * for internal buffers reallocation, applicable when we are doing >> dynamic resolution change >> * for ini

  1   2   >