mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2026-02-18 22:05:37 -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
|
|
@ -5,6 +5,7 @@
|
|||
This file is part of PulseAudio.
|
||||
|
||||
Copyright 2008-2013 João Paulo Rechi Vita
|
||||
Copyrigth 2018-2019 Pali Rohár <pali.rohar@gmail.com>
|
||||
|
||||
PulseAudio is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU Lesser General Public License as
|
||||
|
|
@ -22,6 +23,8 @@
|
|||
|
||||
#include <pulsecore/core.h>
|
||||
|
||||
#include "a2dp-codec-util.h"
|
||||
|
||||
#define PA_BLUETOOTH_UUID_A2DP_SOURCE "0000110a-0000-1000-8000-00805f9b34fb"
|
||||
#define PA_BLUETOOTH_UUID_A2DP_SINK "0000110b-0000-1000-8000-00805f9b34fb"
|
||||
|
||||
|
|
@ -82,6 +85,8 @@ struct pa_bluetooth_transport {
|
|||
uint8_t *config;
|
||||
size_t config_size;
|
||||
|
||||
const pa_a2dp_codec *a2dp_codec;
|
||||
|
||||
uint16_t microphone_gain;
|
||||
uint16_t speaker_gain;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue