From patchwork Wed Sep 22 11:49:59 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: x0130808@ti.com X-Patchwork-Id: 198922 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id o8MAeB3n001154 for ; Wed, 22 Sep 2010 10:40:13 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753822Ab0IVKjR (ORCPT ); Wed, 22 Sep 2010 06:39:17 -0400 Received: from arroyo.ext.ti.com ([192.94.94.40]:42804 "EHLO arroyo.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754244Ab0IVKjK (ORCPT ); Wed, 22 Sep 2010 06:39:10 -0400 Received: from dlep34.itg.ti.com ([157.170.170.115]) by arroyo.ext.ti.com (8.13.7/8.13.7) with ESMTP id o8MAdAia010384 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Wed, 22 Sep 2010 05:39:10 -0500 Received: from localhost.localdomain (localhost [127.0.0.1]) by dlep34.itg.ti.com (8.13.7/8.13.7) with ESMTP id o8MAd6Ju019678; Wed, 22 Sep 2010 05:39:07 -0500 (CDT) From: x0130808@ti.com To: linux-media@vger.kernel.org Cc: Raja Mani , Pramodh AG , Manjunatha Halli Subject: [RFC/PATCH 6/9] drivers:media:video: Adding new CIDs for FM RX ctls Date: Wed, 22 Sep 2010 07:49:59 -0400 Message-Id: <1285156202-28569-7-git-send-email-x0130808@ti.com> X-Mailer: git-send-email 1.6.5 In-Reply-To: <1285156202-28569-6-git-send-email-x0130808@ti.com> References: <1285156202-28569-1-git-send-email-x0130808@ti.com> <1285156202-28569-2-git-send-email-x0130808@ti.com> <1285156202-28569-3-git-send-email-x0130808@ti.com> <1285156202-28569-4-git-send-email-x0130808@ti.com> <1285156202-28569-5-git-send-email-x0130808@ti.com> <1285156202-28569-6-git-send-email-x0130808@ti.com> Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter1.kernel.org [140.211.167.41]); Wed, 22 Sep 2010 10:40:13 +0000 (UTC) diff --git a/drivers/media/video/v4l2-common.c b/drivers/media/video/v4l2-common.c index 4e53b0b..5a8e528 100644 --- a/drivers/media/video/v4l2-common.c +++ b/drivers/media/video/v4l2-common.c @@ -520,6 +520,8 @@ const char *v4l2_ctrl_get_name(u32 id) case V4L2_CID_TUNE_PREEMPHASIS: return "Pre-emphasis settings"; case V4L2_CID_TUNE_POWER_LEVEL: return "Tune Power Level"; case V4L2_CID_TUNE_ANTENNA_CAPACITOR: return "Tune Antenna Capacitor"; + case V4L2_CID_RSSI_THRESHOLD: return "RSSI Threshold"; + case V4L2_CID_TUNE_AF: return "Alternative Frequency"; default: return NULL; @@ -585,6 +587,8 @@ int v4l2_ctrl_query_fill(struct v4l2_queryctrl *qctrl, s32 min, s32 max, s32 ste case V4L2_CID_EXPOSURE_AUTO: case V4L2_CID_COLORFX: case V4L2_CID_TUNE_PREEMPHASIS: + case V4L2_CID_RSSI_THRESHOLD: + case V4L2_CID_TUNE_AF: qctrl->type = V4L2_CTRL_TYPE_MENU; step = 1; break;