Skip to contentSkip to conversation

Add support for RDS decoding

PATCH New Konke Radlow 1 participant 3 messages Aug 10, 2012 1 message not in the archive

Subsystems (2)
lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [PATCH 0/2] Add support for RDS decoding

#1 lore raw

v2 cover Add support for RDS decoding

Hello,
after the positive feedback from the last RFC session, here now a patch including all minor changes that were proposed.

embarrassingly, I missed a minor bug introduced by removing the version field from the v4l2_rds struct, hence the resend

Regards,
Konke

#2 lore raw

PATCH v2 1/2 Add libv4l2rds library

---
 Makefile.am                     |    3 +-
 configure.ac                    |    2 +
 lib/include/libv4l2rds.h        |  218 +++++++++
 lib/libv4l2rds/Makefile.am      |   11 +
 lib/libv4l2rds/libv4l2rds.c     |  964 +++++++++++++++++++++++++++++++++++++++
 lib/libv4l2rds/libv4l2rds.pc.in |   11 +
 6 files changed, 1208 insertions(+), 1 deletion(-)
 create mode 100644 lib/include/libv4l2rds.h
 create mode 100644 lib/libv4l2rds/Makefile.am
 create mode 100644 lib/libv4l2rds/libv4l2rds.c
 create mode 100644 lib/libv4l2rds/libv4l2rds.pc.in
Makefile.am +2 -1
index a754955..621d8d9 100644
@@ -5,7 +5,8 @@ SUBDIRS = \
 	lib/libv4lconvert \
 	lib/libv4l2 \
 	lib/libv4l1 \
-	lib/libdvbv5
+	lib/libdvbv5 \
+	lib/libv4l2rds
 
 if WITH_V4LUTILS
 SUBDIRS += \
configure.ac +2 -0
index 8ddcc9d..bc9ba14 100644
@@ -14,6 +14,7 @@ AC_CONFIG_FILES([Makefile
 	lib/libv4l2/Makefile
 	lib/libv4l1/Makefile
 	lib/libdvbv5/Makefile
+	lib/libv4l2rds/Makefile
 
 	utils/libv4l2util/Makefile
 	utils/libmedia_dev/Makefile
@@ -36,6 +37,7 @@ AC_CONFIG_FILES([Makefile
 	lib/libv4l1/libv4l1.pc
 	lib/libv4l2/libv4l2.pc
 	lib/libdvbv5/libdvbv5.pc
+	lib/libv4l2rds/libv4l2rds.pc
 ])
 
 AM_INIT_AUTOMAKE([1.9 no-dist-gzip dist-bzip2 -Wno-portability]) # 1.10 is needed for target_LIBTOOLFLAGS
lib/include/libv4l2rds.h new file +218 -0

218 lines not on this page · raw message

lib/libv4l2rds/Makefile.am new file +11 -0
new file mode 100644
index 0000000..05c54b0
@@ -0,0 +1,11 @@
+if WITH_LIBV4L
+lib_LTLIBRARIES = libv4l2rds.la
+include_HEADERS = ../include/libv4l2rds.h
+pkgconfig_DATA = libv4l2rds.pc
+else
+noinst_LTLIBRARIES = libv4l2rds.la
+endif
+
+libv4l2rds_la_SOURCES = libv4l2rds.c
+libv4l2rds_la_CPPFLAGS = -fvisibility=hidden $(ENFORCE_LIBV4L_STATIC) -std=c99
+libv4l2rds_la_LDFLAGS = -version-info 0 -lpthread $(ENFORCE_LIBV4L_STATIC)
lib/libv4l2rds/libv4l2rds.c new file +964 -0

964 lines not on this page · raw message

lib/libv4l2rds/libv4l2rds.pc.in new file +11 -0
new file mode 100644
index 0000000..cc1d5f6
@@ -0,0 +1,11 @@
+prefix=@prefix@
+exec_prefix=@exec_prefix@
+includedir=@includedir@
+libdir=@libdir@
+
+Name: libv4l2rds
+Description: v4l2 RDS decode library
+Version: @PACKAGE_VERSION@
+Libs: -L${libdir} -lv4l2rds
+Libs.private: -lpthread
+Cflags: -I${includedir}
Signature · 1 line
1.7.10.4
#3 lore raw

PATCH v2 2/2 Add rds-ctl tool

In reply to Konke Radlow
---
 Makefile.am               |    3 +-
 configure.ac              |    1 +
 utils/rds-ctl/Makefile.am |    5 +
 utils/rds-ctl/rds-ctl.cpp |  938 +++++++++++++++++++++++++++++++++++++++++++++
 4 files changed, 946 insertions(+), 1 deletion(-)
 create mode 100644 utils/rds-ctl/Makefile.am
 create mode 100644 utils/rds-ctl/rds-ctl.cpp
Makefile.am +2 -1
index 621d8d9..8ef0d00 100644
@@ -18,7 +18,8 @@ SUBDIRS += \
 	utils/v4l2-compliance \
 	utils/v4l2-ctl \
 	utils/v4l2-dbg \
-	utils/v4l2-sysfs-path
+	utils/v4l2-sysfs-path \
+	utils/rds-ctl
 
 if LINUX_OS
 SUBDIRS += \
configure.ac +1 -0
index bc9ba14..a1d26b6 100644
@@ -28,6 +28,7 @@ AC_CONFIG_FILES([Makefile
 	utils/v4l2-sysfs-path/Makefile
 	utils/xc3028-firmware/Makefile
 	utils/qv4l2/Makefile
+	utils/rds-ctl/Makefile
 
 	contrib/freebsd/Makefile
 	contrib/test/Makefile
utils/rds-ctl/Makefile.am new file +5 -0
new file mode 100644
index 0000000..9a84257
@@ -0,0 +1,5 @@
+bin_PROGRAMS = rds-ctl
+
+rds_ctl_SOURCES = rds-ctl.cpp
+rds_ctl_LDADD = ../../lib/libv4l2/libv4l2.la ../../lib/libv4l2rds/libv4l2rds.la
+
utils/rds-ctl/rds-ctl.cpp new file +938 -0

938 lines not on this page · raw message

Signature · 1 line
1.7.10.4