Bug 1879277 - Audio ducking after Linux kernel 5.8.8 update, with headphones plugged in
Summary: Audio ducking after Linux kernel 5.8.8 update, with headphones plugged in
Keywords:
Status: CLOSED EOL
Alias: None
Product: Fedora
Classification: Fedora
Component: kernel
Version: 32
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Kernel Maintainer List
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-09-15 20:30 UTC by Robin Jacobs
Modified: 2021-05-25 17:48 UTC (History)
20 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2021-05-25 17:48:35 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
journalctl --no-hostname -k -b -1 (108.59 KB, text/plain)
2020-09-15 20:30 UTC, Robin Jacobs
no flags Details

Description Robin Jacobs 2020-09-15 20:30:37 UTC
Created attachment 1714990 [details]
journalctl --no-hostname -k -b -1

Created attachment 1714990 [details]
journalctl --no-hostname -k -b -1

1. Please describe the problem:

After updating the kernel to 5.8.8, when headphones are plugged in, there is a weird audio ducking/loudness equalisation thing going on.

These are some of the patterns I've been able to detect;
* When there is little noise (e.g. quiet moments in a shooter game), ambient noise gets boosted up to insane levels.
* When there is a sudden loud noise (e.g. a gun being shot in said shooter), the volume goes down to very low levels and either gradually restores to normal levels or suddenly jumps back, either on the left and right channel simultaneously or separately.
* When watching the following video (through my stereo headphones): https://www.youtube.com/watch?v=PqVCPE8_ntE -- When it starts playing sound on the right audio channel, if I go into the audio output testing dialog in Gnome Settings and hit "front right" (making it say this out loud), the sound coming through the right channel from the aforementioned video gets lowered. I can reproduce this semi-consistently and tried to record the effect but could not find a way that captured the effect (recording from the PulseAudio monitor sink did not capture it).
* If there has been no sound for a while (a few seconds), and I unpause a song (i.e. something that would cause the sound to start instantly, without any sort of fade-in) it is initially very loud before quickly (within half a second or so) sinking to normal levels. Startling and disturbing, but not insanely loud. This is also something that I only managed to reproduce semi-consistently.

All of this sounds like some sort of overly-aggressive loudness equalisation, where low noises are amplified and loud sounds made more quiet.

2. What is the Version-Release number of the kernel:
➜  ~ uname -r
5.8.8-200.fc32.x86_64

If I boot into 5.8.7-200.fc32.x86_64 from the GRUB boot menu, the problem disappears. Booting into 5.8.8, these issues happen consistently.


3. Did it work previously in Fedora? If so, what kernel version did the issue
   *first* appear?  Old kernels are available for download at
   https://koji.fedoraproject.org/koji/packageinfo?packageID=8 :
Issue appeared after update to 5.8.8-200.fc32.x86_64, does not appear on previous version (5.8.7).


4. Can you reproduce this issue? If so, please provide the steps to reproduce
   the issue below:
See above.
This happens with any pair of headphones I plug into the 3.5mm jack at the front of the case.


5. Does this problem occur with the latest Rawhide kernel? To install the
   Rawhide kernel, run ``sudo dnf install fedora-repos-rawhide`` followed by
   ``sudo dnf update --enablerepo=rawhide kernel``:

It would appear that there is no newer kernel available from Rawhide.

➜  ~ sudo dnf install fedora-repos-rawhide
[sudo] password for robin: 
Last metadata expiration check: 0:18:03 ago on Tue 15 Sep 2020 21:05:01.
Dependencies resolved.
==============================================================================================================================================
 Package                                     Architecture                  Version                       Repository                      Size
==============================================================================================================================================
Installing:
 fedora-repos-rawhide                        noarch                        32-6                          updates                        9.8 k

Transaction Summary
==============================================================================================================================================
Install  1 Package

Total download size: 9.8 k
Installed size: 4.0 k
Is this ok [y/N]: y
Downloading Packages:
fedora-repos-rawhide-32-6.noarch.rpm                                                                           69 kB/s | 9.8 kB     00:00    
----------------------------------------------------------------------------------------------------------------------------------------------
Total                                                                                                          16 kB/s | 9.8 kB     00:00     
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
  Preparing        :                                                                                                                      1/1 
  Installing       : fedora-repos-rawhide-32-6.noarch                                                                                     1/1 
  Verifying        : fedora-repos-rawhide-32-6.noarch                                                                                     1/1 

Installed:
  fedora-repos-rawhide-32-6.noarch                                                                                                            

Complete!
➜  ~ sudo dnf update --enablerepo=rawhide kernel
Fedora - Rawhide - Developmental packages for the next Fedora release                                         4.8 MB/s |  74 MB     00:15    
Last metadata expiration check: 0:00:14 ago on Tue 15 Sep 2020 21:26:48.
Dependencies resolved.
Nothing to do.
Complete!

6. Are you running any modules that not shipped with directly Fedora's kernel?:
As far as I'm aware, only the VirtualBox (host) kernel modules.

# NOTE: This was executed while booted into the 5.8.7 kernel.
➜  ~ lsmod
Module                  Size  Used by
snd_seq_dummy          16384  0
snd_hrtimer            16384  1
veth                   32768  0
xt_nat                 16384  10
nf_conntrack_netlink    53248  0
xt_addrtype            16384  2
br_netfilter           32768  0
xt_CHECKSUM            16384  1
xt_MASQUERADE          20480  7
xt_conntrack           16384  3
ipt_REJECT             16384  2
nf_nat_tftp            16384  0
nf_conntrack_tftp      20480  3 nf_nat_tftp
nft_masq               16384  1
nft_objref             16384  2
tun                    57344  1
bridge                233472  1 br_netfilter
stp                    16384  1 bridge
llc                    16384  2 bridge,stp
nf_conntrack_netbios_ns    16384  1
nf_conntrack_broadcast    16384  1 nf_conntrack_netbios_ns
nft_fib_inet           16384  1
nft_fib_ipv4           16384  1 nft_fib_inet
nft_fib_ipv6           16384  1 nft_fib_inet
nft_fib                16384  3 nft_fib_ipv6,nft_fib_ipv4,nft_fib_inet
overlay               139264  2
nft_reject_inet        16384  5
nf_reject_ipv4         16384  2 nft_reject_inet,ipt_REJECT
nf_reject_ipv6         20480  1 nft_reject_inet
nft_reject             16384  1 nft_reject_inet
nft_ct                 20480  25
nft_chain_nat          16384  4
ip6table_nat           16384  1
ip6table_mangle        16384  1
ip6table_raw           16384  0
ip6table_security      16384  0
iptable_nat            16384  3
nf_nat                 49152  7 ip6table_nat,xt_nat,nf_nat_tftp,nft_masq,nft_chain_nat,iptable_nat,xt_MASQUERADE
nf_conntrack          163840  11 xt_conntrack,nf_nat,nf_conntrack_tftp,nft_ct,nf_conntrack_netbios_ns,xt_nat,nf_nat_tftp,nf_conntrack_broadcast,nf_conntrack_netlink,nft_masq,xt_MASQUERADE
nf_defrag_ipv6         24576  1 nf_conntrack
nf_defrag_ipv4         16384  1 nf_conntrack
iptable_mangle         16384  1
iptable_raw            16384  0
iptable_security       16384  0
rfkill                 28672  3
ip_set                 57344  0
nf_tables             237568  417 nft_ct,nft_reject_inet,nft_fib_ipv6,nft_objref,nft_fib_ipv4,nft_masq,nft_chain_nat,nft_reject,nft_fib,nft_fib_inet
nfnetlink              16384  5 nf_conntrack_netlink,nf_tables,ip_set
ip6table_filter        16384  1
ip6_tables             32768  5 ip6table_filter,ip6table_raw,ip6table_nat,ip6table_mangle,ip6table_security
iptable_filter         16384  1
vboxnetadp             28672  0
vboxnetflt             32768  0
vboxdrv               557056  2 vboxnetadp,vboxnetflt
nct6775                77824  0
hwmon_vid              16384  1 nct6775
sunrpc                565248  1
vfat                   20480  1
fat                    81920  1 vfat
snd_hda_codec_realtek   139264  1
snd_hda_codec_generic    98304  1 snd_hda_codec_realtek
ledtrig_audio          16384  2 snd_hda_codec_generic,snd_hda_codec_realtek
snd_hda_codec_hdmi     73728  1
edac_mce_amd           32768  0
snd_hda_intel          57344  10
kvm_amd               114688  0
snd_intel_dspcfg       24576  1 snd_hda_intel
ccp                   106496  1 kvm_amd
snd_hda_codec         163840  4 snd_hda_codec_generic,snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec_realtek
snd_hda_core          110592  5 snd_hda_codec_generic,snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec,snd_hda_codec_realtek
kvm                   823296  1 kvm_amd
snd_hwdep              16384  1 snd_hda_codec
snd_seq                86016  7 snd_seq_dummy
irqbypass              16384  1 kvm
snd_seq_device         16384  1 snd_seq
rapl                   20480  0
snd_pcm               135168  5 snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec,snd_hda_core
snd_timer              49152  3 snd_seq,snd_hrtimer,snd_pcm
sp5100_tco             20480  0
joydev                 28672  0
snd                   106496  31 snd_hda_codec_generic,snd_seq,snd_seq_device,snd_hda_codec_hdmi,snd_hwdep,snd_hda_intel,snd_hda_codec,snd_hda_codec_realtek,snd_timer,snd_pcm
wmi_bmof               16384  0
pcspkr                 16384  0
k10temp                16384  0
i2c_piix4              28672  0
soundcore              16384  1 snd
acpi_cpufreq           28672  0
binfmt_misc            24576  1
ip_tables              32768  5 iptable_filter,iptable_security,iptable_raw,iptable_nat,iptable_mangle
amdgpu               5865472  41
iommu_v2               20480  1 amdgpu
gpu_sched              40960  1 amdgpu
i2c_algo_bit           16384  1 amdgpu
ttm                   122880  1 amdgpu
drm_kms_helper        262144  1 amdgpu
cec                    61440  1 drm_kms_helper
crct10dif_pclmul       16384  1
crc32_pclmul           16384  0
crc32c_intel           24576  3
drm                   622592  16 gpu_sched,drm_kms_helper,amdgpu,ttm
ghash_clmulni_intel    16384  0
nvme                   49152  2
r8169                  98304  0
nvme_core             118784  4 nvme
wmi                    36864  1 wmi_bmof
pinctrl_amd            32768  0
fuse                  139264  5

7. Please attach the kernel logs. You can get the complete kernel log
   for a boot with ``journalctl --no-hostname -k > dmesg.txt``. If the
   issue occurred on a previous boot, use the journalctl ``-b`` flag.

Done.

Hardware info:
CPU: AMD Ryzen 3600
Motherboard: MSI X570 A-PRO
GPU: AMD RX480

➜  ~ lscpu
Architecture:                    x86_64
CPU op-mode(s):                  32-bit, 64-bit
Byte Order:                      Little Endian
Address sizes:                   43 bits physical, 48 bits virtual
CPU(s):                          12
On-line CPU(s) list:             0-11
Thread(s) per core:              2
Core(s) per socket:              6
Socket(s):                       1
NUMA node(s):                    1
Vendor ID:                       AuthenticAMD
CPU family:                      23
Model:                           113
Model name:                      AMD Ryzen 5 3600 6-Core Processor
Stepping:                        0
Frequency boost:                 enabled
CPU MHz:                         2048.217
CPU max MHz:                     3600.0000
CPU min MHz:                     2200.0000
BogoMIPS:                        7200.41
Virtualization:                  AMD-V
L1d cache:                       192 KiB
L1i cache:                       192 KiB
L2 cache:                        3 MiB
L3 cache:                        32 MiB
NUMA node0 CPU(s):               0-11
Vulnerability Itlb multihit:     Not affected
Vulnerability L1tf:              Not affected
Vulnerability Mds:               Not affected
Vulnerability Meltdown:          Not affected
Vulnerability Spec store bypass: Mitigation; Speculative Store Bypass disabled via prctl and seccomp
Vulnerability Spectre v1:        Mitigation; usercopy/swapgs barriers and __user pointer sanitization
Vulnerability Spectre v2:        Mitigation; Full AMD retpoline, IBPB conditional, STIBP conditional, RSB filling
Vulnerability Srbds:             Not affected
Vulnerability Tsx async abort:   Not affected
Flags:                           fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall 
                                 nx mmxext fxsr_opt pdpe1gb rdtscp lm constant_tsc rep_good nopl nonstop_tsc cpuid extd_apicid aperfmperf pni 
                                 pclmulqdq monitor ssse3 fma cx16 sse4_1 sse4_2 movbe popcnt aes xsave avx f16c rdrand lahf_lm cmp_legacy svm 
                                 extapic cr8_legacy abm sse4a misalignsse 3dnowprefetch osvw ibs skinit wdt tce topoext perfctr_core perfctr_n
                                 b bpext perfctr_llc mwaitx cpb cat_l3 cdp_l3 hw_pstate sme ssbd mba sev ibpb stibp vmmcall fsgsbase bmi1 avx2
                                  smep bmi2 cqm rdt_a rdseed adx smap clflushopt clwb sha_ni xsaveopt xsavec xgetbv1 xsaves cqm_llc cqm_occup_
                                 llc cqm_mbm_total cqm_mbm_local clzero irperf xsaveerptr rdpru wbnoinvd arat npt lbrv svm_lock nrip_save tsc_
                                 scale vmcb_clean flushbyasid decodeassists pausefilter pfthreshold avic v_vmsave_vmload vgif umip rdpid overf
                                 low_recov succor smca
➜  ~ lspci
00:00.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Starship/Matisse Root Complex
00:00.2 IOMMU: Advanced Micro Devices, Inc. [AMD] Starship/Matisse IOMMU
00:01.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Starship/Matisse PCIe Dummy Host Bridge
00:01.2 PCI bridge: Advanced Micro Devices, Inc. [AMD] Starship/Matisse GPP Bridge
00:02.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Starship/Matisse PCIe Dummy Host Bridge
00:03.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Starship/Matisse PCIe Dummy Host Bridge
00:03.1 PCI bridge: Advanced Micro Devices, Inc. [AMD] Starship/Matisse GPP Bridge
00:04.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Starship/Matisse PCIe Dummy Host Bridge
00:05.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Starship/Matisse PCIe Dummy Host Bridge
00:07.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Starship/Matisse PCIe Dummy Host Bridge
00:07.1 PCI bridge: Advanced Micro Devices, Inc. [AMD] Starship/Matisse Internal PCIe GPP Bridge 0 to bus[E:B]
00:08.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Starship/Matisse PCIe Dummy Host Bridge
00:08.1 PCI bridge: Advanced Micro Devices, Inc. [AMD] Starship/Matisse Internal PCIe GPP Bridge 0 to bus[E:B]
00:14.0 SMBus: Advanced Micro Devices, Inc. [AMD] FCH SMBus Controller (rev 61)
00:14.3 ISA bridge: Advanced Micro Devices, Inc. [AMD] FCH LPC Bridge (rev 51)
00:18.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Matisse Device 24: Function 0
00:18.1 Host bridge: Advanced Micro Devices, Inc. [AMD] Matisse Device 24: Function 1
00:18.2 Host bridge: Advanced Micro Devices, Inc. [AMD] Matisse Device 24: Function 2
00:18.3 Host bridge: Advanced Micro Devices, Inc. [AMD] Matisse Device 24: Function 3
00:18.4 Host bridge: Advanced Micro Devices, Inc. [AMD] Matisse Device 24: Function 4
00:18.5 Host bridge: Advanced Micro Devices, Inc. [AMD] Matisse Device 24: Function 5
00:18.6 Host bridge: Advanced Micro Devices, Inc. [AMD] Matisse Device 24: Function 6
00:18.7 Host bridge: Advanced Micro Devices, Inc. [AMD] Matisse Device 24: Function 7
20:00.0 PCI bridge: Advanced Micro Devices, Inc. [AMD] Matisse Switch Upstream
21:00.0 PCI bridge: Advanced Micro Devices, Inc. [AMD] Matisse PCIe GPP Bridge
21:04.0 PCI bridge: Advanced Micro Devices, Inc. [AMD] Matisse PCIe GPP Bridge
21:05.0 PCI bridge: Advanced Micro Devices, Inc. [AMD] Matisse PCIe GPP Bridge
21:08.0 PCI bridge: Advanced Micro Devices, Inc. [AMD] Matisse PCIe GPP Bridge
21:09.0 PCI bridge: Advanced Micro Devices, Inc. [AMD] Matisse PCIe GPP Bridge
21:0a.0 PCI bridge: Advanced Micro Devices, Inc. [AMD] Matisse PCIe GPP Bridge
22:00.0 Non-Volatile memory controller: Kingston Technology Company, Inc. Device 2263 (rev 03)
26:00.0 SATA controller: ASMedia Technology Inc. ASM1062 Serial ATA Controller (rev 02)
27:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 15)
2a:00.0 Non-Essential Instrumentation [1300]: Advanced Micro Devices, Inc. [AMD] Starship/Matisse Reserved SPP
2a:00.1 USB controller: Advanced Micro Devices, Inc. [AMD] Matisse USB 3.0 Host Controller
2a:00.3 USB controller: Advanced Micro Devices, Inc. [AMD] Matisse USB 3.0 Host Controller
2b:00.0 SATA controller: Advanced Micro Devices, Inc. [AMD] FCH SATA Controller [AHCI mode] (rev 51)
2c:00.0 SATA controller: Advanced Micro Devices, Inc. [AMD] FCH SATA Controller [AHCI mode] (rev 51)
2d:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Ellesmere [Radeon RX 470/480/570/570X/580/580X/590] (rev c7)
2d:00.1 Audio device: Advanced Micro Devices, Inc. [AMD/ATI] Ellesmere HDMI Audio [Radeon RX 470/480 / 570/580/590]
2e:00.0 Non-Essential Instrumentation [1300]: Advanced Micro Devices, Inc. [AMD] Starship/Matisse PCIe Dummy Function
2f:00.0 Non-Essential Instrumentation [1300]: Advanced Micro Devices, Inc. [AMD] Starship/Matisse Reserved SPP
2f:00.3 USB controller: Advanced Micro Devices, Inc. [AMD] Matisse USB 3.0 Host Controller
2f:00.4 Audio device: Advanced Micro Devices, Inc. [AMD] Starship/Matisse HD Audio Controller

Comment 1 Robin Jacobs 2020-09-15 20:36:29 UTC
I have attempted removing `~/.config/pulse`, but this had no effect on the issue.

Comment 2 Hans de Goede 2020-09-16 06:22:19 UTC
Thank you for the bug reports, I see in yout journalctl output that you have a MSI X570-A PRO motherboard and in the git log of the 5.8.8 release I've found this commit:

https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=linux-5.8.y&id=8e83bd51016a35492c58e28312420e60ba8873f1

Which is almost certainly the cause of this. I will email the upstream maintainers about this. You will likely be asked for more info by one of them.

Comment 3 Thomas 2020-09-27 04:12:11 UTC
Reverted in 5.8.11

Comment 4 Robin Jacobs 2020-09-28 13:55:38 UTC
Can confirm, issue is gone in 5.8.11.

Out of curiosity, what were you trying to fix in the first place? I haven't really noticed any audio issues aside from this.

Comment 5 Fedora Program Management 2021-04-29 17:06:22 UTC
This message is a reminder that Fedora 32 is nearing its end of life.
Fedora will stop maintaining and issuing updates for Fedora 32 on 2021-05-25.
It is Fedora's policy to close all bug reports from releases that are no longer
maintained. At that time this bug will be closed as EOL if it remains open with a
Fedora 'version' of '32'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version.

Thank you for reporting this issue and we are sorry that we were not 
able to fix it before Fedora 32 is end of life. If you would still like 
to see this bug fixed and are able to reproduce it against a later version 
of Fedora, you are encouraged  change the 'version' to a later Fedora 
version prior this bug is closed as described in the policy above.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events. Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

Comment 6 Robin Jacobs 2021-04-29 17:26:21 UTC
this bug was actually fixed, and rather quickly

Comment 7 Ben Cotton 2021-05-25 17:48:35 UTC
Fedora 32 changed to end-of-life (EOL) status on 2021-05-25. Fedora 32 is
no longer maintained, which means that it will not receive any further
security or bug fix updates. As a result we are closing this bug.

If you can reproduce this bug against a currently maintained version of
Fedora please feel free to reopen this bug against that version. If you
are unable to reopen this bug, please file a new report against the
current release. If you experience problems, please add a comment to this
bug.

Thank you for reporting this bug and we are sorry it could not be fixed.


Note You need to log in before you can comment on or make changes to this bug.