public inbox for linux-media@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCHv4 00/15] Media Controller compliance fixes
@ 2018-02-21 15:32 Hans Verkuil
  2018-02-21 15:32 ` [PATCHv4 01/15] vimc: fix control event handling Hans Verkuil
                   ` (14 more replies)
  0 siblings, 15 replies; 17+ messages in thread
From: Hans Verkuil @ 2018-02-21 15:32 UTC (permalink / raw)
  To: linux-media

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

Hi all,

Here is v4 of this patch series fixing various MC compliance and 
documentation issues.

Changes since v3:
- Added Acks from Sakari
- Incorporated Sakari's comments for the final patch (media.h).

Changes since v2:

- I dropped "v4l2-ioctl.c: fix VIDIOC_DV_TIMINGS_CAP: don't clear pad"
  as it is already included in the pull request for the tda1997x driver
  which needs this fix.
- I added a TODO as requested by Sakari to "v4l2-subdev: without controls 
  return -ENOTTY"
- The "media: document and zero reservedX fields in media_v2_topology"
  patch has been split up in separate code and doc patches.
- I now also zero the reserved field of struct media_links_enum.
  (Thanks Sakari!)
- Rebased and added Acks from Sakari.
- Added missing documentation for the reserved field of struct
  media_links_enum.
- Instead of requiring that apps and drivers zero the reserved fields,
  now change that to just drivers.

I plan to post a pull request later this week if there are no more
comments.

Note regarding patch 4 ("v4l2-subdev: clear reserved fields"): this is
also present in the g/s_frame_interval pull request:

https://patchwork.linuxtv.org/patch/47296/

since it is a prerequisite for that patch series. Whichever gets merged
first wins...

The final patch reorganizes media.h so it is actually understandable.
See here for how it looks after the patch is applied:

https://git.linuxtv.org/hverkuil/media_tree.git/plain/include/uapi/linux/media.h?h=media-fixes

The patch itself is hard to read, so looking at the reorganized header
is easier.

The two core changes in media.h are:

1) all functions are now grouped together
2) all legacy defines are now all moved to the end of the header

I would really like to see this merged soon. This fixes the most immediate
problems that I found.

Regards,

	Hans

Alexandre Courbot (1):
  media: media-types.rst: fix typo

Hans Verkuil (14):
  vimc: fix control event handling
  vimc: use correct subdev functions
  v4l2-subdev: without controls return -ENOTTY
  v4l2-subdev: clear reserved fields
  v4l2-subdev: implement VIDIOC_DBG_G_CHIP_INFO ioctl
  subdev-formats.rst: fix incorrect types
  media-ioc-g-topology.rst: fix interface-to-entity link description
  media-types.rst: fix type, small improvements
  media-device.c: zero reserved fields
  media.h: fix confusing typo in comment
  media: zero reservedX fields in media_v2_topology
  media: document the reservedX fields in media_v2_topology
  media-ioc-enum-entities/links.rst: document reserved fields
  media.h: reorganize header to make it easier to understand

 .../uapi/mediactl/media-ioc-enum-entities.rst      |  19 +-
 .../media/uapi/mediactl/media-ioc-enum-links.rst   |  18 ++
 .../media/uapi/mediactl/media-ioc-g-topology.rst   |  54 +++-
 Documentation/media/uapi/mediactl/media-types.rst  |  12 +-
 Documentation/media/uapi/v4l/subdev-formats.rst    |   6 +-
 drivers/media/media-device.c                       |   7 +
 drivers/media/media-entity.c                       |  16 -
 drivers/media/platform/vimc/vimc-common.c          |   4 +-
 drivers/media/platform/vimc/vimc-debayer.c         |   2 +-
 drivers/media/platform/vimc/vimc-scaler.c          |   2 +-
 drivers/media/platform/vimc/vimc-sensor.c          |  10 +-
 drivers/media/v4l2-core/v4l2-subdev.c              |  50 +++
 include/uapi/linux/media.h                         | 345 ++++++++++-----------
 13 files changed, 322 insertions(+), 223 deletions(-)

-- 
2.16.1

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

end of thread, other threads:[~2018-02-26 14:44 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-02-21 15:32 [PATCHv4 00/15] Media Controller compliance fixes Hans Verkuil
2018-02-21 15:32 ` [PATCHv4 01/15] vimc: fix control event handling Hans Verkuil
2018-02-21 15:32 ` [PATCHv4 02/15] vimc: use correct subdev functions Hans Verkuil
2018-02-21 15:32 ` [PATCHv4 03/15] v4l2-subdev: without controls return -ENOTTY Hans Verkuil
2018-02-21 15:32 ` [PATCHv4 04/15] v4l2-subdev: clear reserved fields Hans Verkuil
2018-02-21 15:32 ` [PATCHv4 05/15] v4l2-subdev: implement VIDIOC_DBG_G_CHIP_INFO ioctl Hans Verkuil
2018-02-21 15:32 ` [PATCHv4 06/15] subdev-formats.rst: fix incorrect types Hans Verkuil
2018-02-26 14:44   ` Mauro Carvalho Chehab
2018-02-21 15:32 ` [PATCHv4 07/15] media-ioc-g-topology.rst: fix interface-to-entity link description Hans Verkuil
2018-02-21 15:32 ` [PATCHv4 08/15] media-types.rst: fix type, small improvements Hans Verkuil
2018-02-21 15:32 ` [PATCHv4 09/15] media: media-types.rst: fix typo Hans Verkuil
2018-02-21 15:32 ` [PATCHv4 10/15] media-device.c: zero reserved fields Hans Verkuil
2018-02-21 15:32 ` [PATCHv4 11/15] media.h: fix confusing typo in comment Hans Verkuil
2018-02-21 15:32 ` [PATCHv4 12/15] media: zero reservedX fields in media_v2_topology Hans Verkuil
2018-02-21 15:32 ` [PATCHv4 13/15] media: document the " Hans Verkuil
2018-02-21 15:32 ` [PATCHv4 14/15] media-ioc-enum-entities/links.rst: document reserved fields Hans Verkuil
2018-02-21 15:32 ` [PATCHv4 15/15] media.h: reorganize header to make it easier to understand Hans Verkuil

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox