public inbox for linux-media@vger.kernel.org
 help / color / mirror / Atom feed
* [RFC PATCH 0/2] Calculate capabilities based on device_caps
@ 2016-02-29 12:57 Hans Verkuil
  2016-02-29 12:57 ` [RFC PATCH 1/2] v4l2: collect the union of all device_caps in struct v4l2_device Hans Verkuil
  2016-02-29 12:57 ` [RFC PATCH 2/2] vivid: let the v4l2 core calculate the capabilities field Hans Verkuil
  0 siblings, 2 replies; 4+ messages in thread
From: Hans Verkuil @ 2016-02-29 12:57 UTC (permalink / raw)
  To: linux-media; +Cc: laurent.pinchart

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

Once we have device_caps in struct video_device it is quite easy to
add a capabilities field to struct v4l2_device that is the union of
the device_caps value of all video devices.

Tested with vivid.

Regards,

	Hans

Hans Verkuil (2):
  v4l2: collect the union of all device_caps in struct v4l2_device
  vivid: let the v4l2 core calculate the capabilities field

 drivers/media/platform/vivid/vivid-core.c  | 75 ++++++++++++++++--------------
 drivers/media/platform/vivid/vivid-core.h  |  9 ----
 drivers/media/platform/vivid/vivid-ctrls.c |  8 ++--
 drivers/media/v4l2-core/v4l2-dev.c         |  1 +
 drivers/media/v4l2-core/v4l2-ioctl.c       |  2 +-
 include/media/v4l2-device.h                |  2 +
 6 files changed, 47 insertions(+), 50 deletions(-)

-- 
2.7.0


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

end of thread, other threads:[~2016-03-01  8:55 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-02-29 12:57 [RFC PATCH 0/2] Calculate capabilities based on device_caps Hans Verkuil
2016-02-29 12:57 ` [RFC PATCH 1/2] v4l2: collect the union of all device_caps in struct v4l2_device Hans Verkuil
2016-03-01  8:55   ` Laurent Pinchart
2016-02-29 12:57 ` [RFC PATCH 2/2] vivid: let the v4l2 core calculate the capabilities field Hans Verkuil

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