<html>
    <head>
      <base href="https://bugs.freedesktop.org/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Priority</th>
          <td>medium
          </td>
        </tr>

        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW --- - Unplugging headphone does not correctly fallback to external speakers"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=84334">84334</a>
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>lennart@poettering.net
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>pulseaudio-bugs@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Unplugging headphone does not correctly fallback to external speakers
          </td>
        </tr>

        <tr>
          <th>QA Contact</th>
          <td>pulseaudio-bugs@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Linux (All)
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>zibeon@gmail.com
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>x86-64 (AMD64)
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>unspecified
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>alsa
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>PulseAudio
          </td>
        </tr></table>
      <p>
        <div>
        <pre>== System Information

* Lenovo Thinkpad X220 without Dock
* Linux 3.16.3
* PulseAudio 5.0.r273.g1ff4f1b
* Audio device: Intel Corporation 6 Series/C200 Series Chipset Family High
Definition Audio Controller (rev 04)

== Description

When the headphones are plugged in the "Output Devices" tab in pavucontrol will
list "Headphones (unplugged)", "Analog Output" and "Speakers (unavailable)"
with "Analog Output" being selected.

If I unplug the headphones I would expect it to fallback to the Speakers,
however
it doesn't (no sound) and returns the following error:

    Availability of port 'analog-output-headphones' is inconsistent!

If I manually set the sink-port to the Speakers it will work however
pavucontrol
will continue to mark the as "unavailable".

When plugging the headphones back in pavucontrol switches to "Analog Output"
and
I can hear sound through the headphones again.

== Resolution Attempts

Looking at the git logs I came across this commit:

    alsa-mixer: recognize Dock headphone jack
    <a href="http://cgit.freedesktop.org/pulseaudio/pulseaudio/commit/?id=594da41d07edce">http://cgit.freedesktop.org/pulseaudio/pulseaudio/commit/?id=594da41d07edce</a>

Reverting this fixes the issue on my machine and restores normal functionality.</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the QA Contact for the bug.</li>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>