All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jean-Francois Moine <moinejf@free.fr>
To: Antonio Ospite <ospite@studenti.unina.it>
Cc: linux-media@vger.kernel.org,
	Mosalam Ebrahimi <m.ebrahimi@ieee.org>,
	Max Thrun <bear24rw@gmail.com>
Subject: Re: [PATCH 10/11] ov534: Add Powerline Frequency control
Date: Sun, 28 Feb 2010 19:49:51 +0100	[thread overview]
Message-ID: <20100228194951.1c1e26ce@tele> (raw)
In-Reply-To: <1267302028-7941-11-git-send-email-ospite@studenti.unina.it>

On Sat, 27 Feb 2010 21:20:27 +0100
Antonio Ospite <ospite@studenti.unina.it> wrote:

> +static int sd_querymenu(struct gspca_dev *gspca_dev,
> +		struct v4l2_querymenu *menu)
> +{
> +	switch (menu->id) {
> +	case V4L2_CID_POWER_LINE_FREQUENCY:
> +		switch (menu->index) {
> +		case 0:         /*
> V4L2_CID_POWER_LINE_FREQUENCY_50HZ */
> +			strcpy((char *) menu->name, "50 Hz");
> +			return 0;
> +		case 1:         /*
> V4L2_CID_POWER_LINE_FREQUENCY_60HZ */
> +			strcpy((char *) menu->name, "60 Hz");
> +			return 0;
> +		}
> +		break;
> +	}
> +
> +	return -EINVAL;
> +}

In videodev2.h, there is:

V4L2_CID_POWER_LINE_FREQUENCY_50HZ      = 1,
V4L2_CID_POWER_LINE_FREQUENCY_60HZ      = 2,

-- 
Ken ar c'hentañ	|	      ** Breizh ha Linux atav! **
Jef		|		http://moinejf.free.fr/

  reply	other threads:[~2010-02-28 18:49 UTC|newest]

Thread overview: 37+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-02-27 20:20 [PATCH 00/11] ov534: Fixes and updates Antonio Ospite
2010-02-27 20:20 ` [PATCH 01/11] ov534: Remove ambiguous controls Antonio Ospite
2010-02-27 20:20 ` [PATCH 02/11] ov534: Remove hue control Antonio Ospite
2010-02-27 20:20 ` [PATCH 03/11] ov534: Fix autogain control, enable it by default Antonio Ospite
2010-02-27 20:20 ` [PATCH 04/11] ov534: Add Auto Exposure Antonio Ospite
2010-02-27 20:20 ` [PATCH 05/11] ov534: Fix setting manual exposure Antonio Ospite
2010-02-28 18:38   ` Jean-Francois Moine
2010-02-28 18:54     ` Antonio Ospite
2010-02-28 19:42       ` Jean-Francois Moine
2010-03-01 11:10       ` Antonio Ospite
2010-03-01 11:53         ` [PATCH v2 05/11] ov534: Fix and document " Antonio Ospite
2010-02-27 20:20 ` [PATCH 06/11] ov534: Fix Auto White Balance control Antonio Ospite
2010-02-27 20:20 ` [PATCH 07/11] ov534: Fixes for sharpness control Antonio Ospite
2010-02-27 20:20 ` [PATCH 08/11] ov534: Fix unsetting hflip and vflip bits Antonio Ospite
2010-02-27 20:20 ` [PATCH 09/11] ov534: Cosmetics: fix indentation and hex digits Antonio Ospite
2010-02-28 18:46   ` Jean-Francois Moine
2010-02-28 19:11     ` Antonio Ospite
2010-03-01 11:54       ` [PATCH v2 " Antonio Ospite
2010-02-27 20:20 ` [PATCH 10/11] ov534: Add Powerline Frequency control Antonio Ospite
2010-02-28 18:49   ` Jean-Francois Moine [this message]
2010-02-28 19:18     ` Antonio Ospite
2010-02-28 19:55       ` Jean-Francois Moine
2010-03-02 11:26         ` M.Ebrahimi
2010-03-02 15:39           ` Antonio Ospite
     [not found]             ` <7b67a5ec1003020806x65164673ue699de2067bc4fb8@mail.gmail.com>
2010-03-03  2:27               ` M.Ebrahimi
     [not found]                 ` <7b67a5ec1003021830g13b2793eo4d681e4838ca2193@mail.gmail.com>
2010-03-03  2:41                   ` M.Ebrahimi
2010-03-03  8:00                 ` Antonio Ospite
2010-03-03  8:37                   ` Jean-Francois Moine
2010-03-03 10:57                     ` Antonio Ospite
2010-03-03 12:08                       ` Jean-Francois Moine
2010-03-04  4:55                   ` Jim Paris
2010-03-04  9:03                     ` Antonio Ospite
2010-03-04 20:14                       ` Jim Paris
     [not found]                         ` <7b67a5ec1003041222g25af69daq50fc62aeb8c85b96@mail.gmail.com>
2010-03-04 20:36                           ` Jim Paris
2010-03-05 16:18                         ` Antonio Ospite
2010-03-08 16:52                           ` [PATCH v2 " Antonio Ospite
2010-02-27 20:20 ` [PATCH 11/11] ov534: Update copyright info Antonio Ospite

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=20100228194951.1c1e26ce@tele \
    --to=moinejf@free.fr \
    --cc=bear24rw@gmail.com \
    --cc=linux-media@vger.kernel.org \
    --cc=m.ebrahimi@ieee.org \
    --cc=ospite@studenti.unina.it \
    /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.