mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-23 06:59:58 -05:00
bluez5: set some BAP Context metadata value on streams
Some devices refuse to enable microphone if Streaming Context metadata is just Unspecified. Set some reasonable values for the stream context we create along TMAP, and try follow CAP rules for selecting the PAC.
This commit is contained in:
parent
2010a525d3
commit
8d59ad2713
4 changed files with 182 additions and 21 deletions
|
|
@ -113,10 +113,11 @@ struct media_codec {
|
|||
const void *caps, size_t caps_size,
|
||||
struct spa_audio_info *info);
|
||||
int (*get_qos)(const struct media_codec *codec,
|
||||
const void *config, size_t config_size,
|
||||
const struct bap_endpoint_qos *endpoint_qos,
|
||||
const void *config_data,
|
||||
struct bap_codec_qos *qos);
|
||||
int (*get_metadata)(const struct media_codec *codec, const void *config_data,
|
||||
uint8_t *meta, size_t meta_max_size);
|
||||
void (*free_config_data)(const struct media_codec *codec, void *config_data);
|
||||
|
||||
/** qsort comparison sorting caps in order of preference for the codec.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue