mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-04 13:29:59 -05:00
bluetooth: add CVSD codec implementation
Part-of: <https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/merge_requests/507>
This commit is contained in:
parent
913e7767d6
commit
a7b21fb555
9 changed files with 211 additions and 74 deletions
|
|
@ -29,6 +29,14 @@
|
|||
|
||||
#include "a2dp-codec-util.h"
|
||||
|
||||
extern const pa_a2dp_codec pa_bt_codec_cvsd;
|
||||
|
||||
/* List of HSP/HFP codecs.
|
||||
*/
|
||||
static const pa_a2dp_codec *pa_hf_codecs[] = {
|
||||
&pa_bt_codec_cvsd,
|
||||
};
|
||||
|
||||
extern const pa_a2dp_codec pa_a2dp_codec_sbc;
|
||||
extern const pa_a2dp_codec pa_a2dp_codec_sbc_xq_453;
|
||||
extern const pa_a2dp_codec pa_a2dp_codec_sbc_xq_512;
|
||||
|
|
@ -70,6 +78,17 @@ const pa_a2dp_codec *pa_bluetooth_a2dp_codec_iter(unsigned int i) {
|
|||
return pa_a2dp_codecs[i];
|
||||
}
|
||||
|
||||
const pa_a2dp_codec *pa_bluetooth_get_hf_codec(const char *name) {
|
||||
unsigned int i;
|
||||
|
||||
for (i = 0; i < PA_ELEMENTSOF(pa_hf_codecs); ++i) {
|
||||
if (pa_streq(pa_hf_codecs[i]->name, name))
|
||||
return pa_hf_codecs[i];
|
||||
}
|
||||
|
||||
return NULL;
|
||||
}
|
||||
|
||||
const pa_a2dp_codec *pa_bluetooth_get_a2dp_codec(const char *name) {
|
||||
unsigned int i;
|
||||
unsigned int count = pa_bluetooth_a2dp_codec_count();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue