From 3ba8e88e396f216ac8486580b8817aac92ae93b2 Mon Sep 17 00:00:00 2001 From: Yunhao Tian Date: Wed, 3 Nov 2021 16:31:10 +0800 Subject: [PATCH] package/bluez-alsa: add support for aptX / aptX HD This adds support for aptX (HD) decoder / encoder powered by the libopenaptx library. Signed-off-by: Yunhao Tian Signed-off-by: Thomas Petazzoni --- package/bluez-alsa/bluez-alsa.mk | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/package/bluez-alsa/bluez-alsa.mk b/package/bluez-alsa/bluez-alsa.mk index f81720f767..a1e550ab6c 100644 --- a/package/bluez-alsa/bluez-alsa.mk +++ b/package/bluez-alsa/bluez-alsa.mk @@ -69,4 +69,12 @@ else BLUEZ_ALSA_CONF_OPTS += --disable-rfcomm endif +ifeq ($(BR2_PACKAGE_LIBOPENAPTX),y) +BLUEZ_ALSA_DEPENDENCIES += libopenaptx +BLUEZ_ALSA_CONF_OPTS += --with-libopenaptx --enable-aptx --enable-aptx-hd +else +BLUEZ_ALSA_CONF_OPTS += --without-libopenaptx --disable-aptx --disable-aptx-hd +endif + + $(eval $(autotools-package))