Skip to content

Commit

Permalink
Add support for LHDC V3 A2DP source and sink
Browse files Browse the repository at this point in the history
  • Loading branch information
anonymix007 committed Mar 1, 2024
1 parent b4c9a58 commit 12725d6
Show file tree
Hide file tree
Showing 10 changed files with 624 additions and 0 deletions.
1 change: 1 addition & 0 deletions .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
BLE
BT
Expand Down
9 changes: 9 additions & 0 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,15 @@ AM_COND_IF([ENABLE_MIDI], [
AC_DEFINE([ENABLE_MIDI], [1], [Define to 1 if Bluetooth LE MIDI 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 @@ -98,6 +98,11 @@ bluealsa_SOURCES += \
midi.c
endif

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

if ENABLE_MPEG
bluealsa_SOURCES += \
a2dp-mpeg.c
Expand Down Expand Up @@ -132,6 +137,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 @@ -151,6 +158,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 12725d6

Please sign in to comment.