There is no entry in 'Play sound through' list when plug in headset jack [8086:9d70].

Bug #1643812 reported by Bin Li
14
This bug affects 1 person
Affects Status Importance Assigned to Milestone
HWE Next
Undecided
Unassigned
pulseaudio (Ubuntu)
Undecided
Unassigned
Trusty
Undecided
Unassigned

Bug Description

[Impact]

 * When plug in headset jack, you can't view any item in unity-control-center, so you can't change the volume.

 * For the situation of one pulseaudio port has 2 or more jacks, it will bring some change, in the past, if one of the jacks is plugged and other jacks are not plugged, the pulseaudio will print out "Availability of port '%s' is inconsistent!" and will not set this pulseaudio port to available, this is a bug for pulseaudio.

 * After applying this patch, this issue can be addressed by this patch.

[Test Case]

 * Reproduce steps:
1. Install 14.04.5 image on P50s
2. Login system
3. $ sudo apt-get update
4. $ apt-get dist-upgrade
sudo apt-get install --install-recommends linux-generic-lts-xenial xserver-xorg-core-lts-xenial xserver-xorg-lts-xenial xserver-xorg-video-all-lts-xenial xserver-xorg-input-all-lts-xenial libwayland-egl1-mesa-lts-xenial
5. Reboot the system
6. Login system
7. Open Sound setting window
8. Plug headset jack, unplug headset jack.

[Regression Potential]

 * For most of the situations like one pulseaudio port only has one jack, this patch will not bring any change. So there is no potential regression.

[Other Info]

 * The kernel is 4.4.0-47, and the pulseaudio is 1:4.0-0ubuntu1.1

Revision history for this message
Bin Li (binli) wrote :

I built the pulseaudio with the patch in below, it works fine after test.

commit d5fec4ca7af9241d0c2ae17df40d0fb1c18c74a0
Author: Sjoerd Simons <email address hidden>
Date: Sun Nov 16 23:15:50 2014 +0100

    Alsa: Correct port availability with multiple jacks

    In case there are two independent jacks for one port (e.g. Dock
    Headphone Jack and Headphone Jack), the availability ends up being
    incorrect if the first one was _NO (not plugged) and the second gets
    _YES (plugged). Also pulse complains about the state being inconsistent
    which isn't true.

    Fix this by preferring more precise states (yes/no) over unknown and yes
    over others. However in case a plugged jack makes the port unavailable
    let that overrule everything else.

Revision history for this message
Bin Li (binli) wrote :

Here is the patch.

Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

The attachment "multiple_jacks.patch" seems to be a patch. If it isn't, please remove the "patch" flag from the attachment, remove the "patch" tag, and if you are a member of the ~ubuntu-reviewers, unsubscribe the team.

[This is an automated message performed by a Launchpad user owned by ~brian-murray, for any issues please contact him.]

tags: added: patch
Revision history for this message
Hui Wang (hui.wang) wrote :
Revision history for this message
Luke Yelavich (themuso) wrote : Re: [Bug 1643812] Re: There is no entry in 'Play sound through' list when plug in headset jack [8086:9d70].

Hui, could you please add relevant information about the regression potential of this bug fix, and anything else you feel is important for the SRU? I'm ok with it and will upload, but think a little more information is needed.

Revision history for this message
Hui Wang (hui.wang) wrote :

For most of the situations like one pulseaudio port only has one jack, this patch will not bring any change. So there is no potential regression.

For the situation of one pulseaudio port has 2 or more jacks, it will bring some change, in the past, if one of the jacks is plugged and other jacks are not plugged, the pulseaudio will print out "Availability of port '%s' is inconsistent!" and will not set this pulseaudio port to available, this is a bug for pulseaudio. After applying this patch, this issue can be addressed by this patch. I also think it will not bring any regression.

Changed in pulseaudio (Ubuntu Trusty):
assignee: nobody → Hui Wang (hui.wang)
tags: added: kittyhawk originate-from-1613190
Revision history for this message
Bin Li (binli) wrote :

@themuso

 I checked the trusty-propsed channel, there are still not new pulseaduio, what's the status of this issue? Thanks a lot!

Jamie Chang (jamie315)
no longer affects: pulseaudio
Revision history for this message
Luke Yelavich (themuso) wrote :

The upload was rejected due to lack of SRU information. Could you please add that according to
https://wiki.ubuntu.com/StableReleaseUpdates#Procedure

Thanks.

Revision history for this message
Bin Li (binli) wrote :

@themuso,

 Done, I'd updated the description with the template of SRU. Thanks a lot!

description: updated
Changed in pulseaudio (Ubuntu Trusty):
status: New → In Progress
tags: added: trusty
Hui Wang (hui.wang)
Changed in pulseaudio (Ubuntu Trusty):
assignee: Hui Wang (hui.wang) → nobody
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers