[RFC PATCH 0/2] Calculate capabilities based on device_caps

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Hans Verkuil <hans.verkuil@xxxxxxxxx>

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

--
To unsubscribe from this list: send the line "unsubscribe linux-media" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux Input]     [Video for Linux]     [Gstreamer Embedded]     [Mplayer Users]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux