mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-29 05:40:27 -04:00
bluez5: use only one input route
Don't have separate input route for A2DP and HFP, as it is generally not necessary. When in A2DP mode when there's also HFP possible, emit the input route in SPA_PARAM_Route, even though there is no corresponding input node emitted. The host may then emit a loopback microphone node, and switch profiles according to its status. Having the input route available at all times allows to retain changes to volume settings made when there is no real input node.
This commit is contained in:
parent
4e2057930f
commit
7f2dd3531c
2 changed files with 55 additions and 23 deletions
|
|
@ -190,6 +190,8 @@ enum spa_bt_profile {
|
|||
SPA_BT_PROFILE_HEADSET_HEAD_UNIT = (SPA_BT_PROFILE_HSP_HS | SPA_BT_PROFILE_HFP_HF),
|
||||
SPA_BT_PROFILE_HEADSET_AUDIO_GATEWAY = (SPA_BT_PROFILE_HSP_AG | SPA_BT_PROFILE_HFP_AG),
|
||||
SPA_BT_PROFILE_HEADSET_AUDIO = (SPA_BT_PROFILE_HEADSET_HEAD_UNIT | SPA_BT_PROFILE_HEADSET_AUDIO_GATEWAY),
|
||||
SPA_BT_PROFILE_BAP_AUDIO = (SPA_BT_PROFILE_BAP_SINK | SPA_BT_PROFILE_BAP_BROADCAST_SINK |
|
||||
SPA_BT_PROFILE_BAP_SOURCE | SPA_BT_PROFILE_BAP_BROADCAST_SOURCE),
|
||||
|
||||
SPA_BT_PROFILE_MEDIA_SINK = (SPA_BT_PROFILE_A2DP_SINK | SPA_BT_PROFILE_BAP_SINK |
|
||||
SPA_BT_PROFILE_BAP_BROADCAST_SINK),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue