cron job: media_tree daily build: ERRORS

2019-04-25 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 Apr 26 05:00:11 CEST 2019 media-tree git hash:7afa8db323e37b9174cf78a1c9ab0ae7a9f5e7dd media_build gi

[PATCH 0/6] Switch to sync registration for IPU subdevs

2019-04-25 Thread Steve Longerbeam
Switch to sync registration for the IPU internal sub-devices, re-organize modules, and a few other miscellaneous cleanups. Steve Longerbeam (6): media: staging/imx: Switch to sync registration for IPU subdevs media: staging/imx: Pass device to alloc/free_dma_buf media: staging/imx: Move add_

[PATCH v4 09/14] media: vimc: cap: Allocate and verify mplanar buffers

2019-04-25 Thread André Almeida
If the driver is in multiplanar mode, fill the vb2 structures with the planes sizes and verify it the sizes allocated to the planes are enough. Signed-off-by: André Almeida Acked-by: Helen Koike --- Change in v4: none Change in v3: none Change in v2: - Use IS_MULTIPLANAR macro drivers/media/

[PATCH v4 12/14] media: vimc: sca: Add support for multiplanar formats

2019-04-25 Thread André Almeida
Change the scaling functions in order to scale planes. This change makes easier to support multiplanar pixel formats. Signed-off-by: André Almeida --- Changes in v4: - Rename `frame_size` to `plane_size` - Correct `unsigned int ret` to `int ret` - Remove label `free_planes` from else scope - Chan

[PATCH v4 11/14] media: vimc: sen: Add support for multiplanar formats

2019-04-25 Thread André Almeida
This commit adapts vimc-sensor to handle multiplanar pixel formats, adapting the memory allocation and TPG configuration. Signed-off-by: André Almeida --- Changes in v4: - Correct `unsigned int ret` to `int ret` - Remove label `free_planes` from else scope Changes in v3: - Adapt to new vimc_fram

[PATCH v4 13/14] media: vimc: cap: Add support for multiplanar formats

2019-04-25 Thread André Almeida
Adapt vimc-capture to support multiplanar formats, copying each plane to the correct buffer. Signed-off-by: André Almeida --- Change in v4: - Move variables to inside the for loop - Change `plane_size` type from `unsigned int` to `size_t` Change in v3: - Adapt to new vimc_frame Change in v2: no

[PATCH v4 14/14] media: vimc: Create multiplanar parameter

2019-04-25 Thread André Almeida
Create multiplanar kernel module parameter to define if the driver is running in single planar or in multiplanar mode. Define the device capabilities according to the multiplanar kernel parameter. A device can't support both CAP_VIDEO_CAPTURE and CAP_VIDEO_CAPTURE_MPLANAR at the same time. Signed-

[PATCH v4 10/14] media: vimc: Add and use new struct vimc_frame

2019-04-25 Thread André Almeida
Struct vimc_frame is intended to hold metadata about a frame, such as memory address of a plane, number of planes and size of each plane, to better integrated with the multiplanar operations. The struct can be also used with singleplanar formats, making the implementation of frame manipulation gene

[PATCH v4 02/14] media: vimc: cap: Change vimc_cap_device.format type

2019-04-25 Thread André Almeida
vimc_cap_device.format field was defined as v4l2_pix_format, a struct to handle single planar pixel formats. It turns out that if v4l2_format is used, we can reuse functions for both v4l2_pix_format and v4l2_pix_format_mplane. This change will help at future commits implementing multiplanar pixel f

[PATCH v4 07/14] media: vimc: cap: Add multiplanar formats

2019-04-25 Thread André Almeida
Add multiplanar formats to be exposed to the userspace as supported formats. Since we don't want to support multiplanar formats when the driver is in singleplanar mode, we only access the multiplanar formats array if the multiplanar mode is enabled. Signed-off-by: André Almeida Acked-by: Helen Ko

[PATCH v4 08/14] media: vimc: cap: Add multiplanar default format

2019-04-25 Thread André Almeida
vimc already have a default single planar format. Add a multiplanar default pixel format to perform those same actions. Change where the default pixelformat is set to make sure that the vcap is with the right capabilities. Signed-off-by: André Almeida --- Change in v4: none Changes in v3: - Fix

[PATCH v4 01/14] media: vimc: Remove unnecessary stream checks

2019-04-25 Thread André Almeida
Change the way subdevices check if the stream is running. Verify the stream pointer instead of src_frame. This makes easier to get rid of the void* and u8* in the subdevices structs. Also, remove redundant checks for stream. Signed-off-by: André Almeida Acked-by: Helen Koike --- Changes in v4: -

[PATCH v4 03/14] media: vimc: cap: Dynamically define stream pixelformat

2019-04-25 Thread André Almeida
Define the pixelformat of the streamer depending to the mode (single/multiplanar). Add a macro to help checking if the device is in multilplanar mode. Signed-off-by: André Almeida Acked-by: Helen Koike --- Change in v4: none Change in v3: - Replace if with triaste operator Change in v2: - Add

[PATCH v4 04/14] media: Move sp2mp functions to v4l2-common

2019-04-25 Thread André Almeida
Move sp2mp functions from vivid code to v4l2-common as it will be reused by vimc driver for multiplanar support. Signed-off-by: André Almeida --- Changes in v4: none Changes in v3: - Change commit order - Reword comments Changes in v2: - Fix indentation - Change the style of comments. Functions

[PATCH v4 06/14] media: vimc: cap: Add handler for multiplanar fmt ioctls

2019-04-25 Thread André Almeida
Add functions to handle multiplanar format ioctls, calling the generic format ioctls functions when possible. Signed-off-by: André Almeida --- Change in v4: - Split from multiplanar parameter commit - Use `IS_MULTIPLANAR` instead of `multiplanar` - Move "Functions to handle..." to commit 5 Chang

[PATCH v4 05/14] media: vimc: cap: refactor singleplanar as a subset of multiplanar

2019-04-25 Thread André Almeida
Since multiplanar is a superset of single planar formats, instead of having different implementations for them, treat all formats as multiplanar. If we need to work with single planar formats, convert them to multiplanar (with num_planes = 1), re-use the multiplanar code, and transform them back to

[PATCH v4 00/14] media: vimc: Add support for multiplanar formats

2019-04-25 Thread André Almeida
Hello, This series implements support for multiplane pixel formats at Vimc. A lot of changes were required since vimc support for singleplane was "hardcoded". The code has been adapted in order to support both formats. When was possible, the functions were written generically, avoiding functions f

[GIT PULL for v5.2] Venus updates - take3

2019-04-25 Thread Stanimir Varbanov
Hi Mauro, Sorry for the inconvenience, here is the third attempt. Added two more fixes for Venus v4 properties and dynamic buffer mode. Please pull. The following changes since commit 7afa8db323e37b9174cf78a1c9ab0ae7a9f5e7dd: media: vsp1: Add support for missing 16-bit RGB555 formats (2019-0

Re: [PATCH 13/13] media: coda: fix unset field and fail on invalid field in buf_prepare

2019-04-25 Thread Ezequiel Garcia
On Fri, 2019-04-12 at 17:51 +0200, Philipp Zabel wrote: > v4l2-compliance likes to queue a buffer with field set to V4L2_FIELD_ANY > and expects it to be returned corrected to a valid field. > > Follow vicodec in handling this in the buf_prepare callback. > > Signed-off-by: Philipp Zabel > --- >

Re: [PATCH 1/5] media: coda: Print a nicer device registered message

2019-04-25 Thread Hans Verkuil
On 4/25/19 8:35 PM, Ezequiel Garcia wrote: > This is just a cosmetic change to print a more descriptive > message, to distinguish decoder from encoder: > > So, instead of printing > > coda 204.vpu: codec registered as /dev/video[4-5] > > With this change, the driver now prints > > coda

[PATCH 4/5] media: coda: Remove pic_run_work worker

2019-04-25 Thread Ezequiel Garcia
There isn't any reason to run the mem2mem job on a separate worker, because the mem2mem framework guarantees that device_run will never run in interrupt context. Therefore, get rid of the extra pic_run_work worker, and instead run the job in the context of .device_run itself. Signed-off-by: Ezequ

[PATCH 5/5] media: coda: Clear the interrupt reason

2019-04-25 Thread Ezequiel Garcia
This commit clears the interrupt reason (INT_REASON) register on the interrupt handler. Without this clearing, the CODA hardware has been observed to get completely stalled on CODA980 variants, requiring a pretty deep hardware reset. The datasheet specifies that the INT_REASON register is set by t

[PATCH 2/5] media: coda: Remove unbalanced and unneeded mutex unlock

2019-04-25 Thread Ezequiel Garcia
The mutex unlock in the threaded interrupt handler is not paired with any mutex lock. Remove it. This bug has been here for a really long time, so it applies to any stable repo. Signed-off-by: Ezequiel Garcia --- drivers/media/platform/coda/coda-bit.c | 1 - 1 file changed, 1 deletion(-) diff

[PATCH 0/5] Assorted CODA fixes

2019-04-25 Thread Ezequiel Garcia
While working on a SoC with CODA980 (currently not supported by the driver), I came across some low-hanging fruit that looked worth addressing. Patch 1 is just a cosmetic change to print a different "more standard" device registered message, if such thing exists. Patches 2 to 4 address unneeded u

[PATCH 1/5] media: coda: Print a nicer device registered message

2019-04-25 Thread Ezequiel Garcia
This is just a cosmetic change to print a more descriptive message, to distinguish decoder from encoder: So, instead of printing coda 204.vpu: codec registered as /dev/video[4-5] With this change, the driver now prints coda 204.vpu: encoder registered as /dev/video4 coda 204.v

[PATCH 3/5] media: coda: Replace the threaded interrupt with a hard interrupt

2019-04-25 Thread Ezequiel Garcia
The current interrupt handler is doing very little, and not doing any non-atomic operations. Pretty much all it does is accessing a couple registers, taking a couple spinlocks and then signalling a completion. There is no reason this should be a threaded interrupt handler, so move the handler to r

Re: [PATCH v3 14/14] media: vimc: Create multiplanar parameter and ioctls

2019-04-25 Thread André Almeida
On 4/24/19 8:19 PM, Helen Koike wrote: > > On 4/24/19 8:03 PM, André Almeida wrote: >> Hello Helen, >> >> Thanks for your review! >> >> On 4/24/19 6:32 PM, Helen Koike wrote: >>> Hi André, >>> >>> Thanks for the patch, please see my comments below. >>> >>> On 4/24/19 10:56 AM, André Almeida wrote

Re: [GIT PULL for v5.2] Venus updates - take2

2019-04-25 Thread Mauro Carvalho Chehab
Em Thu, 25 Apr 2019 11:46:18 -0300 Mauro Carvalho Chehab escreveu: > Em Tue, 23 Apr 2019 17:07:02 +0300 > Stanimir Varbanov escreveu: > > > Hi Mauro, > > > > Here is the second attempt. > > > > Added two more fixes for Venus v4 properties and dynamic buffer mode. > > > > Please pull. > > >

Re: [GIT PULL for v5.2] Venus updates - take2

2019-04-25 Thread Mauro Carvalho Chehab
Em Tue, 23 Apr 2019 17:07:02 +0300 Stanimir Varbanov escreveu: > Hi Mauro, > > Here is the second attempt. > > Added two more fixes for Venus v4 properties and dynamic buffer mode. > > Please pull. > > The following changes since commit 26d5d1fe53e966efe567e9773d1158baef303e3b: > > venus:

[GIT PULL FOR v5.2] rockchip fixes

2019-04-25 Thread Hans Verkuil
This pull request contains patches 1-10 of the "[PATCH v4 00/21] Add MPEG-2 decoding to Rockchip VPU" series. These are all fixes and are independent of the mpeg-2 support. Regards, Hans The following changes since commit a4dfc8a24796ff312d1d307e11f26f8ca466e938: media: MAINTAINERS:

Re: [PATCH 0/8] [PATCH for ZBar] MinGW compatibility patches

2019-04-25 Thread Mauro Carvalho Chehab
Em Tue, 9 Apr 2019 12:38:34 + Руслан Ижбулатов escreveu: > Here's a few patches that might be useful. > > Руслан Ижбулатов (8): > Include windows.h for vfw > Specify correct path to barcode.png > Check for clock_gettime on pthread library as well > Disable zbarcam-gtk on Win

I will compensate you well

2019-04-25 Thread Umor Salif
Good Day I am Mr.Umor Salif, a regional managing director (CORIS BANK INTERNATIONAL) Ouagadougou Burkina Faso, in my department we have US$9,500. million united state dollars, to transfer into your account as a dormant fund.If you are interested to use this fund to help the orphans around the

FW: Neue Kunden

2019-04-25 Thread GC-Team
Sehr geehrte Damen und Herren, nach unserem Besuch Ihrer Homepage möchten wir Ihnen ein Angebot von Produkten vorstellen, das Ihnen ermöglichen wird, den Verkauf Ihrer Produkte sowie Dienstleistungen deutlich zu erhöhen. Die Datenbanken der Firmen sind in für Sie interessante und relevante Zie

Re: [PATCH v4 00/21] Add MPEG-2 decoding to Rockchip VPU

2019-04-25 Thread Hans Verkuil
On 4/25/19 11:36 AM, Boris Brezillon wrote: > On Thu, 25 Apr 2019 10:21:16 +0200 > Hans Verkuil wrote: > >> On 4/25/19 10:06 AM, Boris Brezillon wrote: >>> On Thu, 25 Apr 2019 09:12:21 +0200 >>> Boris Brezillon wrote: >>> This series introduces the decoding infrastructure that will be >>

Re: [PATCH v4 00/21] Add MPEG-2 decoding to Rockchip VPU

2019-04-25 Thread Boris Brezillon
On Thu, 25 Apr 2019 10:21:16 +0200 Hans Verkuil wrote: > On 4/25/19 10:06 AM, Boris Brezillon wrote: > > On Thu, 25 Apr 2019 09:12:21 +0200 > > Boris Brezillon wrote: > > > >> This series introduces the decoding infrastructure that will be > >> used to add support for other codecs such as VP8

Re: [PATCH v4 00/21] Add MPEG-2 decoding to Rockchip VPU

2019-04-25 Thread Hans Verkuil
Compile tested this series and I get the following sparse/smatch wanings: sparse: WARNINGS SPARSE:/home/hans/work/build/media-git/drivers/staging/media/rockchip/vpu/rockchip_vpu_drv.c /home/hans/work/build/media-git/drivers/staging/media/rockchip/vpu/rockchip_vpu_drv.c:38:6: warning: symbol 'ro

Re: [PATCH v4 00/21] Add MPEG-2 decoding to Rockchip VPU

2019-04-25 Thread Hans Verkuil
On 4/25/19 10:06 AM, Boris Brezillon wrote: > On Thu, 25 Apr 2019 09:12:21 +0200 > Boris Brezillon wrote: > >> This series introduces the decoding infrastructure that will be >> used to add support for other codecs such as VP8, VP9 and H.264. >> >> As explained in the cover letter for the v1 patc

Re: [PATCH v4 00/21] Add MPEG-2 decoding to Rockchip VPU

2019-04-25 Thread Boris Brezillon
On Thu, 25 Apr 2019 10:06:28 +0200 Boris Brezillon wrote: > On Thu, 25 Apr 2019 09:12:21 +0200 > Boris Brezillon wrote: > > > This series introduces the decoding infrastructure that will be > > used to add support for other codecs such as VP8, VP9 and H.264. > > > > As explained in the cover l

[GIT PULL FOR v5.2] stm32 fix, aspeed fixes

2019-04-25 Thread Hans Verkuil
The following changes since commit a4dfc8a24796ff312d1d307e11f26f8ca466e938: media: MAINTAINERS: Update AO CEC with ao-cec-g12a driver (2019-04-22 13:16:35 -0400) are available in the Git repository at: git://linuxtv.org/hverkuil/media_tree.git tags/br-v5.2h for you to fetch changes up to

Re: [PATCH v4 00/21] Add MPEG-2 decoding to Rockchip VPU

2019-04-25 Thread Boris Brezillon
On Thu, 25 Apr 2019 09:12:21 +0200 Boris Brezillon wrote: > This series introduces the decoding infrastructure that will be > used to add support for other codecs such as VP8, VP9 and H.264. > > As explained in the cover letter for the v1 patchset, > the driver is now exposing two video device n

[PATCH v4 21/21] rockchip/vpu: Add support for MPEG-2 decoding on RK3288

2019-04-25 Thread Boris Brezillon
From: Jonas Karlman Add necessary bits to support MPEG2 decoding on RK3288. Signed-off-by: Jonas Karlman Signed-off-by: Boris Brezillon --- Changes from v3: * Coding style improvements (Jonas) * Use ALIGN() instead of div+shift (Jonas) Changes from v2: * New patch --- drivers/staging/media/r

[PATCH v4 15/21] rockchip/vpu: Provide a helper to reset both src and dst formats

2019-04-25 Thread Boris Brezillon
When initializing a context, the core wants to reset both src and dst formats. Right now the order doesn't matter, but if we want to have a valid default width/height on the non-coded/raw format side (src in case of encoders, dst in case of decoders), we need to reset those formats in the right ord

[PATCH v4 16/21] rockchip/vpu: Prepare things to support decoders

2019-04-25 Thread Boris Brezillon
The code in rockchip_vpu_v4l2 was hardcoded for encoder support. Modify it more generic to support the decoder case so that we can re-use the same vb2/v4l2 ops for both devices. Co-developed-by: Ezequiel Garcia Signed-off-by: Ezequiel Garcia Signed-off-by: Boris Brezillon --- Changes from v3: *

[PATCH v4 08/21] rockchip/vpu: Get vdev from the file arg in vidioc_querycap()

2019-04-25 Thread Boris Brezillon
This makes the function more generic so it can easily be re-used when adding support for the decoding functionality. Signed-off-by: Boris Brezillon --- Changes from v3: * New patch --- drivers/staging/media/rockchip/vpu/rockchip_vpu_enc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)

[PATCH v4 11/21] rockchip/vpu: Open-code media controller register

2019-04-25 Thread Boris Brezillon
From: Ezequiel Garcia In preparation to support decoders, using a single memory-to-memory device, we need to roll our own media controller entities registration. To do that, we define a rockchip_vpu_func object that embeds the video_device object plus all the elements that are needed to attach t

[PATCH v4 12/21] rockchip/vpu: Support the Request API

2019-04-25 Thread Boris Brezillon
From: Ezequiel Garcia Introduce support for the Request API. Although the JPEG encoder does not mandate using the Request API, it's perfectly possible to use it, if the application wants to. Signed-off-by: Ezequiel Garcia Signed-off-by: Boris Brezillon -- Changes from v3: * None Changes from

[PATCH v4 09/21] rockchip/vpu: Initialize mdev->bus_info

2019-04-25 Thread Boris Brezillon
v4l2-compliance complains that ->bus_info is empty. Signed-off-by: Boris Brezillon --- Changes from v3: * New patch --- drivers/staging/media/rockchip/vpu/rockchip_vpu_drv.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/staging/media/rockchip/vpu/rockchip_vpu_drv.c b/drivers/sta

[PATCH v4 14/21] rockchip/vpu: Move encoder logic to a common place

2019-04-25 Thread Boris Brezillon
The V4L2/VB2 implementation for the encoder and decoder logic are very similar, so let's rename rockchip_vpu_enc.c file into rockchip_vpu_v4l2.c and remove the _enc_ part in objects/functions exposed in rockchip_vpu_v4l2.h. We also rename the enc_queue_init() function (in rockchip_vpu_drv.c) queue_

[PATCH v4 13/21] rockchip/vpu: Rename rockchip_vpu_common.h into rockchip_vpu_v4l2.h

2019-04-25 Thread Boris Brezillon
We're about to add prototypes for the vb2/v4l2 helpers shared by the encoder/decoder logic in this file, so let's pick a name that reflects that (rockchip_vpu_common.h was a bit to generic). Suggested-by: Ezequiel Garcia Signed-off-by: Boris Brezillon --- Changes from v3: * None Changes from v2

[PATCH v4 20/21] rockchip/vpu: Add MPEG2 decoding support to RK3399

2019-04-25 Thread Boris Brezillon
From: Jonas Karlman Add the necessary bits to support MPEG2 decoding on RK3399. Signed-off-by: Jonas Karlman Signed-off-by: Boris Brezillon --- Changes from v3: * New patch (was part of another patch before) --- drivers/staging/media/rockchip/vpu/Makefile | 1 + .../media/rockchip/vpu/rk3

[PATCH v4 19/21] rockchip/vpu: Add infra to support MPEG-2 decoding

2019-04-25 Thread Boris Brezillon
From: Jonas Karlman Only adds structs and helpers to allow supporting MPEG-2 decoding on rockchip SoCs. Support for RK3399 and RK3288 will be added in separate commits Signed-off-by: Jonas Karlman Signed-off-by: Ezequiel Garcia Signed-off-by: Boris Brezillon -- Changes from v3: * Coding style

[PATCH v4 06/21] rockchip/vpu: Do not request id 0 for our video device

2019-04-25 Thread Boris Brezillon
From: Jonas Karlman Pass -1 to video_register_device() to let the core assign the first free id instead of trying to get id 0. In practice it doesn't make a difference since video_register_device() is not strict about id requests and will anyway pick the first free id starting at the id passed in

[PATCH v4 17/21] rockchip/vpu: Add decoder boilerplate

2019-04-25 Thread Boris Brezillon
From: Ezequiel Garcia This commit adds the needed boilerplate code to support the VPU in decoding operation. Two v4l2 interfaces are exposed, one for encoding and one for decoding, but a single m2m device is shared by them, so jobs are properly serialized. Signed-off-by: Ezequiel Garcia Signed-

[PATCH v4 18/21] rockchip/vpu: Add support for non-standard controls

2019-04-25 Thread Boris Brezillon
From: Ezequiel Garcia Rework the way controls are registered by the driver, so it can support non-standard controls, such as those used by stateless codecs. Signed-off-by: Ezequiel Garcia Signed-off-by: Boris Brezillon -- Changes from v3: * None Changes from v2: * Got rid of unused ctrls rela

[PATCH v4 02/21] rockchip/vpu: Use v4l2_m2m_buf_copy_metadata

2019-04-25 Thread Boris Brezillon
From: Ezequiel Garcia Use the recently introduced v4l2_m2m_buf_copy_metadata helper and get rid of some code. Signed-off-by: Ezequiel Garcia Signed-off-by: Boris Brezillon --- Changes from v3: * None Changes from v2: * None --- drivers/staging/media/rockchip/vpu/rockchip_vpu_drv.c | 9 +-

[PATCH v4 04/21] rockchip/vpu: Cleanup JPEG bounce buffer management

2019-04-25 Thread Boris Brezillon
From: Ezequiel Garcia In order to make the code more generic, introduce a pair of start/stop codec operations, and use them to allocate and release the JPEG bounce buffer. Signed-off-by: Ezequiel Garcia Signed-off-by: Boris Brezillon --- Changes from v3: * None Changes from v2: * Reword boun

[PATCH v4 10/21] rockchip/vpu: Fix/re-order probe-error/remove path

2019-04-25 Thread Boris Brezillon
From: Jonas Karlman media_device_cleanup() and v4l2_m2m_unregister_media_controller() were missing in the probe error path. While at it, re-order calls in the remove path to unregister/cleanup things in the reverse order they were initialized/registered. Signed-off-by: Jonas Karlman Signed-off-

[PATCH v4 01/21] rockchip/vpu: Use pixel format helpers

2019-04-25 Thread Boris Brezillon
From: Ezequiel Garcia Now that we've introduced the pixel format helpers, use them in vpu driver, and get rid of the internal helpers. Signed-off-by: Ezequiel Garcia Signed-off-by: Boris Brezillon --- Changes from v3: * None Changes from v2: * None --- .../media/rockchip/vpu/rockchip_vpu_enc

[PATCH v4 07/21] rockchip/vpu: Add missing dont_use_autosuspend() calls

2019-04-25 Thread Boris Brezillon
From: Jonas Karlman Those calls are needed to restore a clean PM state when the probe fails or when the driver is unloaded such that future ->probe() calls can initialize runtime PM again. Signed-off-by: Jonas Karlman Signed-off-by: Boris Brezillon --- Changes from v3: * New patch --- drivers

[PATCH v4 00/21] Add MPEG-2 decoding to Rockchip VPU

2019-04-25 Thread Boris Brezillon
This series introduces the decoding infrastructure that will be used to add support for other codecs such as VP8, VP9 and H.264. As explained in the cover letter for the v1 patchset, the driver is now exposing two video device nodes. The VPU encoder is exposed on /dev/video0, and the VPU decoder i

[PATCH v4 05/21] rockchip/vpu: Remove a useless test

2019-04-25 Thread Boris Brezillon
vdev is guaranteed to be equal to vpu->vfd_enc thanks a test done a few lines above. Remove this useless test. Signed-off-by: Boris Brezillon --- Changes from v3: * Move earlier in the series Changes from v2: * New patch --- drivers/staging/media/rockchip/vpu/rockchip_vpu_drv.c | 6 ++ 1 fi

[PATCH v4 03/21] rockchip/vpu: Cleanup macroblock alignment

2019-04-25 Thread Boris Brezillon
From: Ezequiel Garcia We need to make the macrobock alignment generic, in order to support multiple codecs. Signed-off-by: Ezequiel Garcia Signed-off-by: Boris Brezillon --- Changes from v3: * None Changes from v2: * None --- .../media/rockchip/vpu/rockchip_vpu_enc.c | 20 ---