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@vger.kernel.org, Hans Verkuil <hans.verkuil@cisco.com>
Subject: Re: [RFCv1 PATCH 3/7] tuner-core: fix g_frequency support.
Date: Sat, 11 Jun 2011 10:44:43 -0300	[thread overview]
Message-ID: <4DF3714B.70507@redhat.com> (raw)
In-Reply-To: <0d7f8cae6d252df04dbbcc6515507a9f7e00b895.1307798213.git.hans.verkuil@cisco.com>

Em 11-06-2011 10:34, Hans Verkuil escreveu:
> From: Hans Verkuil <hans.verkuil@cisco.com>
> 
> VIDIOC_G_FREQUENCY should not check the tuner type, instead that is
> something the driver fill in.
> 
> Since apps will often leave the type at 0, the 'supported_mode' call
> will return false and the frequency never gets filled in.
> 
> Remove this check.

This patch is wrong, as it breaks support for devices with multiple
tuners (e. g. a tea5767 for radio and another tuner for TV).

> 
> Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
> ---
>  drivers/media/video/tuner-core.c |    2 --
>  1 files changed, 0 insertions(+), 2 deletions(-)
> 
> diff --git a/drivers/media/video/tuner-core.c b/drivers/media/video/tuner-core.c
> index ee43e0a..4d8dcea 100644
> --- a/drivers/media/video/tuner-core.c
> +++ b/drivers/media/video/tuner-core.c
> @@ -1132,8 +1132,6 @@ static int tuner_g_frequency(struct v4l2_subdev *sd, struct v4l2_frequency *f)
>  	struct tuner *t = to_tuner(sd);
>  	struct dvb_tuner_ops *fe_tuner_ops = &t->fe.ops.tuner_ops;
>  
> -	if (!supported_mode(t, f->type))
> -		return 0;
>  	f->type = t->mode;
>  	if (fe_tuner_ops->get_frequency && !t->standby) {
>  		u32 abs_freq;


  reply	other threads:[~2011-06-11 13:44 UTC|newest]

Thread overview: 31+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-06-11 13:34 [RFCv1 PATCH 0/7] tuner-core: fix g_freq/s_std and g/s_tuner Hans Verkuil
2011-06-11 13:34 ` [RFCv1 PATCH 1/7] tuner-core: rename check_mode to supported_mode Hans Verkuil
2011-06-11 13:34   ` [RFCv1 PATCH 2/7] tuner-core: change return type of set_mode_freq to bool Hans Verkuil
2011-06-11 13:34   ` [RFCv1 PATCH 3/7] tuner-core: fix g_frequency support Hans Verkuil
2011-06-11 13:44     ` Mauro Carvalho Chehab [this message]
2011-06-11 13:53       ` Hans Verkuil
2011-06-11 13:34   ` [RFCv1 PATCH 4/7] tuner-core: simplify the standard fixup Hans Verkuil
2011-06-11 13:34   ` [RFCv1 PATCH 5/7] tuner-core: fix s_std and s_tuner Hans Verkuil
2011-06-11 13:34   ` [RFCv1 PATCH 6/7] tuner-core: fix g_tuner Hans Verkuil
2011-06-11 13:48     ` Mauro Carvalho Chehab
2011-06-11 13:34   ` [RFCv1 PATCH 7/7] tuner-core: s_tuner should not change tuner mode Hans Verkuil
2011-06-11 13:54     ` Mauro Carvalho Chehab
2011-06-11 17:27       ` Hans Verkuil
2011-06-11 18:21         ` Andy Walls
2011-06-11 19:04         ` Mauro Carvalho Chehab
2011-06-12 11:36           ` Hans Verkuil
2011-06-12 11:59             ` Mauro Carvalho Chehab
2011-06-12 12:13               ` Mauro Carvalho Chehab
2011-06-12 12:30                 ` Hans Verkuil
2011-06-12 12:53                   ` Andy Walls
2011-06-12 13:23                     ` Hans Verkuil
2011-06-12 13:44                       ` Andy Walls
2011-06-12 13:57                         ` Devin Heitmueller
2011-06-12 14:28                           ` Mauro Carvalho Chehab
2011-06-12 15:34                           ` Andy Walls
2011-06-12 17:38                             ` Mauro Carvalho Chehab
2011-06-12 14:06                         ` Hans Verkuil
2011-06-12 12:23               ` Hans Verkuil
2011-06-12 14:11                 ` Mauro Carvalho Chehab
2011-06-12 14:33                   ` Hans Verkuil
2011-06-12 15:29                     ` Andy Walls

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=4DF3714B.70507@redhat.com \
    --to=mchehab@redhat.com \
    --cc=hans.verkuil@cisco.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.