lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <201208060926.40164.hverkuil@xs4all.nl>
Date:	Mon, 6 Aug 2012 09:26:40 +0200
From:	Hans Verkuil <hverkuil@...all.nl>
To:	Federico Vaga <federico.vaga@...il.com>
Cc:	Mauro Carvalho Chehab <mchehab@...radead.org>,
	Pawel Osciak <pawel@...iak.com>,
	Marek Szyprowski <m.szyprowski@...sung.com>,
	Hans Verkuil <hans.verkuil@...co.com>,
	Giancarlo Asnaghi <giancarlo.asnaghi@...com>,
	linux-media@...r.kernel.org, linux-kernel@...r.kernel.org,
	Jonathan Corbet <corbet@....net>
Subject: Re: Update VIP to videobuf2 and control framework

On Sun August 5 2012 19:11:19 Federico Vaga wrote:
> Hi Hans,
>  
> > Did you run the latest v4l2-compliance tool from the v4l-utils.git
> > repository over your driver? I'm sure you didn't since VIP is missing
> > support for control events and v4l2-compliance would certainly
> > complain about that.
> > 
> > Always check with v4l2-compliance whenever you make changes! It's
> > continuously improved as well, so a periodic check wouldn't hurt.
> 
> I applied all your suggestions, and some extra simplification; now I'm 
> running v4l2-compliance but I have this error:
> 
> 
> Allow for multiple opens:
>         test second video open: OK
>         test VIDIOC_QUERYCAP: OK
>                 fail: v4l2-compliance.cpp(322): doioctl(node, 
> VIDIOC_G_PRIORITY, &prio)
>         test VIDIOC_G/S_PRIORITY: FAIL
> 
> 
> which I don't undestand. I don't have vidio_{g|s}_priority functions in 
> my implementation. And I'm using the V4L2_FL_USE_FH_PRIO flag as 
> suggested in the documentation:
> 
> ---------------
> - flags: optional. Set to V4L2_FL_USE_FH_PRIO if you want to let the 
> framework handle the VIDIOC_G/S_PRIORITY ioctls. This requires that you 
> use struct v4l2_fh.

  ^^^^^^^^^^^^^^^^^^

Are you using struct v4l2_fh? The version you posted didn't. You need this
anyway to implement control events.

Regards,

	Hans

> Eventually this flag will disappear once all drivers 
> use the core priority handling. But for now it has to be set explicitly.
> --------------
> 
> 
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ