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 v6 1/9] include:linux: videodev2.h: FM Rx control class
Date: Fri, 3 Dec 2010 07:50:23 -0500 [thread overview]
Message-ID: <1291380631-25993-2-git-send-email-manjunatha_halli@ti.com> (raw)
In-Reply-To: <1291380631-25993-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
next prev parent reply other threads:[~2010-12-03 11:43 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 ` manjunatha_halli [this message]
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 ` [RFC v6 2/9] Documentation:DocBook:v4l: Update the controls.xml for TI FM driver Andy Walls
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=1291380631-25993-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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®