linux-media.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* s5p-tv/mixer_video.c weirdness
@ 2012-09-21 10:07 Hans Verkuil
  2012-09-22 16:25 ` Sylwester Nawrocki
  2012-09-24 10:04 ` [PATCH RFC] s5p-tv: Report only multi-plane capabilities in vidioc_querycap Sylwester Nawrocki
  0 siblings, 2 replies; 3+ messages in thread
From: Hans Verkuil @ 2012-09-21 10:07 UTC (permalink / raw)
  To: linux-media; +Cc: Marek Szyprowski, Sylwester Nawrocki

Hi Marek, Sylwester,

I've been investigating how multiplanar is used in various drivers, and I
came across this driver that is a bit weird.

querycap sets both single and multiple planar output caps:

        cap->capabilities = V4L2_CAP_STREAMING |
                V4L2_CAP_VIDEO_OUTPUT | V4L2_CAP_VIDEO_OUTPUT_MPLANE;

This suggests that both the single and multiplanar APIs are supported.

But mxr_ioctl_ops only implements these:

        /* format handling */
        .vidioc_enum_fmt_vid_out = mxr_enum_fmt,
        .vidioc_s_fmt_vid_out_mplane = mxr_s_fmt,
        .vidioc_g_fmt_vid_out_mplane = mxr_g_fmt,

Mixing single planar enum_fmt with multiplanar s/g_fmt makes little sense.

I suspect everything should be multiplanar.

BTW, I recommend running v4l2-compliance over your s5p drivers. I saw several
things it would fail on.

Regards,

	Hans

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

end of thread, other threads:[~2012-09-24 10:04 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-09-21 10:07 s5p-tv/mixer_video.c weirdness Hans Verkuil
2012-09-22 16:25 ` Sylwester Nawrocki
2012-09-24 10:04 ` [PATCH RFC] s5p-tv: Report only multi-plane capabilities in vidioc_querycap Sylwester Nawrocki

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).