public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Andy Walls <awalls@md.metrocast.net>
To: manjunatha_halli@ti.com
Cc: mchehab@infradead.org, hverkuil@xs4all.nl,
	linux-kernel@vger.kernel.org, linux-media@vger.kernel.org
Subject: Re: [RFC v6 2/9] Documentation:DocBook:v4l: Update the controls.xml for TI FM driver
Date: Fri, 03 Dec 2010 08:53:27 -0500	[thread overview]
Message-ID: <1291384407.2800.77.camel@morgan.silverblock.net> (raw)
In-Reply-To: <1291380631-25993-3-git-send-email-manjunatha_halli@ti.com>

> Em 03-12-2010 10:50, manjunatha_halli@ti.com escreveu:
> > From: Manjunatha Halli <manjunatha_halli@ti.com>
> > 
> > Added entries for following 2 new CID's which are added for TI FM
> > driver:
> > - V4L2_CID_RSSI_THRESHOLD
> > - V4L2_CID_TUNE_AF
> > 
> > Signed-off-by: Manjunatha Halli <manjunatha_halli@ti.com>
> > ---
> >  Documentation/DocBook/v4l/controls.xml |   12 ++++++++++++
> >  1 files changed, 12 insertions(+), 0 deletions(-)
> > 
> > diff --git a/Documentation/DocBook/v4l/controls.xml b/Documentation/DocBook/v4l/controls.xml
> > index 2fae3e8..b560953 100644
> > --- a/Documentation/DocBook/v4l/controls.xml
> > +++ b/Documentation/DocBook/v4l/controls.xml
> > @@ -132,6 +132,18 @@ consumption state.</entry>
> >  	    <entry>Loudness mode (bass boost).</entry>
> >  	  </row>
> >  	  <row>
> > +           <entry><constant>V4L2_CID_RSSI_THRESHOLD</constant></entry>
> > +           <entry>integer</entry>
> > +           <entry>Set RSSI threshold level. Change the default threshold
> > +level used to select valid frequencies during vidioc_s_hw_freq_seek.</entry>
> > +         </row>
> > +         <row>
> > +           <entry><constant>V4L2_CID_TUNE_AF</constant></entry>
> > +           <entry>integer</entry>
> > +           <entry>Set Alternative Frequency mode. Enable or disable
> > +alternative frequency mode.</entry>
> > +         </row>
> > +         <row>
> >  	    <entry><constant>V4L2_CID_BLACK_LEVEL</constant></entry>
> >  	    <entry>integer</entry>
> >  	    <entry>Another name for brightness (not a synonym of
> 
> Sorry, but, I doubt that any userspace application developer will find those descriptions
> useful. 
> 
> For the threshold: I understand that this is the carrier strength used to detect a
> channel, right? If so, please improve the description.
> Also, The better is to associate its scale to a carrier level in some unit like dB.

Hi Mauro and Manjunatha,

>From my recollection of 3GPP (which is obviously not FM radio), the
requirements on a RSSI are intentionally loose.  The "I" in RSSI is for
"indicator", not a precise quantity.  An example RSSI measurement
specification can be found here:

ftp://ftp.3gpp.org/specs/2010-09/Rel-9/25_series/25215-920.zip
(I couldn't find an RSSI spec for FM radio.)

In 3GPP, RSSI is used for Human-Machine interfaces: e.g. How many bars
are shown on your phone's display.  Applications can also use it to
decide if they have sufficient signal or not.

I don't think standardizing the units into dB is going to be useful for
applications.  RSSI measurements from different FM receiver hardware
cannot be fairly compared using standard units, since not all FM
receivers will be creating a RSSI value in the same way.

However, standardizing the range of the scale for this control would be
useful for applications.  I don't care if drivers use a scale of 0-100,
0-255 (like this patchset), or 0-65535.  I just suggest that all
drivers, that provide this process-decision threshold-control, use the
same range.

My $0.02.


> The second control means absolutely nothing... It is not a boolean value, and what
> is "alternative" frequency mode?

I agree with Mauro here.  The documentation does not give any idea what
alternate frequency means to an application developer who does not
already know about the underlying hardware receiver.

Regards,
Andy



  parent reply	other threads:[~2010-12-03 13:53 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-12-03 12:50 [RFC v6 0/9] FM V4L2 drivers for WL128x manjunatha_halli
2010-12-03 12:50 ` [RFC v6 1/9] include:linux: videodev2.h: FM Rx control class manjunatha_halli
2010-12-03 12:50   ` [RFC v6 2/9] Documentation:DocBook:v4l: Update the controls.xml for TI FM driver manjunatha_halli
2010-12-03 12:14     ` Mauro Carvalho Chehab
2010-12-03 12:50     ` [RFC v6 3/9] drivers:staging: ti-st: fmdrv common header file manjunatha_halli
2010-12-03 12:50       ` [RFC v6 4/9] drivers:staging: ti-st: fmdrv_v4l2 sources manjunatha_halli
2010-12-03 12:50         ` [RFC v6 5/9] drivers:staging: ti-st: fmdrv_common sources manjunatha_halli
2010-12-03 12:50           ` [RFC v6 6/9] drivers:staging: ti-st: FM driver RX sources manjunatha_halli
2010-12-03 12:50             ` [RFC v6 7/9] drivers:staging: ti-st: FM driver TX sources manjunatha_halli
2010-12-03 12:50               ` [RFC v6 8/9] drivers:staging: ti-st: Kconfig & Makefile change manjunatha_halli
2010-12-03 12:50                 ` [RFC v6 9/9] driver:staging:ti-st: Update TODO for FM V4L2 driver manjunatha_halli
2010-12-03 13:53     ` Andy Walls [this message]
2010-12-03 13:54 ` [RFC v6 0/9] FM V4L2 drivers for WL128x Ohad Ben-Cohen
2010-12-03 14:09   ` Mauro Carvalho Chehab

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=1291384407.2800.77.camel@morgan.silverblock.net \
    --to=awalls@md.metrocast.net \
    --cc=hverkuil@xs4all.nl \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-media@vger.kernel.org \
    --cc=manjunatha_halli@ti.com \
    --cc=mchehab@infradead.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox