EHfive / pulseaudio-modules-bt

[Deprecated, see https://github.com/EHfive/pulseaudio-modules-bt/issues/154] Adds Sony LDAC, aptX, aptX HD, AAC codecs (A2DP Audio) support to PulseAudio on Linux
GNU General Public License v3.0
1.75k stars 86 forks source link

module-bluetooth-policy: Remember last used profile. #95

Closed conte91 closed 4 years ago

conte91 commented 4 years ago

Currently, the auto_switch parameter makes module-bluetooth-policy go back to A2DP, which is undesirable if one uses a HD codec.

When switching profile to HSP due to the auto_switch parameter being set, make module-bluetooth-policy remember the current profile in use by the card. In this way, when the reverting to the original profile, the card won't fallback to the default A2DP profile, but will go back to whatever profile was being used at the time of switching (e.g. LDAC).