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: Matti Aaltonen X-Patchwork-Id: 270221 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 o9L7rEbn005755 for ; Thu, 21 Oct 2010 07:53:14 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754649Ab0JUHw7 (ORCPT ); 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 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]); Thu, 21 Oct 2010 07:53:24 +0000 (UTC) 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; }