diff -Nru pulseaudio-16.1+dfsg1/debian/changelog pulseaudio-16.1+dfsg1/debian/changelog --- pulseaudio-16.1+dfsg1/debian/changelog 2022-08-26 16:04:11.000000000 +0000 +++ pulseaudio-16.1+dfsg1/debian/changelog 2023-02-15 01:44:55.000000000 +0000 @@ -1,3 +1,49 @@ +pulseaudio (1:16.1+dfsg1-2ubuntu3) lunar; urgency=medium + + [ Kai-Heng Feng ] + * d/p/0015-bluetooth-Amend-writeout-to-send-more-initial-frames.patch + (LP: #2007331) + + -- Kai-Heng Feng Wed, 15 Feb 2023 09:44:55 +0800 + +pulseaudio (1:16.1+dfsg1-2ubuntu2) lunar; urgency=medium + + * Fix typo for snap build option + + -- Jeremy Bicha Wed, 08 Feb 2023 17:31:06 -0500 + +pulseaudio (1:16.1+dfsg1-2ubuntu1) lunar; urgency=medium + + * Sync with Debian. Remaining changes: + - Add epoch + - Recommend gstreamer1.0-plugins-good & suggest gstreamer1.0-plugins-bad + - Build-Depend on doxygen, libapparmor-dev, and libsnapd-glib-dev + - Enable snap build option + - Add patches: + + 0001-volume-config-changes.patch + + 0016-nodisplay-autostart.patch + + 0030-load-module-switch-on-connect.patch + - Add patches for Snap support: + + 0406-tagstruct-add-copy-method.patch + + 0407-access-Add-access-control-hooks.patch + + 0408-protocol-native-add-access-checks.patch + + 0409-fix-arg-parsing-after-async-hook.patch + + 0410-pa-client-peer-apparmor-label.patch + + 0700-modules-add-snappy-policy-module.patch + + 0701-enable-snap-policy-module.patch + + 0702-add-snappy-policy-module.patch + + 0016-check_off_profile_when_switching_profile.patch + + 0001-card-restore-setting-preferred-ports-in-entry_from_c.patch + + -- Jeremy Bicha Wed, 08 Feb 2023 17:06:19 -0500 + +pulseaudio (16.1+dfsg1-2) unstable; urgency=medium + + * Team upload + * Release to unstable + + -- Jeremy Bicha Thu, 22 Sep 2022 15:00:13 -0400 + pulseaudio (1:16.1+dfsg1-1ubuntu3) kinetic; urgency=medium * Restore debian/tests/build @@ -3345,7 +3391,7 @@ debian/rules * Switch to 3.0 (quilt) format * debian/control: Use dh-autoreconf - * debian/patches/+0003-Explicitely-link-pax11publish-to-libdbus.patch: + * debian/patches/ - 0003-Explicitely-link-pax11publish-to-libdbus.patch: + Added. Fix build with binutils-gold (Closes: #556124) -- Sjoerd Simons Mon, 25 Jul 2011 23:05:29 +0100 diff -Nru pulseaudio-16.1+dfsg1/debian/control pulseaudio-16.1+dfsg1/debian/control --- pulseaudio-16.1+dfsg1/debian/control 2022-08-26 16:04:11.000000000 +0000 +++ pulseaudio-16.1+dfsg1/debian/control 2023-02-08 22:31:06.000000000 +0000 @@ -6,7 +6,7 @@ Uploaders: Sjoerd Simons , Felipe Sateler , Sebastien Bacher -Build-Depends: debhelper-compat (= 12), +Build-Depends: debhelper-compat (= 13), meson, ninja-build, check , @@ -15,8 +15,8 @@ doxygen, dpkg-dev (>= 1.17.14), intltool, - libapparmor-dev [linux-any], libasound2-dev [linux-any], + libapparmor-dev [linux-any], libasyncns-dev, libavahi-client-dev, libbluetooth-dev [linux-any] , @@ -29,15 +29,10 @@ libgtk-3-dev, libice-dev, libjack-dev, - liblirc-dev, - libltdl-dev (>= 2.2.6a-2), - liborc-0.4-dev (>= 1:0.4.11), - libsamplerate0-dev, - libsndfile1-dev (>= 1.0.20), liblircclient-dev, libltdl-dev, liborc-0.4-dev, - libsnapd-glib-dev (>= 1.61), + libsnapd-glib-dev, libsndfile1-dev, libsoxr-dev (>= 0.1.1), libspeexdsp-dev (>= 1.2~rc1), @@ -54,9 +49,9 @@ systemd [linux-any] Standards-Version: 4.6.0 Rules-Requires-Root: no -Vcs-Browser: https://git.launchpad.net/~ubuntu-audio-dev/pulseaudio -Vcs-Git: https://git.launchpad.net/~ubuntu-audio-dev/pulseaudio -Homepage: http://www.pulseaudio.org +Vcs-Browser: https://salsa.debian.org/pulseaudio-team/pulseaudio +Vcs-Git: https://salsa.debian.org/pulseaudio-team/pulseaudio.git +Homepage: https://www.pulseaudio.org Package: pulseaudio Architecture: any @@ -68,7 +63,7 @@ libpulse0 (= ${binary:Version}), pulseaudio-utils Recommends: rtkit, default-logind | logind, dbus-user-session -Suggests: udev [linux-any], pavumeter, pavucontrol, paprefs, ubuntu-sounds +Suggests: udev [linux-any], pavumeter, pavucontrol, paprefs Description: PulseAudio sound server PulseAudio, previously known as Polypaudio, is a sound server for POSIX and WIN32 systems. It is a drop in replacement for the ESD sound server with @@ -100,8 +95,8 @@ Architecture: any Depends: ${shlibs:Depends}, ${misc:Depends}, libpulsedsp Suggests: avahi-daemon, pulseaudio -Breaks: pulseaudio (<< 1:14.2-3~) -Replaces: pulseaudio (<< 1:14.2-3~) +Breaks: pulseaudio (<< 14.2-3~) +Replaces: pulseaudio (<< 14.2-3~) Description: Command line tools for the PulseAudio sound server PulseAudio, previously known as Polypaudio, is a sound server for POSIX and WIN32 systems. It is a drop in replacement for the ESD sound server with @@ -184,8 +179,7 @@ Build-Profiles: Architecture: linux-any Depends: ${shlibs:Depends}, ${misc:Depends}, bluez (>= 5.23) -Recommends: gstreamer1.0-plugins-good (>= 1.19) -Suggests: gstreamer1.0-plugins-bad (>= 1.19) +Recommends: gstreamer1.0-plugins-bad (>= 1.19) Description: Bluetooth module for PulseAudio sound server PulseAudio, previously known as Polypaudio, is a sound server for POSIX and WIN32 systems. It is a drop in replacement for the ESD sound server with @@ -226,6 +220,7 @@ via PulseAudio's native interface. Package: libpulse-mainloop-glib0 +Section: libs Architecture: any Multi-Arch: same Pre-Depends: ${misc:Pre-Depends} @@ -257,6 +252,7 @@ sound server via PulseAudio's native interface. Package: libpulsedsp +Section: libs Architecture: any Multi-Arch: same Pre-Depends: ${misc:Pre-Depends} diff -Nru pulseaudio-16.1+dfsg1/debian/patches/0015-bluetooth-Amend-writeout-to-send-more-initial-frames.patch pulseaudio-16.1+dfsg1/debian/patches/0015-bluetooth-Amend-writeout-to-send-more-initial-frames.patch --- pulseaudio-16.1+dfsg1/debian/patches/0015-bluetooth-Amend-writeout-to-send-more-initial-frames.patch 1970-01-01 00:00:00.000000000 +0000 +++ pulseaudio-16.1+dfsg1/debian/patches/0015-bluetooth-Amend-writeout-to-send-more-initial-frames.patch 2023-02-15 01:44:55.000000000 +0000 @@ -0,0 +1,51 @@ +From: "Igor V. Kovalenko" +Date: Mon, 6 Feb 2023 09:38:45 +0300 +Subject: bluetooth: Amend writeout to send more initial frames + +When bluetooth transport has both both sink and source, pulseaudio would +synchronize writing out frames with reading frames from peer to make fair +schedule of reads and writes. Pulseaudio allows two blocks of data to be sent to +peer before synchronizing writes with reads just in case that peer implements +similar write schedule. + +It could happen that first blocks are still missed by peer, which would cause +pulseaudio writes to stall waiting for first frames from peer. + +Fix this by allowing more data frames out until data from peer is actually +received. + +Closes: https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/issues/1424 +Part-of: +Signed-off-by: Kai-Heng Feng +--- + src/modules/bluetooth/module-bluez5-device.c | 10 ++++++++-- + 1 file changed, 8 insertions(+), 2 deletions(-) + +diff --git a/src/modules/bluetooth/module-bluez5-device.c b/src/modules/bluetooth/module-bluez5-device.c +index 767482e..a30372e 100644 +--- a/src/modules/bluetooth/module-bluez5-device.c ++++ b/src/modules/bluetooth/module-bluez5-device.c +@@ -1523,8 +1523,8 @@ static void thread_func(void *userdata) { + writable = true; + + /* If we have a source, we let the source determine the timing +- * for the sink */ +- if (have_source) { ++ * for the sink unless peer has not sent any data yet */ ++ if (have_source && u->read_index > 0) { + + /* If the stream is writable, send some data if necessary */ + if (writable) { +@@ -1635,6 +1635,12 @@ static void thread_func(void *userdata) { + goto fail; + + if (result) { ++ if (have_source && u->read_index <= 0) { ++ /* We have a source but peer has not sent any data yet, log this */ ++ if (pa_log_ratelimit(PA_LOG_DEBUG)) ++ pa_log_debug("Still no data received from source, sent one more block to sink"); ++ } ++ + writable = false; + have_written = true; + } diff -Nru pulseaudio-16.1+dfsg1/debian/patches/series pulseaudio-16.1+dfsg1/debian/patches/series --- pulseaudio-16.1+dfsg1/debian/patches/series 2022-08-26 16:04:11.000000000 +0000 +++ pulseaudio-16.1+dfsg1/debian/patches/series 2023-02-15 01:44:55.000000000 +0000 @@ -16,3 +16,4 @@ 0702-add-snappy-policy-module.patch 0016-check_off_profile_when_switching_profile.patch 0001-card-restore-setting-preferred-ports-in-entry_from_c.patch +0015-bluetooth-Amend-writeout-to-send-more-initial-frames.patch diff -Nru pulseaudio-16.1+dfsg1/debian/pulseaudio.dirs pulseaudio-16.1+dfsg1/debian/pulseaudio.dirs --- pulseaudio-16.1+dfsg1/debian/pulseaudio.dirs 2022-08-26 16:04:11.000000000 +0000 +++ pulseaudio-16.1+dfsg1/debian/pulseaudio.dirs 2023-02-08 22:31:06.000000000 +0000 @@ -1 +1,2 @@ etc/pulse/default.pa.d +etc/pulse/system.pa.d diff -Nru pulseaudio-16.1+dfsg1/debian/pulseaudio.maintscript pulseaudio-16.1+dfsg1/debian/pulseaudio.maintscript --- pulseaudio-16.1+dfsg1/debian/pulseaudio.maintscript 2022-08-26 16:04:11.000000000 +0000 +++ pulseaudio-16.1+dfsg1/debian/pulseaudio.maintscript 1970-01-01 00:00:00.000000000 +0000 @@ -1,6 +0,0 @@ -rm_conffile /etc/default/pulseaudio 1:8.0-0ubuntu3~ -rm_conffile /etc/init.d/pulseaudio 1:8.0-0ubuntu3~ -rm_conffile /etc/xdg/autostart/pulseaudio-kde.desktop 1:6.0-0ubuntu1~vivid1~ -mv_conffile /etc/bash_completion.d/pulseaudio-bash-completion.sh /etc/bash_completion.d/pulseaudio 1:8.0-0ubuntu3~ -rm_conffile /etc/bash_completion.d/pulseaudio 1:8.0-0ubuntu3~ -rm_conffile /etc/init/pulseaudio.conf 1:8.0-0ubuntu3~ diff -Nru pulseaudio-16.1+dfsg1/debian/pulseaudio-utils.lintian-overrides pulseaudio-16.1+dfsg1/debian/pulseaudio-utils.lintian-overrides --- pulseaudio-16.1+dfsg1/debian/pulseaudio-utils.lintian-overrides 2022-08-26 16:04:11.000000000 +0000 +++ pulseaudio-16.1+dfsg1/debian/pulseaudio-utils.lintian-overrides 2023-02-08 22:31:06.000000000 +0000 @@ -1,2 +1,2 @@ -pulseaudio-utils: bash-completion-with-hashbang usr/share/bash-completion/completions/pulseaudio +pulseaudio-utils: bash-completion-with-hashbang usr/share/bash-completion/completions/pulseaudio (/bin/bash) pulseaudio-utils: script-not-executable usr/share/bash-completion/completions/pulseaudio diff -Nru pulseaudio-16.1+dfsg1/debian/rules pulseaudio-16.1+dfsg1/debian/rules --- pulseaudio-16.1+dfsg1/debian/rules 2022-08-26 16:04:11.000000000 +0000 +++ pulseaudio-16.1+dfsg1/debian/rules 2023-02-08 22:31:06.000000000 +0000 @@ -46,11 +46,13 @@ -Djack=enabled \ -Dopenssl=enabled \ -Dipv6=true \ + -Dsnap=enabled \ -Dsoxr=enabled \ -Dsystemd=$(systemd) \ -Dudev=$(systemd) \ -Dstream-restore-clear-old-devices=true \ - -Dsnap=enabled \ + -Dtests=$(if $(filter nocheck,$(DEB_BUILD_OPTIONS)),false,true) \ + PA_MAJORMINOR = $(shell echo $(DEB_VERSION_UPSTREAM) | sed -r -e 's/^([0-9]+\.[0-9]+).*/\1/') @@ -80,9 +82,6 @@ override_dh_shlibdeps: dh_shlibdeps --libpackage=pulseaudio -override_dh_missing: - dh_missing --fail-missing - override_dh_installinit: dh_installinit -ppulseaudio --name=pulseaudio-enable-autospawn @@ -92,10 +91,3 @@ override_dh_clean: dh_clean rm -f debian/shlibs.local - -override_dh_auto_test: -ifeq (,$(filter $(DEB_HOST_ARCH), riscv64)) - dh_auto_test -else - dh_auto_test || true -endif diff -Nru pulseaudio-16.1+dfsg1/debian/upstream/metadata pulseaudio-16.1+dfsg1/debian/upstream/metadata --- pulseaudio-16.1+dfsg1/debian/upstream/metadata 2022-08-26 16:04:11.000000000 +0000 +++ pulseaudio-16.1+dfsg1/debian/upstream/metadata 2023-02-08 22:31:06.000000000 +0000 @@ -1,3 +1,5 @@ Name: pulseaudio +Bug-Database: https://gitlab.freedesktop.org/pulseaudio/pulseaudio/issues +Bug-Submit: https://gitlab.freedesktop.org/pulseaudio/pulseaudio/issues/new Repository: https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git Repository-Browse: https://gitlab.freedesktop.org/pulseaudio/pulseaudio