Re: [PATCH v2 09/11] rockchip/vpu: Add decoder boilerplate

2019-03-29 Thread Tomasz Figa
On Fri, Mar 29, 2019 at 4:23 AM Ezequiel Garcia wrote: > > Hey Tomasz, > > Thanks for taking the time to review this carefully! > > On Thu, 2019-03-28 at 18:57 +0900, Tomasz Figa wrote: > > On Tue, Mar 5, 2019 at 4:27 AM Ezequiel Garcia > > wrote: [snip] > > > +} > > > + > > > +static int > > >

Re: [PATCH v2 09/11] rockchip/vpu: Add decoder boilerplate

2019-03-28 Thread Ezequiel Garcia
Hey Tomasz, Thanks for taking the time to review this carefully! On Thu, 2019-03-28 at 18:57 +0900, Tomasz Figa wrote: > On Tue, Mar 5, 2019 at 4:27 AM Ezequiel Garcia wrote: > [snip] > > +static const struct rockchip_vpu_fmt * > > +rockchip_vpu_find_format(struct rockchip_vpu_ctx *ctx, u32 four

Re: [PATCH v2 09/11] rockchip/vpu: Add decoder boilerplate

2019-03-28 Thread Tomasz Figa
On Tue, Mar 5, 2019 at 4:27 AM Ezequiel Garcia wrote: [snip] > +static const struct rockchip_vpu_fmt * > +rockchip_vpu_find_format(struct rockchip_vpu_ctx *ctx, u32 fourcc) > +{ > + struct rockchip_vpu_dev *dev = ctx->dev; > + const struct rockchip_vpu_fmt *formats; > + unsigned

[PATCH v2 09/11] rockchip/vpu: Add decoder boilerplate

2019-03-04 Thread 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 --- drivers/staging/media/rock