<html>
    <head>
      <base href="https://bugs.freedesktop.org/" />
    </head>
    <body><span class="vcard"><a class="email" href="mailto:tanuk@iki.fi" title="Tanu Kaskinen <tanuk@iki.fi>"> <span class="fn">Tanu Kaskinen</span></a>
</span> changed
              <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW --- - Ports(Jack Detection) state error"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=51354">bug 51354</a>
        <br>
             <table border="1" cellspacing="0" cellpadding="8">
          <tr>
            <th>What</th>
            <th>Removed</th>
            <th>Added</th>
          </tr>

         <tr>
           <td style="text-align:right;">CC</td>
           <td>
                
           </td>
           <td>david.henningsson@canonical.com
           </td>
         </tr></table>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW --- - Ports(Jack Detection) state error"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=51354#c3">Comment # 3</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW --- - Ports(Jack Detection) state error"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=51354">bug 51354</a>
              from <span class="vcard"><a class="email" href="mailto:tanuk@iki.fi" title="Tanu Kaskinen <tanuk@iki.fi>"> <span class="fn">Tanu Kaskinen</span></a>
</span></b>
        <pre>It would be nice to have the full log of pulseaudio -vvv. The log that is
attached doesn't start from the beginning, and doesn't contain the part where
the jack is probed.

Anyway, I think the most likely reason is that pa_alsa_find_jack() returns NULL
in jack_probe(). This is the code:

snd_hctl_elem_t* pa_alsa_find_jack(snd_hctl_t *hctl, const char* jack_name)
{           
    snd_ctl_elem_id_t *id;

    snd_ctl_elem_id_alloca(&id);
    snd_ctl_elem_id_clear(id);
    snd_ctl_elem_id_set_interface(id, SND_CTL_ELEM_IFACE_CARD);
    snd_ctl_elem_id_set_name(id, jack_name);

    return snd_hctl_find_elem(hctl, id);
}

So, if this function returns NULL, either the function is incorrect, or the bug
is in alsa.

I've added David to CC (I don't know if you already get all bug traffic anyway
- if you do, tell me so and I won't do this again).</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>