v4l-utils: Add support for new RDS CAP bits.

Message ID 1287647561-28386-1-git-send-email-matti.j.aaltonen@nokia.com (mailing list archive)
State Superseded, archived
Headers

Commit Message

m7aalton Oct. 21, 2010, 7:52 a.m. UTC
  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 <matti.j.aaltonen@nokia.com>
---
 utils/v4l2-ctl/v4l2-ctl.cpp |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
  

Comments

Hans Verkuil Oct. 21, 2010, 9:53 a.m. UTC | #1
Hi Matti,

Looks good. I'll merge it in v4l-utils once the driver is merged in v4l-dvb.

Regards,

        Hans

> 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 <matti.j.aaltonen@nokia.com>
> ---
>  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;
>  }
>
> --
> 1.6.1.3
>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-media" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
>
  

Patch

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;
 }