linux-media.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* New ctrl framework also enumerates classes
@ 2011-07-04  6:23 Hans de Goede
  2011-07-04  6:30 ` Hans Verkuil
  0 siblings, 1 reply; 3+ messages in thread
From: Hans de Goede @ 2011-07-04  6:23 UTC (permalink / raw)
  To: Linux Media Mailing List; +Cc: Hans Verkuil

Hi All,

One last thing before I really leave on vacation which just popped
in my mind as something which I had not mentioned yet.

The new ctrl framework also enumerates classes when enumerating
ctrls with the next flag. I wonder if this is intentional?

IOW if this is a feature or a bug?

Either way this confuses various userspace apps, gtk-v4l prints
warnings about an unknown control type, and v4l2ucp gets a very
messed up UI because of this change. Thus unless there are
really strong reasons to do this, I suggest we skip classes
when enumerating controls.

Regards,

Hans

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

* Re: New ctrl framework also enumerates classes
  2011-07-04  6:23 New ctrl framework also enumerates classes Hans de Goede
@ 2011-07-04  6:30 ` Hans Verkuil
  2011-07-11 14:31   ` Hans de Goede
  0 siblings, 1 reply; 3+ messages in thread
From: Hans Verkuil @ 2011-07-04  6:30 UTC (permalink / raw)
  To: Hans de Goede; +Cc: Linux Media Mailing List

On Monday, July 04, 2011 08:23:10 Hans de Goede wrote:
> Hi All,
> 
> One last thing before I really leave on vacation which just popped
> in my mind as something which I had not mentioned yet.
> 
> The new ctrl framework also enumerates classes when enumerating
> ctrls with the next flag. I wonder if this is intentional?

It's absolutely intentional. It's needed to produce the headers of the
tabs in e.g. qv4l2. It's been part of the spec for several years now.

> IOW if this is a feature or a bug?
> 
> Either way this confuses various userspace apps, gtk-v4l prints
> warnings about an unknown control type,

It should just skip such types.

> and v4l2ucp gets a very
> messed up UI because of this change. Thus unless there are
> really strong reasons to do this, I suggest we skip classes
> when enumerating controls.

Those apps should be fixed. If apps see an unknown type, then they should
always just skip such controls (and later add support for it, of course).

Another control type (bitmask) will be merged soon as well, so the same
problem will occur with that, but this is all really an application bug.
Apps should be tested with vivi: that driver has all control types that we
have, so that's a good driver to test with.

Regards,

	Hans

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

* Re: New ctrl framework also enumerates classes
  2011-07-04  6:30 ` Hans Verkuil
@ 2011-07-11 14:31   ` Hans de Goede
  0 siblings, 0 replies; 3+ messages in thread
From: Hans de Goede @ 2011-07-11 14:31 UTC (permalink / raw)
  To: Hans Verkuil; +Cc: Linux Media Mailing List

Hi,

On 07/04/2011 08:30 AM, Hans Verkuil wrote:
> On Monday, July 04, 2011 08:23:10 Hans de Goede wrote:
>> Hi All,
>>
>> One last thing before I really leave on vacation which just popped
>> in my mind as something which I had not mentioned yet.
>>
>> The new ctrl framework also enumerates classes when enumerating
>> ctrls with the next flag. I wonder if this is intentional?
>
> It's absolutely intentional. It's needed to produce the headers of the
> tabs in e.g. qv4l2. It's been part of the spec for several years now.
>
>> IOW if this is a feature or a bug?
>>
>> Either way this confuses various userspace apps, gtk-v4l prints
>> warnings about an unknown control type,
>
> It should just skip such types.
>
>> and v4l2ucp gets a very
>> messed up UI because of this change. Thus unless there are
>> really strong reasons to do this, I suggest we skip classes
>> when enumerating controls.
>
> Those apps should be fixed. If apps see an unknown type, then they should
> always just skip such controls (and later add support for it, of course).

Ok, I will fix those apps (for gtk-v4l I'm involved upstream, for v4l2ucp
I'll fix it for Fedora and submit a patch upstream).

Regards,

Hans

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

end of thread, other threads:[~2011-07-11 14:29 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-07-04  6:23 New ctrl framework also enumerates classes Hans de Goede
2011-07-04  6:30 ` Hans Verkuil
2011-07-11 14:31   ` Hans de Goede

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).