gnuradio: add gr-audio support
authorGwenhael Goavec-Merou <gwenhael.goavec-merou@trabucayre.com>
Fri, 29 Apr 2016 08:12:12 +0000 (10:12 +0200)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Sat, 11 Jun 2016 13:53:44 +0000 (15:53 +0200)
gr-audio is a gnuradio module to use audio card as sink or source.

Signed-off-by: Gwenhael Goavec-Merou <gwenhael.goavec-merou@trabucayre.com>
Signed-off-by: Julien BOIBESSOT <julien.boibessot@armadeus.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
package/gnuradio/Config.in
package/gnuradio/gnuradio.mk

index b72ece50a8c7721ddd9f7d65a3ce81326c0abe3a..d7d23470e3305fcb28cf00b9e075afaf948ad8ca 100644 (file)
@@ -30,6 +30,12 @@ config BR2_PACKAGE_GNURADIO
 
 if BR2_PACKAGE_GNURADIO
 
+config BR2_PACKAGE_GNURADIO_AUDIO
+       bool "gr-audio"
+       depends on BR2_PACKAGE_ALSA_LIB || BR2_PACKAGE_PORTAUDIO
+       help
+         Add audio source/sink to GNU Radio
+
 config BR2_PACKAGE_GNURADIO_BLOCKS
        bool "blocks support"
        help
index 46d1f4fab82ad89a740bdfe7598cfcaa6d65878c..8f771fc6a5e8bbf53a48447996560e17e1f41ce4 100644 (file)
@@ -52,6 +52,18 @@ else
 GNURADIO_CONF_OPTS += -DENABLE_GR_ANALOG=OFF
 endif
 
+ifeq ($(BR2_PACKAGE_GNURADIO_AUDIO),y)
+ifeq ($(BR2_PACKAGE_ALSA_LIB),y)
+GNURADIO_DEPENDENCIES += alsa-lib
+endif
+ifeq ($(BR2_PACKAGE_PORTAUDIO),y)
+GNURADIO_DEPENDENCIES += portaudio
+endif
+GNURADIO_CONF_OPTS += -DENABLE_GR_AUDIO=ON
+else
+GNURADIO_CONF_OPTS += -DENABLE_GR_AUDIO=OFF
+endif
+
 ifeq ($(BR2_PACKAGE_GNURADIO_BLOCKS),y)
 GNURADIO_CONF_OPTS += -DENABLE_GR_BLOCKS=ON
 else