All of lore.kernel.org
 help / color / mirror / Atom feed
From: pramodh ag <pramodhag@yahoo.co.in>
To: "Matti J. Aaltonen" <matti.j.aaltonen@nokia.com>,
	linux-media@vger.kernel.org, hverkuil@xs4all.nl,
	eduardo.valentin@nokia.com, mchehab@redhat.com
Subject: Re: [PATCH v7 4/5] V4L2: WL1273 FM Radio: Controls for the FM radio.
Date: Thu, 12 Aug 2010 17:40:34 +0530 (IST)	[thread overview]
Message-ID: <239550.42715.qm@web95111.mail.in2.yahoo.com> (raw)
In-Reply-To: <1280758003-16118-5-git-send-email-matti.j.aaltonen@nokia.com>

Matti,

> +/**
> + * wl1273_fm_set_tx_power() -    Set the transmission power value.
> + * @core:            A pointer to the device struct.
> + * @power:            The new power value.
> + */
> +static int wl1273_fm_set_tx_power(struct wl1273_core *core, u16 power)
> +{
> +    int r;
> +
> +    if (core->mode == WL1273_MODE_OFF ||
> +        core->mode == WL1273_MODE_SUSPENDED)
> +        return -EPERM;
> +
> +    mutex_lock(&core->lock);
> +
> +    r = wl1273_fm_write_cmd(core, WL1273_POWER_LEV_SET, power);

Output power level is specified in units of dBuV (as explained at 
http://www.linuxtv.org/downloads/v4l-dvb-apis/ch01s09.html#fm-tx-controls).
Shouldn't it be converted to WL1273 specific power level value?

My understanding:
If output power level specified using "V4L2_CID_TUNE_POWER_LEVEL" is 122 
(dB/uV), then
power level value to be passed for WL1273 should be '0'.
Please correct me, if I got this conversion wrong.

Thanks and regards,
Pramodh





  parent reply	other threads:[~2010-08-12 12:17 UTC|newest]

Thread overview: 34+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-08-02 14:06 [PATCH v7 0/5] TI WL1273 FM Radio driver Matti J. Aaltonen
2010-08-02 14:06 ` [PATCH v7 1/5] V4L2: Add seek spacing and FM RX class Matti J. Aaltonen
2010-08-02 14:06   ` [PATCH v7 2/5] MFD: WL1273 FM Radio: MFD driver for the FM radio Matti J. Aaltonen
2010-08-02 14:06     ` [PATCH v7 3/5] ASoC: WL1273 FM Radio Digital audio codec Matti J. Aaltonen
2010-08-02 14:06       ` [PATCH v7 4/5] V4L2: WL1273 FM Radio: Controls for the FM radio Matti J. Aaltonen
2010-08-02 14:06         ` [PATCH v7 5/5] Documentation: v4l: Add hw_seek spacing and FM_RX class Matti J. Aaltonen
2010-08-09 16:34         ` [PATCH v7 4/5] V4L2: WL1273 FM Radio: Controls for the FM radio Hans Verkuil
2010-08-11  8:06         ` Alexey Klimov
2010-08-11  9:27           ` Matti J. Aaltonen
2010-08-12 10:45           ` Matti J. Aaltonen
2010-08-12 12:10         ` pramodh ag [this message]
2010-08-12 12:28           ` Matti J. Aaltonen
2010-08-20 12:04         ` pramodh ag
2010-08-23  6:53           ` Matti J. Aaltonen
2010-08-28  9:43             ` Hans Verkuil
2010-08-09 16:38   ` [PATCH v7 1/5] V4L2: Add seek spacing and FM RX class Hans Verkuil
2010-08-10  7:31     ` Matti J. Aaltonen
2010-08-10  8:04       ` Hans Verkuil
2010-08-10 10:18         ` Matti J. Aaltonen
2010-08-10 12:03         ` Matti J. Aaltonen
2010-08-10 12:14           ` Mauro Carvalho Chehab
2010-08-10 12:30             ` Matti J. Aaltonen
2010-08-11  9:21             ` A problem with http://git.linuxtv.org/media_tree.git Matti J. Aaltonen
2010-08-11 10:56               ` Hans Verkuil
2010-08-11 11:34                 ` Matti J. Aaltonen
2010-08-11 11:44                   ` Matti J. Aaltonen
2010-08-11 12:13                     ` Hans Verkuil
2010-08-11 13:16                     ` Mauro Carvalho Chehab
2010-08-12  9:45                       ` Matti J. Aaltonen
2010-08-12 10:29                         ` Hans Verkuil
2010-08-12 10:34                           ` Matti J. Aaltonen
2010-08-11 12:49                 ` Mauro Carvalho Chehab
2010-08-09  7:33 ` [PATCH v7 0/5] TI WL1273 FM Radio driver Matti J. Aaltonen
2010-08-09  8:05   ` 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=239550.42715.qm@web95111.mail.in2.yahoo.com \
    --to=pramodhag@yahoo.co.in \
    --cc=eduardo.valentin@nokia.com \
    --cc=hverkuil@xs4all.nl \
    --cc=linux-media@vger.kernel.org \
    --cc=matti.j.aaltonen@nokia.com \
    --cc=mchehab@redhat.com \
    /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.