Public bug reported:

Software details:
Distro: Kubuntu 20.04 Beta
Kernel: 5.4.0-21-generic
alsa-base version 1.0.25+dfsg-0ubuntu5
alsa-utils version 1.2.2-1ubuntu1
pulseaudio version 1:13.99.1-1ubuntu1

Hardware details:
Motherboard: Gigabyte GA-AB350M-D3H
Audio Codec: Realtek ALC887
GPU: Nvidia RTX 2060 Super (with the audio output disabled in PulseAudio)

Regarding the issue:
Every time I start an audio stream (regardless of the application), I can hear 
interruptions in the sound and when opening alsamixer I can also see the 
interface kind of flickering for a few milliseconds.
After running pulseaudio with logging enabled for a few seconds (while playing 
music), this pattern can be seen:

[pulseaudio] sink.c: alsa_output.pci-0000_0a_00.3.analog-stereo: state: IDLE -> 
RUNNING
D: [pulseaudio] module-alsa-card.c: Jack 'Front Headphone Jack' is now plugged 
in
D: [pulseaudio] device-port.c: Setting port analog-output-headphones to status 
yes
D: [pulseaudio] module-alsa-card.c: Jack 'Front Headphone Jack' is now unplugged
D: [pulseaudio] device-port.c: Setting port analog-output-headphones to status 
no
D: [pulseaudio] module-alsa-card.c: Jack 'Front Headphone Jack' is now plugged 
in
D: [pulseaudio] device-port.c: Setting port analog-output-headphones to status 
yes
D: [pulseaudio] module-alsa-card.c: Jack 'Front Headphone Jack' is now unplugged
D: [pulseaudio] device-port.c: Setting port analog-output-headphones to status 
no
D: [pulseaudio] module-alsa-card.c: Jack 'Front Headphone Jack' is now plugged 
in
D: [pulseaudio] device-port.c: Setting port analog-output-headphones to status 
yes
D: [pulseaudio] module-alsa-card.c: Jack 'Front Headphone Jack' is now unplugged
D: [pulseaudio] device-port.c: Setting port analog-output-headphones to status 
no
D: [pulseaudio] module-alsa-card.c: Jack 'Front Headphone Jack' is now plugged 
in
D: [pulseaudio] device-port.c: Setting port analog-output-headphones to status 
yes
D: [pulseaudio] module-alsa-card.c: Jack 'Front Headphone Jack' is now unplugged
D: [pulseaudio] device-port.c: Setting port analog-output-headphones to status 
no
D: [pulseaudio] module-alsa-card.c: Jack 'Front Headphone Jack' is now plugged 
in
D: [pulseaudio] device-port.c: Setting port analog-output-headphones to status 
yes
D: [pulseaudio] module-alsa-card.c: Jack 'Front Headphone Jack' is now unplugged
D: [pulseaudio] device-port.c: Setting port analog-output-headphones to status 
no
D: [pulseaudio] module-alsa-card.c: Jack 'Front Headphone Jack' is now plugged 
in
D: [pulseaudio] device-port.c: Setting port analog-output-headphones to status 
yes
D: [pulseaudio] module-alsa-card.c: Jack 'Front Headphone Jack' is now unplugged
D: [pulseaudio] device-port.c: Setting port analog-output-headphones to status 
no
D: [pulseaudio] module-alsa-card.c: Jack 'Front Headphone Jack' is now plugged 
in
D: [pulseaudio] device-port.c: Setting port analog-output-headphones to status 
yes
D: [pulseaudio] module-alsa-card.c: Jack 'Front Headphone Jack' is now unplugged
D: [pulseaudio] device-port.c: Setting port analog-output-headphones to status 
no
D: [pulseaudio] module-alsa-card.c: Jack 'Front Headphone Jack' is now plugged 
in
D: [pulseaudio] device-port.c: Setting port analog-output-headphones to status 
yes
D: [pulseaudio] module-alsa-card.c: Jack 'Front Headphone Jack' is now unplugged
D: [pulseaudio] device-port.c: Setting port analog-output-headphones to status 
no
D: [pulseaudio] module-alsa-card.c: Jack 'Front Headphone Jack' is now plugged 
in
D: [pulseaudio] device-port.c: Setting port analog-output-headphones to status 
yes
D: [pulseaudio] module-alsa-card.c: Jack 'Front Headphone Jack' is now unplugged
D: [pulseaudio] device-port.c: Setting port analog-output-headphones to status 
no
D: [pulseaudio] module-alsa-card.c: Jack 'Front Headphone Jack' is now plugged 
in
D: [pulseaudio] device-port.c: Setting port analog-output-headphones to status 
yes
D: [pulseaudio] module-alsa-card.c: Jack 'Front Headphone Jack' is now unplugged
D: [pulseaudio] device-port.c: Setting port analog-output-headphones to status 
no
D: [pulseaudio] module-alsa-card.c: Jack 'Front Headphone Jack' is now plugged 
in
D: [pulseaudio] device-port.c: Setting port analog-output-headphones to status 
yes

Note: I've no headphones attached ! Only the line out is connected to a
2.1 Speaker

It seems basically the same bug as this: 
https://bbs.archlinux.org/viewtopic.php?id=147225
but in my case disabling "module-switch-on-port-available" doesn't remove the 
audio "artifacts"

** Affects: alsa-lib (Ubuntu)
     Importance: Undecided
         Status: New

** Attachment added: "Verbose Logs"
   
https://bugs.launchpad.net/bugs/1871414/+attachment/5348776/+files/pulseverbose.log

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to alsa-lib in Ubuntu.
https://bugs.launchpad.net/bugs/1871414

Title:
  Pulseaudio incorrectly detects a headphone being plugged in

Status in alsa-lib package in Ubuntu:
  New

Bug description:
  Software details:
  Distro: Kubuntu 20.04 Beta
  Kernel: 5.4.0-21-generic
  alsa-base version 1.0.25+dfsg-0ubuntu5
  alsa-utils version 1.2.2-1ubuntu1
  pulseaudio version 1:13.99.1-1ubuntu1

  Hardware details:
  Motherboard: Gigabyte GA-AB350M-D3H
  Audio Codec: Realtek ALC887
  GPU: Nvidia RTX 2060 Super (with the audio output disabled in PulseAudio)

  Regarding the issue:
  Every time I start an audio stream (regardless of the application), I can 
hear interruptions in the sound and when opening alsamixer I can also see the 
interface kind of flickering for a few milliseconds.
  After running pulseaudio with logging enabled for a few seconds (while 
playing music), this pattern can be seen:

  [pulseaudio] sink.c: alsa_output.pci-0000_0a_00.3.analog-stereo: state: IDLE 
-> RUNNING
  D: [pulseaudio] module-alsa-card.c: Jack 'Front Headphone Jack' is now 
plugged in
  D: [pulseaudio] device-port.c: Setting port analog-output-headphones to 
status yes
  D: [pulseaudio] module-alsa-card.c: Jack 'Front Headphone Jack' is now 
unplugged
  D: [pulseaudio] device-port.c: Setting port analog-output-headphones to 
status no
  D: [pulseaudio] module-alsa-card.c: Jack 'Front Headphone Jack' is now 
plugged in
  D: [pulseaudio] device-port.c: Setting port analog-output-headphones to 
status yes
  D: [pulseaudio] module-alsa-card.c: Jack 'Front Headphone Jack' is now 
unplugged
  D: [pulseaudio] device-port.c: Setting port analog-output-headphones to 
status no
  D: [pulseaudio] module-alsa-card.c: Jack 'Front Headphone Jack' is now 
plugged in
  D: [pulseaudio] device-port.c: Setting port analog-output-headphones to 
status yes
  D: [pulseaudio] module-alsa-card.c: Jack 'Front Headphone Jack' is now 
unplugged
  D: [pulseaudio] device-port.c: Setting port analog-output-headphones to 
status no
  D: [pulseaudio] module-alsa-card.c: Jack 'Front Headphone Jack' is now 
plugged in
  D: [pulseaudio] device-port.c: Setting port analog-output-headphones to 
status yes
  D: [pulseaudio] module-alsa-card.c: Jack 'Front Headphone Jack' is now 
unplugged
  D: [pulseaudio] device-port.c: Setting port analog-output-headphones to 
status no
  D: [pulseaudio] module-alsa-card.c: Jack 'Front Headphone Jack' is now 
plugged in
  D: [pulseaudio] device-port.c: Setting port analog-output-headphones to 
status yes
  D: [pulseaudio] module-alsa-card.c: Jack 'Front Headphone Jack' is now 
unplugged
  D: [pulseaudio] device-port.c: Setting port analog-output-headphones to 
status no
  D: [pulseaudio] module-alsa-card.c: Jack 'Front Headphone Jack' is now 
plugged in
  D: [pulseaudio] device-port.c: Setting port analog-output-headphones to 
status yes
  D: [pulseaudio] module-alsa-card.c: Jack 'Front Headphone Jack' is now 
unplugged
  D: [pulseaudio] device-port.c: Setting port analog-output-headphones to 
status no
  D: [pulseaudio] module-alsa-card.c: Jack 'Front Headphone Jack' is now 
plugged in
  D: [pulseaudio] device-port.c: Setting port analog-output-headphones to 
status yes
  D: [pulseaudio] module-alsa-card.c: Jack 'Front Headphone Jack' is now 
unplugged
  D: [pulseaudio] device-port.c: Setting port analog-output-headphones to 
status no
  D: [pulseaudio] module-alsa-card.c: Jack 'Front Headphone Jack' is now 
plugged in
  D: [pulseaudio] device-port.c: Setting port analog-output-headphones to 
status yes
  D: [pulseaudio] module-alsa-card.c: Jack 'Front Headphone Jack' is now 
unplugged
  D: [pulseaudio] device-port.c: Setting port analog-output-headphones to 
status no
  D: [pulseaudio] module-alsa-card.c: Jack 'Front Headphone Jack' is now 
plugged in
  D: [pulseaudio] device-port.c: Setting port analog-output-headphones to 
status yes
  D: [pulseaudio] module-alsa-card.c: Jack 'Front Headphone Jack' is now 
unplugged
  D: [pulseaudio] device-port.c: Setting port analog-output-headphones to 
status no
  D: [pulseaudio] module-alsa-card.c: Jack 'Front Headphone Jack' is now 
plugged in
  D: [pulseaudio] device-port.c: Setting port analog-output-headphones to 
status yes
  D: [pulseaudio] module-alsa-card.c: Jack 'Front Headphone Jack' is now 
unplugged
  D: [pulseaudio] device-port.c: Setting port analog-output-headphones to 
status no
  D: [pulseaudio] module-alsa-card.c: Jack 'Front Headphone Jack' is now 
plugged in
  D: [pulseaudio] device-port.c: Setting port analog-output-headphones to 
status yes

  Note: I've no headphones attached ! Only the line out is connected to
  a 2.1 Speaker

  It seems basically the same bug as this: 
https://bbs.archlinux.org/viewtopic.php?id=147225
  but in my case disabling "module-switch-on-port-available" doesn't remove the 
audio "artifacts"

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/alsa-lib/+bug/1871414/+subscriptions

-- 
Mailing list: https://launchpad.net/~kernel-packages
Post to     : kernel-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kernel-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to