Skip to content

Move finding the best match for size to V4L2 common

Sakari Ailus linux-media 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5v4l: common: Add a function to obtain best size from a listdrivers/media/v4l2-core/v4l2-common.c include/media/v4l2-common.h+63 -00 replies
2/5vivid: Use v4l2_find_nearest_sizedrivers/media/platform/vivid/vivid-vid-cap.c+3 -30 replies
3/5v4l: common: Remove v4l2_find_nearest_formatdrivers/media/v4l2-core/v4l2-common.c include/media/v4l2-common.h+0 -430 replies
4/5ov13858: Use v4l2_find_nearest_sizedrivers/media/i2c/ov13858.c+3 -340 replies
5/5ov5670: Use v4l2_find_nearest_sizedrivers/media/i2c/ov5670.c+3 -310 replies

Reviews trailers per patch

None of the 5 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchHans Verkuil
SeriesA-b
1/5
2/5
3/5
4/5
5/5

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

Read the v1 thread

Cover letter [PATCH 0/5] Move finding the best match for size to V4L2 common

Hi folks,

This set should make it a bit easier to support finding the right size in sensor drivers. Two sensor drivers and vivid are converted as an example.

I've tested the vivid change only but the patches are effectively the same and trivial.

Sakari Ailus (5):
v4l: common: Add a function to obtain best size from a list
vivid: Use v4l2_find_nearest_size
v4l: common: Remove v4l2_find_nearest_format
ov13858: Use v4l2_find_nearest_size
ov5670: Use v4l2_find_nearest_size

 drivers/media/i2c/ov13858.c                  | 37 +++-------------------------
 drivers/media/i2c/ov5670.c                   | 34 +++----------------------
 drivers/media/platform/vivid/vivid-vid-cap.c |  6 ++---
 drivers/media/v4l2-core/v4l2-common.c        | 34 ++++++++++++++-----------
 include/media/v4l2-common.h                  | 34 ++++++++++++++++++-------
 5 files changed, 53 insertions(+), 92 deletions(-)
Signature · 1 line
2.7.4