mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-02 09:01:50 -05:00
bluez5: telephony: report transport codec & state on D-Bus
This is useful for implementations that do hardware offloading of the SCO audio channel and need to communicate state information to the hardware (at least).
This commit is contained in:
parent
dc5b85fe57
commit
63e1c48c8b
3 changed files with 252 additions and 34 deletions
|
|
@ -30,11 +30,19 @@ struct spa_bt_telephony {
|
|||
|
||||
};
|
||||
|
||||
struct spa_bt_telephony_ag_transport {
|
||||
int8_t codec;
|
||||
enum spa_bt_transport_state state;
|
||||
};
|
||||
|
||||
struct spa_bt_telephony_ag {
|
||||
struct spa_bt_telephony *telephony;
|
||||
struct spa_list call_list;
|
||||
|
||||
int id;
|
||||
|
||||
/* D-Bus properties */
|
||||
struct spa_bt_telephony_ag_transport transport;
|
||||
};
|
||||
|
||||
struct spa_bt_telephony_call {
|
||||
|
|
@ -91,6 +99,8 @@ void telephony_ag_add_listener(struct spa_bt_telephony_ag *ag,
|
|||
const struct spa_bt_telephony_ag_events *events,
|
||||
void *data);
|
||||
|
||||
void telephony_ag_transport_notify_updated_props(struct spa_bt_telephony_ag *ag);
|
||||
|
||||
/* register/unregister AudioGateway object on the bus */
|
||||
int telephony_ag_register(struct spa_bt_telephony_ag *ag);
|
||||
void telephony_ag_unregister(struct spa_bt_telephony_ag *ag);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue