mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-24 06:59:57 -05:00
bluetooth: Modular API for A2DP codecs
This patch introduce new modular API for bluetooth A2DP codecs. Its benefits are: * bluez5-util and module-bluez5-device does not contain any codec specific code, they are codec independent. * For adding new A2DP codec it is needed just to adjust one table in a2dp-codec-util.c file. All codec specific functions are in separate codec file. * Support for backchannel (microphone voice). Some A2DP codecs (like FastStream or aptX Low Latency) are bi-directional and can be used for both music playback and audio call. * Support for more configurations per codec. This allows to implement low quality mode of some codec together with high quality. Current SBC codec implementation was moved from bluez5-util and module-bluez5-device to its own file and converted to this new A2DP API.
This commit is contained in:
parent
e8c4638f79
commit
106aa91477
8 changed files with 1127 additions and 622 deletions
|
|
@ -2131,6 +2131,9 @@ module_bluetooth_discover_la_CFLAGS = $(AM_CFLAGS) -DPA_MODULE_NAME=module_bluet
|
|||
libbluez5_util_la_SOURCES = \
|
||||
modules/bluetooth/bluez5-util.c \
|
||||
modules/bluetooth/bluez5-util.h \
|
||||
modules/bluetooth/a2dp-codec-api.h \
|
||||
modules/bluetooth/a2dp-codec-util.c \
|
||||
modules/bluetooth/a2dp-codec-util.h \
|
||||
modules/bluetooth/a2dp-codecs.h \
|
||||
modules/bluetooth/rtp.h
|
||||
if HAVE_BLUEZ_5_OFONO_HEADSET
|
||||
|
|
@ -2145,6 +2148,11 @@ endif
|
|||
libbluez5_util_la_LDFLAGS = -avoid-version
|
||||
libbluez5_util_la_LIBADD = $(MODULE_LIBADD) $(DBUS_LIBS)
|
||||
libbluez5_util_la_CFLAGS = $(AM_CFLAGS) $(DBUS_CFLAGS)
|
||||
libbluez5_util_la_CPPFLAGS = $(AM_CPPFLAGS)
|
||||
|
||||
libbluez5_util_la_SOURCES += modules/bluetooth/a2dp-codec-sbc.c
|
||||
libbluez5_util_la_LIBADD += $(SBC_LIBS)
|
||||
libbluez5_util_la_CFLAGS += $(SBC_CFLAGS)
|
||||
|
||||
module_bluez5_discover_la_SOURCES = modules/bluetooth/module-bluez5-discover.c
|
||||
module_bluez5_discover_la_LDFLAGS = $(MODULE_LDFLAGS)
|
||||
|
|
@ -2153,8 +2161,8 @@ module_bluez5_discover_la_CFLAGS = $(AM_CFLAGS) $(DBUS_CFLAGS) -DPA_MODULE_NAME=
|
|||
|
||||
module_bluez5_device_la_SOURCES = modules/bluetooth/module-bluez5-device.c
|
||||
module_bluez5_device_la_LDFLAGS = $(MODULE_LDFLAGS)
|
||||
module_bluez5_device_la_LIBADD = $(MODULE_LIBADD) $(SBC_LIBS) libbluez5-util.la
|
||||
module_bluez5_device_la_CFLAGS = $(AM_CFLAGS) $(SBC_CFLAGS) -DPA_MODULE_NAME=module_bluez5_device
|
||||
module_bluez5_device_la_LIBADD = $(MODULE_LIBADD) libbluez5-util.la
|
||||
module_bluez5_device_la_CFLAGS = $(AM_CFLAGS) -DPA_MODULE_NAME=module_bluez5_device
|
||||
|
||||
# Apple Airtunes/RAOP
|
||||
module_raop_sink_la_SOURCES = modules/raop/module-raop-sink.c
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue