Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 856544 - media-video/pipewire-0.3.53_p20220704 broken sound with aptX codec
Summary: media-video/pipewire-0.3.53_p20220704 broken sound with aptX codec
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-07-05 12:00 UTC by Eugene Shalygin
Modified: 2022-07-06 03:47 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Eugene Shalygin 2022-07-05 12:00:24 UTC
After upgrading media-video/pipewire to 0.3.53_p20220704 there is only noise in headphones when using aptX codec. The system lists aptX and aptX-LL profiles, both of them produce noise only. Downgrading pipewire to 0.3.53-r1 helps.

Reproducible: Always

Steps to Reproduce:
1. Upgrade pipewire to 0.3.53_p20220704
2. Switch sink profile to aptX.
3. Play anything.
Actual Results:  
The sink plays noise.

Expected Results:  
The sink plays original sound.

$ emerge --info media-video/pipewire  
Portage 3.0.30 (python 3.10.5-final-0, default/linux/amd64/17.1/desktop/plasma/systemd, gcc-12.1.1, glibc-2.35-r7, 5.18.8-gentoo x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-5.18.8-gentoo-x86_64-AMD_Ryzen_9_5900HX_with_Radeon_Graphics-with-glibc2.35
KiB Mem:    65275128 total,  43681692 free
KiB Swap:  100663292 total, 100411720 free
Timestamp of repository gentoo: Tue, 05 Jul 2022 09:01:41 +0000
Head commit of repository gentoo: f5871ddf5d24033a09943b476820df4fe583ad5d

Timestamp of repository dwosky: Wed, 29 Jun 2022 18:02:30 +0000
Head commit of repository dwosky: ded88646491ea1245aa326a5bd1edff8d13667dc

Timestamp of repository mv: Sat, 02 Jul 2022 18:16:50 +0000
Head commit of repository mv: c0861c9def7e8c2dc747c87d6d35436d702d215d

Timestamp of repository nest: Mon, 04 Jul 2022 19:01:32 +0000
Head commit of repository nest: 0ac00632760edfd6d445f85b765808c610d51afb

Head commit of repository paludis-gentoo-overlay: 751ef7414a0982fbdc8c7c54319b9efb0b0f46a2

Timestamp of repository waffle-builds: Sat, 02 Jul 2022 21:46:47 +0000
Head commit of repository waffle-builds: 7e7a7084a2cce15904f55030c68d74a6ce06914f

Head commit of repository zeule: ab7c79dab5371223dd8322324810c2a6c9cec3cf

Head commit of repository 4nykey: e123ee440157110f17669df346a0f418a00cefeb

Head commit of repository bobwya: 6efd89008da8a5f18139c38ea663dd1d8944e2e8

Head commit of repository cg: 60cbed7a7657efeb100c688d80f4a7b366f64b5c

Head commit of repository dotnet: 79b95c4f839396323d4dbd3033be3de3fb7cbaa8

Head commit of repository gamerlay: 9da1291326aae1b1e8465ce0c10f2db4c7cf546e

Head commit of repository guru: 3fafa148e95a433a5a3ed1029209f5fafa92cf85

Head commit of repository haarp: d97f061f5d7e655b38ac89c85f561bc5c15cb923

Head commit of repository interactive-fiction: 31b83c15417dfbee38ad1ca05908ee6696953b18

Head commit of repository kde: 0ede4c34291c39b85acfed71e867e859d91cd857

Head commit of repository lto-overlay: 9e7b681b98b77e1e7f6ceff24a0d05f5798ec3e7

Head commit of repository pg_overlay: 9715724ac54692a1bd696b39d719c7a04151792d

Head commit of repository qt: 608ac78354875a68a8a30681be2f7e6c80a84152

Head commit of repository science: 0b38d28bc9bb3620532c6cde5c6ac341c52503ac

Head commit of repository steam-overlay: 9a51cae3ff28b54137d2991679ac363f5775692b

Head commit of repository x11: 080155ab1dcb60de7df0ef898689a0840ad304da

sh bash 5.1_p16
ld GNU ld (Gentoo 2.38 p4) 2.38
app-misc/pax-utils:        1.3.4::gentoo
app-shells/bash:           5.1_p16::gentoo
dev-java/java-config:      2.3.1::gentoo
dev-lang/perl:             5.36.0::gentoo
dev-lang/python:           3.9.13::gentoo, 3.10.5::gentoo, 3.11.0_beta3::gentoo
dev-lang/rust-bin:         1.62.0::gentoo
dev-util/cmake:            3.23.2::gentoo
dev-util/meson:            0.63.0::gentoo
sys-apps/baselayout:       2.8::gentoo
sys-apps/sandbox:          2.29::gentoo
sys-apps/systemd:          251.2::gentoo
sys-devel/autoconf:        2.13-r2::gentoo, 2.71-r1::gentoo
sys-devel/automake:        1.16.5::gentoo
sys-devel/binutils:        2.38-r2::gentoo
sys-devel/binutils-config: 5.4.1::gentoo
sys-devel/clang:           13.0.1::gentoo, 14.0.6::gentoo
sys-devel/gcc:             11.3.0::gentoo, 12.1.1_p20220625::gentoo
sys-devel/gcc-config:      2.5-r1::gentoo
sys-devel/libtool:         2.4.7::gentoo
sys-devel/lld:             13.0.1::gentoo
sys-devel/llvm:            13.0.1::gentoo, 14.0.6::gentoo
sys-devel/make:            4.3::gentoo
sys-kernel/linux-headers:  5.18-r1::gentoo (virtual/os-headers)
sys-libs/glibc:            2.35-r7::gentoo
Repositories:

gentoo
    location: /var/portage/gentoo
    sync-type: git
    sync-uri: https://anongit.gentoo.org/git/repo/sync/gentoo.git
    priority: -1000

dwosky
    location: /var/portage/repository/dwosky
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/dwosky.git
    masters: gentoo

mv
    location: /var/portage/repository/mv
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/mv.git
    masters: gentoo

nest
    location: /var/portage/repository/nest
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/nest.git
    masters: gentoo

paludis-gentoo-overlay
    location: /var/portage/repository/paludis-gentoo-overlay
    sync-type: git
    sync-uri: https://github.com/MageSlayer/paludis-gentoo-overlay
    masters: gentoo

waffle-builds
    location: /var/portage/repository/waffle-builds
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/waffle-builds.git
    masters: gentoo

zeule
    location: /var/portage/repository/zeule
    sync-type: git
    sync-uri: file:///home/eugene/develop/gentoo-repo
    masters: gentoo qt kde guru mv lto-overlay

4nykey
    location: /var/portage/repository/4nykey
    sync-type: git
    sync-uri: https://github.com/4nykey/4nykey.git
    masters: gentoo
    priority: 50

bobwya
    location: /var/portage/repository/bobwya
    sync-type: git
    sync-uri: https://github.com/bobwya/miscellaneous_ebuilds.git
    masters: gentoo
    priority: 50

cg
    location: /var/portage/repository/cg
    sync-type: git
    sync-uri: https://github.com/brothermechanic/cg.git
    masters: gentoo
    priority: 50

dotnet
    location: /var/portage/repository/dotnet
    sync-type: git
    sync-uri: git://anongit.gentoo.org/proj/dotnet.git
    masters: gentoo
    priority: 50

gamerlay
    location: /var/portage/repository/gamerlay
    sync-type: git
    sync-uri: git://anongit.gentoo.org/proj/gamerlay.git
    masters: gentoo
    priority: 50

guru
    location: /var/portage/repository/guru
    sync-type: git
    sync-uri: https://anongit.gentoo.org/git/repo/proj/guru.git
    masters: gentoo
    priority: 50

haarp
    location: /var/portage/repository/haarp
    sync-type: git
    sync-uri: https://anongit.gentoo.org/git/user/haarp.git
    masters: gentoo
    priority: 50

interactive-fiction
    location: /var/portage/repository/interactive-fiction
    sync-type: git
    sync-uri: git://repo.or.cz/gentoo-interactive-fiction.git
    masters: gentoo
    priority: 50

kde
    location: /var/portage/repository/kde
    sync-type: git
    sync-uri: git://anongit.gentoo.org/proj/kde.git
    masters: gentoo
    priority: 50

lto-overlay
    location: /var/portage/repository/lto-overlay
    sync-type: git
    sync-uri: https://github.com/InBetweenNames/gentooLTO.git
    masters: gentoo mv
    priority: 50

pg_overlay
    location: /var/portage/repository/pg_overlay
    sync-type: git
    sync-uri: https://gitlab.com/Perfect_Gentleman/PG_Overlay.git
    masters: gentoo
    priority: 50

qt
    location: /var/portage/repository/qt
    sync-type: git
    sync-uri: git://anongit.gentoo.org/proj/qt.git
    masters: gentoo
    priority: 50

science
    location: /var/portage/repository/science
    sync-type: git
    sync-uri: https://anongit.gentoo.org/git/proj/sci.git
    masters: gentoo
    priority: 50

steam-overlay
    location: /var/portage/repository/steam-overlay
    sync-type: git
    sync-uri: https://github.com/anyc/steam-overlay.git
    masters: gentoo
    priority: 50

x11
    location: /var/portage/repository/x11
    sync-type: git
    sync-uri: git://anongit.gentoo.org/proj/x11
    masters: gentoo
    priority: 50

xanf
    location: /home/eugene/develop/xanf/distribution/Gentoo/repository
    masters: gentoo
    priority: 80

Installed sets: @system
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="@FREE @FREE @EULA 2dboy-EULA xv CC-Sampling-Plus-1.0 GPL2 as-is ValveSteamLicense unRAR bakoma fairuse Skype-TOS Zarf CDF android szip freedist MPEG-4 intel-ucode AVASYS linux-fw-redistributable no-source-code bh-luxi free-noncomm MSttfEULA NVIDIA-r1 GPL LPPL CC-BY-NC-4.0 OSGi-Specification-2.0 sun-jsr67 JasPer2.0 Amazon-EULA all-rights-reserved MS-vscode-EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O3 -fgraphite-identity -floop-nest-optimize -fdevirtualize-at-ltrans -fipa-pta -fno-semantic-interposition -flto=6 -fuse-linker-plugin -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/maven-bin-3.8/conf /usr/share/themes/oxygen-gtk/gtk-3.0"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=native -O3 -fgraphite-identity -floop-nest-optimize -fdevirtualize-at-ltrans -fipa-pta -fno-semantic-interposition -flto=6 -fuse-linker-plugin -pipe"
DISTDIR="/var/portage/distfiles"
EMERGE_DEFAULT_OPTS="--jobs 3 --load-average 6.0 --quiet-build --keep-going"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs binpkg-multi-instance buildpkg-live cgroup collision-protect compressdebug config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms splitdebug strict strict-keepdir unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/ http://de-mirror.org/gentoo/"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,--as-needed -Wl,--hash-style=gnu"
LINGUAS=" en en_GB eo de uk"
MAKEOPTS="-j6"
PKGDIR="/var/portage/packages"
PORTAGE_COMPRESS="xz"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_EXTRA_OPTS="--quiet"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/tmp"
SHELL="/bin/zsh"
USE="X a52 aac acl acpi activities alsa amd64 amr apng attica avahi bash-completion bluetooth bluray branding bs2b btrfs bzip2 cairo canberra caps cdda cdr chromaprint cli colord crypt css cups dbus declarative designer dirac djvu dovecot dri dts dv dvd dvdnav dvdr efi egl elfutils emacs encode exif faac ffmpeg flac font_types_otf fontconfig fortran fuse gdbm geoip gif git gmp gnuplot gnutls gold gpm gsm gstreamer gtk gtk3 gui harfbuzz iconv icu idn imagemagick inotify iproute2 ipv6 jemalloc jit jpeg jpeg2k jpegxl kde kerberos kipi kwallet lame lapack latex lcms libass libglvnd libinput libnotify libsamplerate libsecret libtirpc live lm-sensors lto luajit luatex lzma mad metalink mng mp3 mp4 mpeg mpi mpris mtp multicall multilib ncurses netlink network networkmanager nfs nftables nls nptl numa ogg openexr opengl openmp openssl pam pango pch pcre pdf pipewire pkcs11 plasma png policykit postscript ppds pulseaudio qml qrcode qt5 quicktime quvi radio readline romio rss rtmp samba scanner sctp sdl seccomp semantic-desktop slp smp speex spell split-usr sqlite ssl startup-notification svg symlink system-icu system-sqlite systemd taglib theora threads thumbnail tiff truetype udev udisks unicode upnp upower usb v4l v4l2 vaapi vdpau vim-syntax vorbis vpx vulkan wayland webengine webp widgets wifi x264 x265 xattr xcb xcomposite xft xinerama xml xmp xrandr xv xvid yv12 zeroconf zlib zsh-completion zstd" ABI_X86="64" ADA_TARGET="gnat_2020" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias proxy" CALLIGRA_FEATURES="karbon sheets words" CAMERAS="canon ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext sse sse2 aes avx avx2 f16c fma3 pclmul popcnt rdrand sha sse3 sse4_1 sse4_2 sse4a ssse3" ELIBC="glibc" GPSD_PROTOCOLS="garmin garmintxt gpsclock timing" INPUT_DEVICES="libinput evdev libinput" KERNEL="linux" L10N="en en-GB eo de uk" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer nlpsolver" LUA_SINGLE_TARGET="lua5-4" LUA_TARGETS="lua5-4" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-4 php8-0" POSTGRES_TARGETS="postgres12 postgres13" PYTHON_SINGLE_TARGET="python3_10" PYTHON_TARGETS="python3_10" RUBY_TARGETS="ruby30 ruby31" SANE_BACKENDS="epson2 net" USERLAND="GNU" VIDEO_CARDS="v4l radeon amdgpu radeonsi" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq proto steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  ADDR2LINE, AR, ARFLAGS, AS, ASFLAGS, CC, CCLD, CONFIG_SHELL, CPP, CPPFLAGS, CTARGET, CXX, CXXFILT, ELFEDIT, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, INSTALL_MASK, LC_ALL, LD, LEX, LFLAGS, LIBTOOL, MAKE, MAKEFLAGS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS_FLAGS, RANLIB, READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS

=================================================================
                        Package Settings
=================================================================

media-video/pipewire-0.3.53-r1::gentoo was built with the following:
USE="X bluetooth gstreamer pipewire-alsa sound-server ssl systemd udev v4l zeroconf -doc -echo-cancel -extra -jack-client -jack-sdk -lv2 (-system-service) -test" ABI_X86="32 (64) (-x32)"
CFLAGS="-march=native -O3 -fgraphite-identity -floop-nest-optimize -fdevirtualize-at-ltrans -fipa-pta -flto=6 -fuse-linker-plugin -pipe -Wl,-O1 -Wl,--as-needed -Wl,--hash-style=gnu"
CXXFLAGS="-march=native -O3 -fgraphite-identity -floop-nest-optimize -fdevirtualize-at-ltrans -fipa-pta -flto=6 -fuse-linker-plugin -pipe -Wl,-O1 -Wl,--as-needed -Wl,--hash-style=gnu"
FEATURES="sfperms userpriv xattr parallel-fetch assume-digests splitdebug binpkg-logs compressdebug unmerge-logs fixlafiles qa-unresolved-soname-deps binpkg-multi-instance cgroup usersandbox unmerge-orphans ebuild-locks config-protect-if-modified strict-keepdir ipc-sandbox userfetch usersync pid-sandbox preserve-libs strict distlocks news network-sandbox protect-owned merge-sync multilib-strict sandbox unknown-features-warn binpkg-docompress binpkg-dostrip buildpkg-live collision-protect"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,--as-needed -Wl,--hash-style=gnu -march=native -O3 -fgraphite-identity -floop-nest-optimize -fdevirtualize-at-ltrans -fipa-pta -flto=6 -fuse-linker-plugin -pipe"
Comment 1 Eugene Shalygin 2022-07-05 12:15:49 UTC
The sound breaks after switching profile (or connecting sink) with the new version installed, i.e.:

upgrading: emerge new pipewire, restart pipewire-pulse.service, play audio [sound OK]
upgrading: emerge new pipewire, restart pipewire-pulse.service, switch sink profile from and back to aptX, play audio [broken sound]

downgrading: emerge old pipewire, restart pipewire-pulse.service, play audio [broken sound]
downgrading: emerge old pipewire, restart pipewire-pulse.service, switch sink profile from and back to aptX, play audio [sound OK]
Comment 2 Joakim Tjernlund 2022-07-05 12:28:05 UTC
You may need https://gitlab.freedesktop.org/pipewire/pipewire/-/merge_requests/1305
Comment 3 Eugene Shalygin 2022-07-05 12:49:27 UTC
Thank you, but my problem seems to be caused by profile switching and not playback itself. I've tried the linked patch though, and saw no difference.
Comment 4 reppk 2022-07-05 14:15:13 UTC
Verson p20220704 doesn't work with my usb DAC as well.
Comment 5 reppk 2022-07-05 14:17:56 UTC
(In reply to reppk from comment #4)
> Verson p20220704 doesn't work with my usb DAC as well.

When I downgrade to version 0.3.53-r1, everything works fine again.
Comment 6 Joakim Tjernlund 2022-07-05 14:35:21 UTC
pipewire master just got updates, maybe try -9999 now?
Comment 7 Eugene Shalygin 2022-07-05 14:40:16 UTC
(In reply to Joakim Tjernlund from comment #6)
> pipewire master just got updates, maybe try -9999 now?

The -9999 version seems to be working fine here, thank you for the hint!
Comment 8 Larry the Git Cow gentoo-dev 2022-07-06 03:47:19 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=32ec7fdb85868895de063139a277b4c50e5b69b3

commit 32ec7fdb85868895de063139a277b4c50e5b69b3
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2022-07-06 03:47:04 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2022-07-06 03:47:12 +0000

    media-video/pipewire: add 0.3.53_p20220705
    
    Closes: https://bugs.gentoo.org/856544
    Signed-off-by: Sam James <sam@gentoo.org>

 media-video/pipewire/Manifest                      |   1 +
 .../pipewire/pipewire-0.3.53_p20220705.ebuild      | 407 +++++++++++++++++++++
 2 files changed, 408 insertions(+)