From 2d3e30558739560de3a44d62362a385b644eb8f2 Mon Sep 17 00:00:00 2001 From: Gwenhael Goavec-Merou Date: Fri, 29 Apr 2016 10:12:12 +0200 Subject: [PATCH] gnuradio: add gr-audio support gr-audio is a gnuradio module to use audio card as sink or source. Signed-off-by: Gwenhael Goavec-Merou Signed-off-by: Julien BOIBESSOT Signed-off-by: Thomas Petazzoni --- package/gnuradio/Config.in | 6 ++++++ package/gnuradio/gnuradio.mk | 12 ++++++++++++ 2 files changed, 18 insertions(+) diff --git a/package/gnuradio/Config.in b/package/gnuradio/Config.in index b72ece50a8..d7d23470e3 100644 --- a/package/gnuradio/Config.in +++ b/package/gnuradio/Config.in @@ -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 diff --git a/package/gnuradio/gnuradio.mk b/package/gnuradio/gnuradio.mk index 46d1f4fab8..8f771fc6a5 100644 --- a/package/gnuradio/gnuradio.mk +++ b/package/gnuradio/gnuradio.mk @@ -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 -- 2.30.2