mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-06 13:30:01 -05:00
media-session: add bluez-autoswitch module
Add module that switches bluez device profile to HFP/HSP if an input stream (non-monitor, autoconnect) appears, and the current default output device is bluez one that does not have input route. When all input streams are gone, switch all changed profiles back. Pending restore state is saved to session manager state files, in order to restore it if e.g. devices get disconnected. This usually is not currently necessary since the bluez5 plugin prefers to connect to A2DP over HFP, but might matter in future with backchannel-enabled A2DP codecs.
This commit is contained in:
parent
127781cfc8
commit
76bae0cac4
6 changed files with 625 additions and 0 deletions
|
|
@ -71,6 +71,7 @@ if get_option('session-managers').contains('media-session') and alsa_dep.found()
|
|||
'media-session/alsa-endpoint.c',
|
||||
'media-session/bluez-monitor.c',
|
||||
'media-session/bluez-endpoint.c',
|
||||
'media-session/bluez-autoswitch.c',
|
||||
'media-session/default-nodes.c',
|
||||
'media-session/default-profile.c',
|
||||
'media-session/default-routes.c',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue