From patchwork Thu Oct 21 07:52:41 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: m7aalton X-Patchwork-Id: 4681 Return-path: Envelope-to: mchehab@pedra Delivery-date: Thu, 21 Oct 2010 07:51:24 -0200 Received: from mchehab by pedra with local (Exim 4.72) (envelope-from ) id 1P8rnw-000146-70 for mchehab@pedra; Thu, 21 Oct 2010 07:51:24 -0200 Received: from casper.infradead.org [85.118.1.10] by pedra with IMAP (fetchmail-6.3.17) for (single-drop); Thu, 21 Oct 2010 07:51:24 -0200 (BRST) Received: from vger.kernel.org ([209.132.180.67]) by casper.infradead.org with esmtp (Exim 4.72 #1 (Red Hat Linux)) id 1P8pxN-00020o-Hk; Thu, 21 Oct 2010 07:53:02 +0000 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754649Ab0JUHw7 (ORCPT + 1 other); Thu, 21 Oct 2010 03:52:59 -0400 Received: from smtp.nokia.com ([147.243.1.47]:28848 "EHLO mgw-sa01.nokia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753756Ab0JUHw7 (ORCPT ); Thu, 21 Oct 2010 03:52:59 -0400 Received: from nokia.com (localhost [127.0.0.1]) by mgw-sa01.nokia.com (Switch-3.4.3/Switch-3.4.3) with ESMTP id o9L7qj6n004499; Thu, 21 Oct 2010 10:52:46 +0300 Received: from localhost.localdomain ([masi.nmp.nokia.com [172.22.211.19]]) by mgw-sa01.nokia.com with RELAY id o9L7qeaU004404 ; Thu, 21 Oct 2010 10:52:41 +0300 From: "Matti J. Aaltonen" To: linux-media@vger.kernel.org, mchehab@redhat.com, hverkuil@xs4all.nl Cc: "Matti J. Aaltonen" Subject: [PATCH] v4l-utils: Add support for new RDS CAP bits. Date: Thu, 21 Oct 2010 10:52:41 +0300 Message-Id: <1287647561-28386-1-git-send-email-matti.j.aaltonen@nokia.com> X-Mailer: git-send-email 1.6.1.3 X-Nokia-AV: Clean Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org Sender: Add support for V4L2_TUNER_CAP_RDS_BLOCK_IO and V4L2_TUNER_CAP_RDS_CONTROLS tuner/modulator capability bits. Signed-off-by: Matti J. Aaltonen --- utils/v4l2-ctl/v4l2-ctl.cpp | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/utils/v4l2-ctl/v4l2-ctl.cpp b/utils/v4l2-ctl/v4l2-ctl.cpp index ab9a7d1..bd971dc 100644 --- a/utils/v4l2-ctl/v4l2-ctl.cpp +++ b/utils/v4l2-ctl/v4l2-ctl.cpp @@ -1266,6 +1266,10 @@ static std::string tcap2s(unsigned cap) s += "lang2 "; if (cap & V4L2_TUNER_CAP_RDS) s += "rds "; + if (cap & V4L2_TUNER_CAP_RDS_BLOCK_IO) + s += "rds-block-io "; + if (cap & V4L2_TUNER_CAP_RDS_CONTROLS) + s += "rds-controls "; return s; }