From: Hans Verkuil <hverkuil@xs4all.nl>
To: Dean Anderson <linux-dev@sensoray.com>
Cc: linux-media@vger.kernel.org
Subject: Re: [PATCH] s2255drv: upgrade to videobuf2
Date: Wed, 12 Feb 2014 17:10:11 +0100 [thread overview]
Message-ID: <52FB9CE3.9010409@xs4all.nl> (raw)
In-Reply-To: <3b3175b374d23eafaf8ea226e9312d68@sensoray.com>
On 02/12/14 17:01, Dean Anderson wrote:
> "./utils/v4l2-compliance/v4l2-compliance -s"
>
> Driver Info:
> Driver name : s2255
> Card type : s2255
> Bus info : usb-0000:00:1a.7-3.6
> Driver version: 3.13.0
> Capabilities : 0x84000001
> Video Capture
> Streaming
> Device Capabilities
> Device Caps : 0x04000001
> Video Capture
> Streaming
>
> Compliance test for device /dev/video0 (not using libv4l2):
>
> Required ioctls:
> test VIDIOC_QUERYCAP: OK
>
> Allow for multiple opens:
> test second video open: OK
> test VIDIOC_QUERYCAP: OK
> test VIDIOC_G/S_PRIORITY: OK
>
> Debug ioctls:
> test VIDIOC_DBG_G/S_REGISTER: OK (Not Supported)
> test VIDIOC_LOG_STATUS: OK
>
> Input ioctls:
> test VIDIOC_G/S_TUNER: OK (Not Supported)
> test VIDIOC_G/S_FREQUENCY: OK (Not Supported)
> test VIDIOC_S_HW_FREQ_SEEK: OK (Not Supported)
> test VIDIOC_ENUMAUDIO: OK (Not Supported)
> test VIDIOC_G/S/ENUMINPUT: OK
> test VIDIOC_G/S_AUDIO: OK (Not Supported)
> Inputs: 1 Audio Inputs: 0 Tuners: 0
>
> Output ioctls:
> test VIDIOC_G/S_MODULATOR: OK (Not Supported)
> test VIDIOC_G/S_FREQUENCY: OK (Not Supported)
> test VIDIOC_ENUMAUDOUT: OK (Not Supported)
> test VIDIOC_G/S/ENUMOUTPUT: OK (Not Supported)
> test VIDIOC_G/S_AUDOUT: OK (Not Supported)
> Outputs: 0 Audio Outputs: 0 Modulators: 0
>
> Control ioctls:
> test VIDIOC_QUERYCTRL/MENU: OK
> test VIDIOC_G/S_CTRL: OK
> test VIDIOC_G/S/TRY_EXT_CTRLS: OK
> test VIDIOC_(UN)SUBSCRIBE_EVENT/DQEVENT: OK
> warn: v4l2-test-controls.cpp(753): The VIDIOC_G_JPEGCOMP ioctl is deprecated!
> warn: v4l2-test-controls.cpp(770): The VIDIOC_S_JPEGCOMP ioctl is deprecated!
> test VIDIOC_G/S_JPEGCOMP: OK
> Standard Controls: 7 Private Controls: 1
>
> Input/Output configuration ioctls:
> test VIDIOC_ENUM/G/S/QUERY_STD: OK
> test VIDIOC_ENUM/G/S/QUERY_DV_TIMINGS: OK (Not Supported)
> test VIDIOC_DV_TIMINGS_CAP: OK (Not Supported)
>
> Format ioctls:
> test VIDIOC_ENUM_FMT/FRAMESIZES/FRAMEINTERVALS: OK
> test VIDIOC_G/S_PARM: OK
> test VIDIOC_G_FBUF: OK (Not Supported)
> test VIDIOC_G_FMT: OK
> warn: v4l2-test-formats.cpp(599): TRY_FMT cannot handle an invalid pixelformat.
> warn: v4l2-test-formats.cpp(600): This may or may not be a problem. For more information see:
> warn: v4l2-test-formats.cpp(601): http://www.mail-archive.com/linux-media@vger.kernel.org/msg56550.html
> test VIDIOC_TRY_FMT: OK
> warn: v4l2-test-formats.cpp(786): S_FMT cannot handle an invalid pixelformat.
> warn: v4l2-test-formats.cpp(787): This may or may not be a problem. For more information see:
> warn: v4l2-test-formats.cpp(788): http://www.mail-archive.com/linux-media@vger.kernel.org/msg56550.html
> test VIDIOC_S_FMT: OK
> test VIDIOC_G_SLICED_VBI_CAP: OK (Not Supported)
>
> Codec ioctls:
> test VIDIOC_(TRY_)ENCODER_CMD: OK (Not Supported)
> test VIDIOC_G_ENC_INDEX: OK (Not Supported)
> test VIDIOC_(TRY_)DECODER_CMD: OK (Not Supported)
>
> Buffer ioctls:
> warn: v4l2-test-buffers.cpp(343): VIDIOC_CREATE_BUFS not supported
> test VIDIOC_REQBUFS/CREATE_BUFS/QUERYBUF: OK
> fail: v4l2-test-buffers.cpp(379): ret < 0 && errno != EINVAL
You added read() support, but did not add V4L2_CAP_READWRITE to querycap.
The following errors are a knock-on effect of that since the driver
is still in read() mode so attempts to call REQBUFS will fail.
I should see if I can improve that in v4l2-compliance.
Regards,
Hans
> test read/write: FAIL
> fail: v4l2-test-buffers.cpp(537): can_stream
> test MMAP: FAIL
> fail: v4l2-test-buffers.cpp(641): can_stream
> test USERPTR: FAIL
>
> Total: 39, Succeeded: 36, Failed: 3, Warnings: 9
next prev parent reply other threads:[~2014-02-12 16:13 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-02-11 22:56 [PATCH] s2255drv: upgrade to videobuf2 Dean Anderson
2014-02-11 23:05 ` Dean Anderson
2014-02-11 23:07 ` Hans Verkuil
2014-02-12 16:01 ` Dean Anderson
2014-02-12 16:10 ` Hans Verkuil [this message]
2014-02-12 20:18 ` Dean Anderson
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=52FB9CE3.9010409@xs4all.nl \
--to=hverkuil@xs4all.nl \
--cc=linux-dev@sensoray.com \
--cc=linux-media@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox