<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 - Headset jack partially not recognized as connected at boot"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=103482">103482</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Headset jack partially not recognized as connected at boot
          </td>
        </tr>

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

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

        <tr>
          <th>Hardware</th>
          <td>Other
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>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>alsa
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>carlo@caione.org
          </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>Codec is RT5651. The driver codec is exporting two jack controls:

numid=173,iface=CARD,name='Headphone Jack'                                      
  ; type=BOOLEAN,access=r-------,values=1                                       
  : values=off                                                                  
numid=174,iface=CARD,name='Headset Mic Jack'                                    
  ; type=BOOLEAN,access=r-------,values=1                                       
  : values=off                

The driver correctly recognizes when the jack is connected / disconnected and
in general it works fine (audio output and input are switched to the headset
when the jack is connected).

The problem arises when we boot the machine with the headset jack already
connected. In this case pulseaudio keeps setting the audio output to the
speakers and the audio input to the headset mic. When the jack is then
disconnected and connected again, everything works fine.

Please note that the kernel is exporting to the userspace the correct status
for the headset jack, so I guess the problem is somewhere in the pulseaudio
behavior.

In attachment the logs of when pulseaudio is started with and without headset
jack connected.</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>