Skip to content

Commit

Permalink
Add support for LHDC V3 A2DP sink
Browse files Browse the repository at this point in the history
  • Loading branch information
anonymix007 committed Nov 15, 2023
1 parent b65a40f commit 854ed5a
Show file tree
Hide file tree
Showing 17 changed files with 795 additions and 20 deletions.
4 changes: 3 additions & 1 deletion .github/spellcheck-wordlist.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
AAC
ABR
ADDR
AOSP
AVRCP
BT
CBR
Expand Down Expand Up @@ -63,6 +64,7 @@ BlueZ
Fraunhofer
IWYU
LDAC
LHDC
MPD
oFono
PipeWire
Expand Down Expand Up @@ -173,7 +175,7 @@ iter
keyp
LF
LFE
LHDC
LHDCBT
libasound
libbsd
libdbus
Expand Down
9 changes: 9 additions & 0 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,15 @@ AM_COND_IF([ENABLE_LDAC], [
AC_DEFINE([ENABLE_LDAC], [1], [Define to 1 if LDAC is enabled.])
])

AC_ARG_ENABLE([lhdc],
[AS_HELP_STRING([--enable-lhdc], [enable LHDC support])])
AM_CONDITIONAL([ENABLE_LHDC], [test "x$enable_lhdc" = "xyes"])
AM_COND_IF([ENABLE_LHDC], [
AC_DEFINE([ENABLE_LHDC], [1], [Define to 1 if LHDC is enabled.])
PKG_CHECK_MODULES([LHDC_DEC], [ldhcBT-dec >= 4.0.2])
PKG_CHECK_MODULES([LHDC_ENC], [lhdcBT-enc >= 4.0.6])
])

AC_ARG_ENABLE([mp3lame],
[AS_HELP_STRING([--enable-mp3lame], [enable MP3 support])])
AM_CONDITIONAL([ENABLE_MP3LAME], [test "x$enable_mp3lame" = "xyes"])
Expand Down
9 changes: 9 additions & 0 deletions src/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,11 @@ bluealsa_SOURCES += \
a2dp-ldac.c
endif

if ENABLE_LHDC
bluealsa_SOURCES += \
a2dp-lhdc.c
endif

if ENABLE_MPEG
bluealsa_SOURCES += \
a2dp-mpeg.c
Expand Down Expand Up @@ -114,6 +119,8 @@ AM_CFLAGS = \
@LDAC_ABR_CFLAGS@ \
@LDAC_DEC_CFLAGS@ \
@LDAC_ENC_CFLAGS@ \
@LHDC_DEC_CFLAGS@ \
@LHDC_ENC_CFLAGS@ \
@LIBBSD_CFLAGS@ \
@LIBUNWIND_CFLAGS@ \
@MPG123_CFLAGS@ \
Expand All @@ -131,6 +138,8 @@ LDADD = \
@LDAC_ABR_LIBS@ \
@LDAC_DEC_LIBS@ \
@LDAC_ENC_LIBS@ \
@LHDC_DEC_LIBS@ \
@LHDC_ENC_LIBS@ \
@LIBUNWIND_LIBS@ \
@MP3LAME_LIBS@ \
@MPG123_LIBS@ \
Expand Down
Loading

0 comments on commit 854ed5a

Please sign in to comment.