bluetooth: split BT codec from A2DP SEP configuration api

Common API for all bluetooth codecs is now pa_bt_codec.
API to negotiate and configure A2DP SEP over Bluez is now pa_a2dp_endpoint_conf.

Part-of: <https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/merge_requests/507>
This commit is contained in:
Igor V. Kovalenko 2021-03-02 21:33:24 +03:00 committed by PulseAudio Marge Bot
parent c7c9ca22ab
commit 310e2877a0
12 changed files with 322 additions and 275 deletions

View file

@ -18,7 +18,8 @@
#include <config.h>
#endif
#include "a2dp-codec-api.h"
#include <pulsecore/core.h>
#include "bt-codec-api.h"
#include "bt-codec-msbc.h"
#include <sbc/sbc.h>
@ -300,7 +301,7 @@ static size_t decode_buffer(void *codec_info, const uint8_t *input_buffer, size_
}
/* Modified SBC codec for HFP Wideband Speech*/
const pa_a2dp_codec pa_bt_codec_msbc = {
const pa_bt_codec pa_bt_codec_msbc = {
.name = "mSBC",
.description = "mSBC",
.init = init,