Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for LHDC V3 A2DP source and sink #672

Merged
merged 2 commits into from
Nov 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
1 change: 1 addition & 0 deletions NEWS
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ unreleased
- renamed bluealsa to bluealsad (no backward compatibility)
- renamed bluealsa.conf to org.bluealsa.conf (no backward compatibility)
- renamed bluealsa-cli to bluealsactl (no backward compatibility)
- optional support for A2DP Sink and Source with LHDC v3 codec
- channel map and volume control for surround sound (5.1, 7.1) audio
- native A2DP volume control by default (dropped --a2dp-volume option)
- fix configuration for Android 13 A2DP Opus codec
Expand Down
12 changes: 11 additions & 1 deletion configure.ac
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# BlueALSA - configure.ac
# Copyright (c) 2016-2024 Arkadiusz Bokowy

AC_PREREQ([2.60])
AC_PREREQ([2.62])
AC_INIT([BlueALSA],
[m4_normalize(esyscmd([test -d .git && git describe --always --dirty || echo v4.3.1]))],
[arkadiusz.bokowy@gmail.com], [bluez-alsa], [https://github.com/arkq/bluez-alsa])
Expand All @@ -13,6 +13,7 @@ AC_CONFIG_MACRO_DIR([m4])

AC_USE_SYSTEM_EXTENSIONS
m4_version_prereq(2.70, [AC_PROG_CC], [AC_PROG_CC_C99])
AC_OPENMP
AC_PROG_INSTALL
AC_PROG_LN_S
AC_PROG_MKDIR_P
Expand Down Expand Up @@ -226,6 +227,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 @@ bluealsad_SOURCES += \
midi.c
endif

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

if ENABLE_MPEG
bluealsad_SOURCES += \
a2dp-mpeg.c
Expand Down Expand Up @@ -137,6 +142,8 @@ AM_CFLAGS = \
@LDAC_ABR_CFLAGS@ \
@LDAC_DEC_CFLAGS@ \
@LDAC_ENC_CFLAGS@ \
@LHDC_DEC_CFLAGS@ \
@LHDC_ENC_CFLAGS@ \
@LIBBSD_CFLAGS@ \
@LIBUNWIND_CFLAGS@ \
@MP3LAME_CFLAGS@ \
Expand All @@ -158,6 +165,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