All of lore.kernel.org
 help / color / mirror / Atom feed
From: manjunatha_halli@ti.com
To: mchehab@infradead.org, hverkuil@xs4all.nl
Cc: linux-kernel@vger.kernel.org, linux-media@vger.kernel.org,
	Manjunatha Halli <manjunatha_halli@ti.com>
Subject: [RFC v5 1/9] include:linux: videodev2.h: FM Rx control class
Date: Mon, 29 Nov 2010 09:18:35 -0500	[thread overview]
Message-ID: <1291040323-2641-2-git-send-email-manjunatha_halli@ti.com> (raw)
In-Reply-To: <1291040323-2641-1-git-send-email-manjunatha_halli@ti.com>

From: Manjunatha Halli <manjunatha_halli@ti.com>

Introduce V4L2_CTRL_CLASS_FM_RX for FM receivers similar to
V4L2_CTRL_CLASS_FM_TX.
Few controls such as RSSI threshold, Alternate Frequency are for
now under this class.

Signed-off-by: Manjunatha Halli <manjunatha_halli@ti.com>
---
 include/linux/videodev2.h |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)

diff --git a/include/linux/videodev2.h b/include/linux/videodev2.h
index 5f6f470..5ab66a9 100644
--- a/include/linux/videodev2.h
+++ b/include/linux/videodev2.h
@@ -932,6 +932,7 @@ struct v4l2_ext_controls {
 #define V4L2_CTRL_CLASS_MPEG 0x00990000	/* MPEG-compression controls */
 #define V4L2_CTRL_CLASS_CAMERA 0x009a0000	/* Camera class controls */
 #define V4L2_CTRL_CLASS_FM_TX 0x009b0000	/* FM Modulator control class */
+#define V4L2_CTRL_CLASS_FM_RX 0x009c0000	/* FM Tuner control class */
 
 #define V4L2_CTRL_ID_MASK      	  (0x0fffffff)
 #define V4L2_CTRL_ID2CLASS(id)    ((id) & 0x0fff0000UL)
@@ -1304,6 +1305,10 @@ enum  v4l2_exposure_auto_type {
 #define V4L2_CID_FM_TX_CLASS_BASE		(V4L2_CTRL_CLASS_FM_TX | 0x900)
 #define V4L2_CID_FM_TX_CLASS			(V4L2_CTRL_CLASS_FM_TX | 1)
 
+/* FM Tuner class control IDs */
+#define V4L2_CID_FM_RX_CLASS_BASE            (V4L2_CTRL_CLASS_FM_RX | 0x900)
+#define V4L2_CID_FM_RX_CLASS                 (V4L2_CTRL_CLASS_FM_RX | 1)
+
 #define V4L2_CID_RDS_TX_DEVIATION		(V4L2_CID_FM_TX_CLASS_BASE + 1)
 #define V4L2_CID_RDS_TX_PI			(V4L2_CID_FM_TX_CLASS_BASE + 2)
 #define V4L2_CID_RDS_TX_PTY			(V4L2_CID_FM_TX_CLASS_BASE + 3)
@@ -1333,6 +1338,9 @@ enum v4l2_preemphasis {
 #define V4L2_CID_TUNE_POWER_LEVEL		(V4L2_CID_FM_TX_CLASS_BASE + 113)
 #define V4L2_CID_TUNE_ANTENNA_CAPACITOR		(V4L2_CID_FM_TX_CLASS_BASE + 114)
 
+#define V4L2_CID_RSSI_THRESHOLD		(V4L2_CID_FM_RX_CLASS_BASE + 2)
+#define V4L2_CID_TUNE_AF                       (V4L2_CID_FM_RX_CLASS_BASE + 3)
+
 /*
  *	T U N I N G
  */
-- 
1.5.6.3


  reply	other threads:[~2010-11-29 13:10 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-11-29 14:18 [RFC v5 0/9] FM V4L2 drivers for WL128x manjunatha_halli
2010-11-29 14:18 ` manjunatha_halli [this message]
2010-11-29 14:18   ` [RFC v5 2/9] Documentation:DocBook:v4l: Update the controls.xml for TI FM driver manjunatha_halli
2010-11-29 14:18     ` [RFC v5 3/9] drivers:staging: ti-st: fmdrv common header file manjunatha_halli
2010-11-29 14:18       ` [RFC v5 4/9] drivers:staging: ti-st: fmdrv_v4l2 sources manjunatha_halli
2010-11-29 14:18         ` [RFC v5 5/9] drivers:staging: ti-st: fmdrv_common sources manjunatha_halli
2010-11-29 14:18           ` [RFC v5 6/9] drivers:staging: ti-st: fmdrv_rx sources manjunatha_halli
2010-11-29 14:18             ` [RFC v5 7/9] drivers:staging: ti-st: fmdrv_tx sources manjunatha_halli
2010-11-29 14:18               ` [RFC v5 8/9] drivers:staging: ti-st: Kconfig & Makefile change manjunatha_halli
2010-11-29 14:18                 ` [RFC v5 9/9] driver:staging:ti-st: Update TODO for FM V4L2 driver manjunatha_halli

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=1291040323-2641-2-git-send-email-manjunatha_halli@ti.com \
    --to=manjunatha_halli@ti.com \
    --cc=hverkuil@xs4all.nl \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-media@vger.kernel.org \
    --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 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.