public inbox for linux-media@vger.kernel.org
 help / color / mirror / Atom feed
* Question about v4l2-compliance: cap->readbuffers
@ 2013-07-30 13:12 Ricardo Ribalda Delgado
  2013-07-30 13:45 ` Hans Verkuil
  0 siblings, 1 reply; 8+ messages in thread
From: Ricardo Ribalda Delgado @ 2013-07-30 13:12 UTC (permalink / raw)
  To: linux-media

Hello

I am developing a driver for a camera that supports read/write and
mmap access to the buffers.

When I am running the compliance test, I cannot pass it because of
this test on v4l2-test-formats.cpp

904                 if (!(node->caps & V4L2_CAP_READWRITE))
905                         fail_on_test(cap->readbuffers);
906                 else if (node->caps & V4L2_CAP_STREAMING)
907                         fail_on_test(!cap->readbuffers);

What should be the value of cap-readbuffers for a driver such as mine,
that supports cap_readwrite and cap_streaming? Or I cannot support
both, although at least this drivers do the same?


$ git grep CAP_READWRITE *  | grep CAP_STREAMING
pci/cx25821/cx25821-video.c: V4L2_CAP_READWRITE | V4L2_CAP_STREAMING;
pci/cx88/cx88-video.c: cap->device_caps = V4L2_CAP_READWRITE |
V4L2_CAP_STREAMING;
pci/saa7134/saa7134-video.c: cap->device_caps = V4L2_CAP_READWRITE |
V4L2_CAP_STREAMING;
platform/marvell-ccic/mcam-core.c: V4L2_CAP_READWRITE | V4L2_CAP_STREAMING;
platform/via-camera.c: V4L2_CAP_READWRITE | V4L2_CAP_STREAMING;
usb/cx231xx/cx231xx-video.c: cap->device_caps = V4L2_CAP_READWRITE |
V4L2_CAP_STREAMING;
usb/em28xx/em28xx-video.c: V4L2_CAP_READWRITE | V4L2_CAP_VIDEO_CAPTURE
| V4L2_CAP_STREAMING;
usb/stkwebcam/stk-webcam.c: | V4L2_CAP_READWRITE | V4L2_CAP_STREAMING;
usb/tlg2300/pd-video.c: V4L2_CAP_STREAMING | V4L2_CAP_READWRITE;


Thanks!

-- 
Ricardo Ribalda

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

end of thread, other threads:[~2013-07-31  7:37 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-07-30 13:12 Question about v4l2-compliance: cap->readbuffers Ricardo Ribalda Delgado
2013-07-30 13:45 ` Hans Verkuil
2013-07-30 15:18   ` Ricardo Ribalda Delgado
2013-07-30 15:29     ` Hans Verkuil
2013-07-30 15:46       ` Ricardo Ribalda Delgado
2013-07-30 16:17         ` Hans Verkuil
2013-07-31  7:09           ` Ricardo Ribalda Delgado
2013-07-31  7:37             ` Hans Verkuil

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