Skip to content

rcar-vin: fix issues with format and capturing

Niklas Söderlund linux-media linux-renesas-soc 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v2 Latest17 patches 6 repliesIn review

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/17rcar-vin: reset bytesperline and sizeimage when resetting formatdrivers/media/platform/rcar-vin/rcar-v4l2.c+3 -00 replies
2/17rcar-vin: use rvin_reset_format() in S_DV_TIMINGSdrivers/media/platform/rcar-vin/rcar-v4l2.c+2 -60 replies
3/17rcar-vin: fix how pads are handled for v4l2 subdevice operationsdrivers/media/platform/rcar-vin/rcar-v4l2.c+14 -120 replies
4/17rcar-vin: fix standard in input enumerationdrivers/media/platform/rcar-vin/rcar-v4l2.c+6 -20 replies
5/17rcar-vin: move subdev source and sink pad index to rvin_graph_entitydrivers/media/platform/rcar-vin/rcar-v4l2.c drivers/media/platform/rcar-vin/rcar-vin.h+15 -140 replies
6/17rcar-vin: refactor pad lookup codedrivers/media/platform/rcar-vin/rcar-v4l2.c+21 -150 replies
7/17rcar-vin: move pad lookup to async bound handlerdrivers/media/platform/rcar-vin/rcar-core.c drivers/media/platform/rcar-vin/rcar-v4l2.c+29 -230 replies
8/17rcar-vin: use pad information when verifying media bus formatdrivers/media/platform/rcar-vin/rcar-core.c+1 -00 replies
9/17rcar-vin: decrease buffers needed to capturedrivers/media/platform/rcar-vin/rcar-dma.c+1 -10 replies
10/17rcar-vin: move functions which acts on hardwaredrivers/media/platform/rcar-vin/rcar-dma.c+91 -910 replies
11/17rcar-vin: select capture mode based on free buffersdrivers/media/platform/rcar-vin/rcar-dma.c+15 -160 replies
12/17rcar-vin: allow switch between capturing modes when stallingdrivers/media/platform/rcar-vin/rcar-dma.c+17 -50 replies
13/17rcar-vin: refactor and fold in function after stall handling reworkdrivers/media/platform/rcar-vin/rcar-dma.c+2 -70 replies
14/17rcar-vin: remove subdevice matching from bind and unbind callbacksdrivers/media/platform/rcar-vin/rcar-core.c+15 -250 replies
15/17rcar-vin: register the video device at probe timedrivers/media/platform/rcar-vin/rcar-core.c drivers/media/platform/rcar-vin/rcar-v4l2.c drivers/media/platform/rcar-vin/rcar-vin.h+50 -405 replies
16/17rcar-vin: add missing error check to propagate errordrivers/media/platform/rcar-vin/rcar-v4l2.c+4 -10 replies
17/17rcar-vin: fix bug in pixelformat selectiondrivers/media/platform/rcar-vin/rcar-v4l2.c+5 -121 reply

Reviews trailers per patch

11 of 17 patches have a Reviewed-by or Acked-by.

PatchLaurent Pinchart
1/17R-b
2/17
3/17R-b
4/17R-b
5/17R-b
6/17
7/17
8/17R-b
9/17R-b
10/17R-b
11/17R-b
12/17R-b
13/17R-b
14/17
15/17
16/17R-b
17/17

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH v2 00/17] rcar-vin: fix issues with format and capturing

From: Niklas Söderlund <[email protected]>

Hi,

This series fix a number of issues for the rcar-vin driver regarding format and capturing. It is based on top of '[GIT PULL FOR v4.13] V4L2 fwnode support' and tested on Koelsch.

Parts of this series where previously part of '[PATCH 00/11] media:
rcar-vin: fix OPS and format/pad index issues'. But after good reviews a large part of that series where dropped.

* Changes since v1
- Do not consider the lack of a subdevice sink pad an error instead default to use pad 0 in such case. This keeps the behavior of the driver which previous versions of this series changed.
- When printing pad numbers print using %u not %d as they are unsigned.
- Keep comment in code which was lost when moving code around.
- If trying to set an unsupported pixel format do not switch the current format, instead switch to the first supported format of the driver to achieve a more deterministic behaviour.
- Add new patch to remove redundant checks in the async bind/unbind callbacks.
- Clarify some commit messages, thanks Laurent!
- Fix typos in commit messages, thanks Sergei and Laurent!
- Add Reviewed-by tags from Lauren

Niklas Söderlund (17):
rcar-vin: reset bytesperline and sizeimage when resetting format
rcar-vin: use rvin_reset_format() in S_DV_TIMINGS
rcar-vin: fix how pads are handled for v4l2 subdevice operations
rcar-vin: fix standard in input enumeration
rcar-vin: move subdev source and sink pad index to rvin_graph_entity
rcar-vin: refactor pad lookup code
rcar-vin: move pad lookup to async bound handler
rcar-vin: use pad information when verifying media bus format
rcar-vin: decrease buffers needed to capture
rcar-vin: move functions which acts on hardware
rcar-vin: select capture mode based on free buffers
rcar-vin: allow switch between capturing modes when stalling
rcar-vin: refactor and fold in function after stall handling rework
rcar-vin: remove subdevice matching from bind and unbind callbacks
rcar-vin: register the video device at probe time
rcar-vin: add missing error check to propagate error
rcar-vin: fix bug in pixelformat selection

 drivers/media/platform/rcar-vin/rcar-core.c |  96 +++++++++---
 drivers/media/platform/rcar-vin/rcar-dma.c  | 230 ++++++++++++++--------------
 drivers/media/platform/rcar-vin/rcar-v4l2.c | 139 ++++++-----------
 drivers/media/platform/rcar-vin/rcar-vin.h  |  10 +-
 4 files changed, 248 insertions(+), 227 deletions(-)
Signature · 1 line
2.13.0