mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-12-16 08:56:45 -05:00
bluez5: Create backend skeleton for HFP support using oFono
This commit is contained in:
parent
82dab3ab4e
commit
9b6dd9461e
4 changed files with 451 additions and 8 deletions
|
|
@ -102,11 +102,12 @@ extern "C" {
|
|||
|
||||
#define PROFILE_HSP_AG "/Profile/HSPAG"
|
||||
#define PROFILE_HSP_HS "/Profile/HSPHS"
|
||||
#define PROFILE_HFP_AG "/Profile/HFPAG"
|
||||
#define PROFILE_HFP_HS "/Profile/HFPHS"
|
||||
|
||||
#define HSP_HS_DEFAULT_CHANNEL 3
|
||||
|
||||
#define HFP_AUDIO_CODEC_CVSD 0x01
|
||||
#define HFP_AUDIO_CODEC_MSBC 0x02
|
||||
|
||||
enum spa_bt_profile {
|
||||
SPA_BT_PROFILE_NULL = 0,
|
||||
SPA_BT_PROFILE_A2DP_SINK = (1 << 0),
|
||||
|
|
@ -298,6 +299,12 @@ struct spa_bt_backend *backend_hsp_native_new(struct spa_bt_monitor *monitor,
|
|||
void backend_hsp_native_free(struct spa_bt_backend *backend);
|
||||
void backend_hsp_native_register_profiles(struct spa_bt_backend *backend);
|
||||
|
||||
struct spa_bt_backend *backend_ofono_new(struct spa_bt_monitor *monitor,
|
||||
const struct spa_support *support,
|
||||
uint32_t n_support);
|
||||
void backend_ofono_free(struct spa_bt_backend *backend);
|
||||
void backend_ofono_add_filters(struct spa_bt_backend *backend);
|
||||
|
||||
#ifdef __cplusplus
|
||||
} /* extern "C" */
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue