All of lore.kernel.org
 help / color / mirror / Atom feed
From: Mauro Carvalho Chehab <mchehab@redhat.com>
To: Hans Verkuil <hverkuil@xs4all.nl>
Cc: Linux Media Mailing List <linux-media@vger.kernel.org>
Subject: Re: [PATCH 0/4] Some fixes for tuner, tvp5150 and em28xx
Date: Tue, 22 Feb 2011 09:12:32 -0300	[thread overview]
Message-ID: <4D63A830.20805@redhat.com> (raw)
In-Reply-To: <201102220853.59343.hverkuil@xs4all.nl>

Em 22-02-2011 04:53, Hans Verkuil escreveu:
> Actually, v4l2-ctrl and qv4l2 handle 'holes' correctly. I think this is a
> different bug relating to the handling of V4L2_CTRL_FLAG_NEXT_CTRL. Can you
> try this patch:
> 
> diff --git a/drivers/media/video/v4l2-ctrls.c b/drivers/media/video/v4l2-ctrls.c
> index ef66d2a..15eda86 100644
> --- a/drivers/media/video/v4l2-ctrls.c
> +++ b/drivers/media/video/v4l2-ctrls.c
> @@ -1364,6 +1364,8 @@ EXPORT_SYMBOL(v4l2_queryctrl);
>  
>  int v4l2_subdev_queryctrl(struct v4l2_subdev *sd, struct v4l2_queryctrl *qc)
>  {
> +	if (qc->id & V4L2_CTRL_FLAG_NEXT_CTRL)
> +		return -EINVAL;
>  	return v4l2_queryctrl(sd->ctrl_handler, qc);

Ok, this fixed the issue:
                     brightness (int)  : min=0 max=255 step=1 default=128 value=128
                       contrast (int)  : min=0 max=255 step=1 default=128 value=128
                     saturation (int)  : min=0 max=255 step=1 default=128 value=128
                            hue (int)  : min=-128 max=127 step=1 default=0 value=0
                         volume (int)  : min=0 max=65535 step=655 default=58880 value=65500 flags=slider
                        balance (int)  : min=0 max=65535 step=655 default=32768 value=32750 flags=slider
                           bass (int)  : min=0 max=65535 step=655 default=32768 value=32750 flags=slider
                         treble (int)  : min=0 max=65535 step=655 default=32768 value=32750 flags=slider
                           mute (bool) : default=0 value=0
                       loudness (bool) : default=0 value=0

Also, v4l2-compliance is now complaining less about it.

Control ioctls:
		fail: does not support V4L2_CTRL_FLAG_NEXT_CTRL
	test VIDIOC_QUERYCTRL/MENU: FAIL
	test VIDIOC_G/S_CTRL: OK
	test VIDIOC_G/S/TRY_EXT_CTRLS: Not Supported
	Standard Controls: 0 Private Controls: 0

(yet, it is showing "standard controls = 0").

Could you provide your SOB to the above patch?

Thanks!
Mauro

  parent reply	other threads:[~2011-02-22 12:12 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-02-22  2:17 [PATCH 0/4] Some fixes for tuner, tvp5150 and em28xx Mauro Carvalho Chehab
2011-02-22  2:52 ` Mauro Carvalho Chehab
2011-02-22  7:53   ` Hans Verkuil
2011-02-22 11:31     ` Mauro Carvalho Chehab
2011-02-22 12:12     ` Mauro Carvalho Chehab [this message]
2011-02-22 12:28       ` Hans Verkuil

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=4D63A830.20805@redhat.com \
    --to=mchehab@redhat.com \
    --cc=hverkuil@xs4all.nl \
    --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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.