mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-12-16 08:56:45 -05:00
bluez: set bluez profile property when emitting node
We need to expose the bluetooth profile in the nodes so that external applications know how to handle them.
This commit is contained in:
parent
3142d3b979
commit
ddd2a97f7e
3 changed files with 23 additions and 1 deletions
|
|
@ -138,6 +138,26 @@ static inline enum spa_bt_profile spa_bt_profile_from_uuid(const char *uuid)
|
|||
return 0;
|
||||
}
|
||||
|
||||
static inline const char *spa_bt_profile_name (enum spa_bt_profile profile) {
|
||||
switch (profile) {
|
||||
case SPA_BT_PROFILE_A2DP_SOURCE:
|
||||
return "a2dp-source";
|
||||
case SPA_BT_PROFILE_A2DP_SINK:
|
||||
return "a2dp-sink";
|
||||
case SPA_BT_PROFILE_HSP_HS:
|
||||
return "hsp-hs";
|
||||
case SPA_BT_PROFILE_HSP_AG:
|
||||
return "hsp-ag";
|
||||
case SPA_BT_PROFILE_HFP_HF:
|
||||
return "hfp-hf";
|
||||
case SPA_BT_PROFILE_HFP_AG:
|
||||
return "hfp-ag";
|
||||
default:
|
||||
break;
|
||||
}
|
||||
return "unknown";
|
||||
}
|
||||
|
||||
struct spa_bt_monitor;
|
||||
|
||||
struct spa_bt_adapter {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue