All of lore.kernel.org
 help / color / mirror / Atom feed
* [RFC PATCH 00/11] Convert last remaining g/s_crop/cropcap drivers
@ 2018-10-05  7:49 Hans Verkuil
  2018-10-05  7:49 ` [RFC PATCH 01/11] v4l2-ioctl: don't use CROP/COMPOSE_ACTIVE Hans Verkuil
                   ` (13 more replies)
  0 siblings, 14 replies; 31+ messages in thread
From: Hans Verkuil @ 2018-10-05  7:49 UTC (permalink / raw)
  To: linux-media; +Cc: Niklas Söderlund, Tomasz Figa, snawrocki

From: Hans Verkuil <hans.verkuil@cisco.com>

This patch series converts the last remaining drivers that use g/s_crop and
cropcap to g/s_selection.

The first two patches do some minor code cleanup.

The third patch adds a new video_device flag to indicate that the driver
inverts the normal usage of g/s_crop/cropcap. This applies to the old
Samsung drivers that predate the Selection API and that abused the existing
crop API.

The next three patches do some code cleanup and prepare drivers for the
removal of g/s_crop and ensure that cropcap only returns the pixelaspect.

The next three patches convert the remaining Samsung drivers and set the
QUIRK flag for all three.

The final two patches remove vidioc_g/s_crop and rename vidioc_cropcap
to vidioc_g_pixelaspect.

I would really appreciate it if someone from Samsung can test these
three drivers or at the very least review the code.

Niklas, this series supersedes your 'v4l2-ioctl: fix CROPCAP type handling'
patch. Sorry about that :-)

Regards,

	Hans

Hans Verkuil (11):
  v4l2-ioctl: don't use CROP/COMPOSE_ACTIVE
  v4l2-common.h: put backwards compat defines under #ifndef __KERNEL__
  v4l2-ioctl: add QUIRK_INVERTED_CROP
  davinci/vpbe: drop unused g_cropcap
  cropcap/g_selection split
  exynos-gsc: replace v4l2_crop by v4l2_selection
  s5p_mfc_dec.c: convert g_crop to g_selection
  exynos4-is: convert g/s_crop to g/s_selection
  s5p-g2d: convert g/s_crop to g/s_selection
  v4l2-ioctl: remove unused vidioc_g/s_crop
  vidioc_cropcap -> vidioc_g_pixelaspect

 drivers/media/pci/bt8xx/bttv-driver.c         |  12 +-
 drivers/media/pci/cobalt/cobalt-v4l2.c        |  48 +++++--
 drivers/media/pci/cx18/cx18-ioctl.c           |  13 +-
 drivers/media/pci/cx23885/cx23885-video.c     |  40 ++++--
 drivers/media/pci/ivtv/ivtv-ioctl.c           |  17 +--
 drivers/media/pci/saa7134/saa7134-video.c     |  21 ++-
 drivers/media/platform/am437x/am437x-vpfe.c   |  31 ++---
 drivers/media/platform/davinci/vpbe.c         |  23 ----
 drivers/media/platform/davinci/vpbe_display.c |  10 +-
 drivers/media/platform/davinci/vpfe_capture.c |  12 +-
 drivers/media/platform/exynos-gsc/gsc-core.c  |  57 +++-----
 drivers/media/platform/exynos-gsc/gsc-core.h  |   3 +-
 drivers/media/platform/exynos-gsc/gsc-m2m.c   |  23 ++--
 drivers/media/platform/exynos4-is/fimc-core.h |   6 +-
 drivers/media/platform/exynos4-is/fimc-m2m.c  | 130 ++++++++++--------
 drivers/media/platform/rcar-vin/rcar-v4l2.c   |  10 +-
 drivers/media/platform/s5p-g2d/g2d.c          | 102 +++++++++-----
 drivers/media/platform/s5p-mfc/s5p_mfc.c      |   1 +
 drivers/media/platform/s5p-mfc/s5p_mfc_dec.c  |  49 ++++---
 drivers/media/platform/vivid/vivid-core.c     |   9 +-
 drivers/media/platform/vivid/vivid-vid-cap.c  |  18 ++-
 drivers/media/platform/vivid/vivid-vid-cap.h  |   2 +-
 drivers/media/platform/vivid/vivid-vid-out.c  |  18 ++-
 drivers/media/platform/vivid/vivid-vid-out.h  |   2 +-
 drivers/media/usb/au0828/au0828-video.c       |  38 +++--
 drivers/media/usb/cpia2/cpia2_v4l.c           |  31 +++--
 drivers/media/usb/cx231xx/cx231xx-417.c       |  41 ++++--
 drivers/media/usb/cx231xx/cx231xx-video.c     |  41 ++++--
 drivers/media/usb/pvrusb2/pvrusb2-v4l2.c      |  13 +-
 drivers/media/v4l2-core/v4l2-dev.c            |   8 +-
 drivers/media/v4l2-core/v4l2-ioctl.c          |  44 ++++--
 include/media/davinci/vpbe.h                  |   4 -
 include/media/v4l2-dev.h                      |  13 +-
 include/media/v4l2-ioctl.h                    |  16 +--
 include/uapi/linux/v4l2-common.h              |  28 ++--
 35 files changed, 537 insertions(+), 397 deletions(-)

-- 
2.18.0

^ permalink raw reply	[flat|nested] 31+ messages in thread

end of thread, other threads:[~2018-11-06  1:30 UTC | newest]

Thread overview: 31+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-10-05  7:49 [RFC PATCH 00/11] Convert last remaining g/s_crop/cropcap drivers Hans Verkuil
2018-10-05  7:49 ` [RFC PATCH 01/11] v4l2-ioctl: don't use CROP/COMPOSE_ACTIVE Hans Verkuil
2018-10-05 10:19   ` Niklas Söderlund
2018-11-02 16:16   ` Sylwester Nawrocki
2018-10-05  7:49 ` [RFC PATCH 02/11] v4l2-common.h: put backwards compat defines under #ifndef __KERNEL__ Hans Verkuil
2018-10-05 10:30   ` Niklas Söderlund
2018-10-05  7:49 ` [RFC PATCH 03/11] v4l2-ioctl: add QUIRK_INVERTED_CROP Hans Verkuil
2018-10-05 10:44   ` Niklas Söderlund
2018-11-02 16:18   ` Sylwester Nawrocki
2018-10-05  7:49 ` [RFC PATCH 04/11] davinci/vpbe: drop unused g_cropcap Hans Verkuil
2018-10-05  7:49 ` [RFC PATCH 05/11] cropcap/g_selection split Hans Verkuil
2018-10-05  7:49 ` [RFC PATCH 06/11] exynos-gsc: replace v4l2_crop by v4l2_selection Hans Verkuil
2018-11-02 16:18   ` Sylwester Nawrocki
2018-10-05  7:49 ` [RFC PATCH 07/11] s5p_mfc_dec.c: convert g_crop to g_selection Hans Verkuil
2018-11-02 16:29   ` Sylwester Nawrocki
2018-10-05  7:49 ` [RFC PATCH 08/11] exynos4-is: convert g/s_crop to g/s_selection Hans Verkuil
2018-11-02 16:33   ` Sylwester Nawrocki
2018-10-05  7:49 ` [RFC PATCH 09/11] s5p-g2d: " Hans Verkuil
2018-11-02 16:33   ` Sylwester Nawrocki
2018-10-05  7:49 ` [RFC PATCH 10/11] v4l2-ioctl: remove unused vidioc_g/s_crop Hans Verkuil
2018-10-05 10:47   ` Niklas Söderlund
2018-10-05 10:52     ` Hans Verkuil
2018-11-02 16:42   ` Sylwester Nawrocki
2018-10-05  7:49 ` [RFC PATCH 11/11] vidioc_cropcap -> vidioc_g_pixelaspect Hans Verkuil
2018-10-05 10:52   ` Niklas Söderlund
2018-10-05 10:56 ` [RFC PATCH 00/11] Convert last remaining g/s_crop/cropcap drivers Niklas Söderlund
2018-10-08 15:32 ` Sakari Ailus
2018-11-02 16:16 ` Sylwester Nawrocki
2018-11-05 13:12   ` Hans Verkuil
2018-11-05 16:08     ` Sylwester Nawrocki
2018-11-05 16:09       ` Hans Verkuil

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.