diff -Nru pulseaudio-11.1/debian/changelog pulseaudio-11.1/debian/changelog --- pulseaudio-11.1/debian/changelog 2017-11-01 16:13:53.000000000 +0800 +++ pulseaudio-11.1/debian/changelog 2017-12-14 13:28:31.000000000 +0800 @@ -1,3 +1,10 @@ +pulseaudio (1:11.1-1ubuntu2) bionic; urgency=medium + + * Add 0800-fix-lp1720684.patch to ensure the default Bluetooth audio + profile is the higher quality A2DP rather than HSP/HFP. (LP: #1720684) + + -- Daniel van Vugt Thu, 14 Dec 2017 13:28:31 +0800 + pulseaudio (1:11.1-1ubuntu1) bionic; urgency=medium * Drop upstreamed patches: diff -Nru pulseaudio-11.1/debian/patches/0800-fix-lp1720684.patch pulseaudio-11.1/debian/patches/0800-fix-lp1720684.patch --- pulseaudio-11.1/debian/patches/0800-fix-lp1720684.patch 1970-01-01 08:00:00.000000000 +0800 +++ pulseaudio-11.1/debian/patches/0800-fix-lp1720684.patch 2017-12-14 13:26:46.000000000 +0800 @@ -0,0 +1,58 @@ +Description: bluetooth: set better priorities for profiles + Since HSP had higher priority than A2DP, the default profile when + connecting a new headset was HSP. To me it makes more sense to default + to high-quality output. We already have some automatic policies to + switch to HSP when it's needed. + . + I also made the A2DP source and HSP/HFP gateway profiles have lower + priority than the A2DP sink and HSP headset profiles. The A2DP source + and HSP/HFP gateway profiles should only be activated if the remote + device initiates audio streaming, so it makes sense to have lower + priority for those profiles. +Author: Tanu Kaskinen +Acked-by: Daniel van Vugt +Origin: upstream, https://cgit.freedesktop.org/pulseaudio/pulseaudio/commit/src/modules?id=85daab2725c8964d5e3d07089c4056435022d12e +Bug-Ubuntu: https://bugs.launchpad.net/bugs/1720684 +Bug: https://bugs.freedesktop.org/show_bug.cgi?id=103058 +Last-Update: 2017-12-14 + +Index: pulseaudio/src/modules/bluetooth/module-bluez5-device.c +=================================================================== +--- pulseaudio.orig/src/modules/bluetooth/module-bluez5-device.c ++++ pulseaudio/src/modules/bluetooth/module-bluez5-device.c +@@ -1851,7 +1851,7 @@ static pa_card_profile *create_card_prof + switch (profile) { + case PA_BLUETOOTH_PROFILE_A2DP_SINK: + cp = pa_card_profile_new(name, _("High Fidelity Playback (A2DP Sink)"), sizeof(pa_bluetooth_profile_t)); +- cp->priority = 10; ++ cp->priority = 40; + cp->n_sinks = 1; + cp->n_sources = 0; + cp->max_sink_channels = 2; +@@ -1863,7 +1863,7 @@ static pa_card_profile *create_card_prof + + case PA_BLUETOOTH_PROFILE_A2DP_SOURCE: + cp = pa_card_profile_new(name, _("High Fidelity Capture (A2DP Source)"), sizeof(pa_bluetooth_profile_t)); +- cp->priority = 10; ++ cp->priority = 20; + cp->n_sinks = 0; + cp->n_sources = 1; + cp->max_sink_channels = 0; +@@ -1875,7 +1875,7 @@ static pa_card_profile *create_card_prof + + case PA_BLUETOOTH_PROFILE_HEADSET_HEAD_UNIT: + cp = pa_card_profile_new(name, _("Headset Head Unit (HSP/HFP)"), sizeof(pa_bluetooth_profile_t)); +- cp->priority = 20; ++ cp->priority = 30; + cp->n_sinks = 1; + cp->n_sources = 1; + cp->max_sink_channels = 1; +@@ -1888,7 +1888,7 @@ static pa_card_profile *create_card_prof + + case PA_BLUETOOTH_PROFILE_HEADSET_AUDIO_GATEWAY: + cp = pa_card_profile_new(name, _("Headset Audio Gateway (HSP/HFP)"), sizeof(pa_bluetooth_profile_t)); +- cp->priority = 20; ++ cp->priority = 10; + cp->n_sinks = 1; + cp->n_sources = 1; + cp->max_sink_channels = 1; diff -Nru pulseaudio-11.1/debian/patches/series pulseaudio-11.1/debian/patches/series --- pulseaudio-11.1/debian/patches/series 2017-11-01 16:13:53.000000000 +0800 +++ pulseaudio-11.1/debian/patches/series 2017-12-14 13:26:26.000000000 +0800 @@ -16,3 +16,5 @@ # Ubuntu Snappy 0700-modules-add-snappy-policy-module.patch +# Bug fixes backported from PulseAudio 12 +0800-fix-lp1720684.patch