<html>
    <head>
      <base href="https://bugs.freedesktop.org/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Headphone detection problems after power cycling"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=90608">90608</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Headphone detection problems after power cycling
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>PulseAudio
          </td>
        </tr>

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

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

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

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

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

        <tr>
          <th>Priority</th>
          <td>medium
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>core
          </td>
        </tr>

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

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

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

        <tr>
          <th>CC</th>
          <td>lennart@poettering.net
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Configuration summary: I have stereo speakers connected to the rear panel, and
headphones connected to the front panel. Audio chipset is VIA VT2020 on a
Gigabyte GA-970A-D3 motherboard.

Expected behaviour: Sound should play out of the headphones. Unplugging the
headphones should result in fallback to main speakers.

Actual behaviour: If the system is booted up with only the speakers connected
to the rear panel, and the headphones are later connected to the front panel,
it works as expected. However:

1) After suspending/resuming (or shutting down and starting back up) the PC
while both speakers/headphones are already plugged in, the headphones are no
longer detected, and I am required to unplug the headphones and plug them back
in to be detected again (or, although my headphones don't appear in the gnome
sound settings, I can still go into alsamixer and manually mute the speakers
and unmute the headphones to get them working again). Rebooting doesn't cause
any problems, so the issue seems to be triggered by power cycling.

2) If only the headphones are plugged in to the front panel, everything works
fine. Subsequently, if I plug speakers into the back panel, both the headphones
and speakers become muted. To get sound out of the headphones again, I need to
unplug them and plug them back in.

I originally reported this bug on Ubuntu launchpad:
<a href="https://bugs.launchpad.net/ubuntu/+source/alsa-driver/+bug/1442428">https://bugs.launchpad.net/ubuntu/+source/alsa-driver/+bug/1442428</a>

I was originally using the Ubuntu package, but I have now built/installed
pulseaudio from git, and the same problem persists. This problem was not
present with pulseaudio 5.0, so I tried to do a git bisect, but ran into
different problems with builds in between so I wasn't able to pinpoint the
exact commit which broke it.

Another peculiarity I noticed (may or may not be related) is that alsamixer
seems to think that I have a surround sound setup, when I only have a standard
set of stereo speakers plugged in:
<a href="https://www.dropbox.com/s/r2ahv3yvvpkzzn3/alsamixer.png?dl=0">https://www.dropbox.com/s/r2ahv3yvvpkzzn3/alsamixer.png?dl=0</a></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>