<html>
    <head>
      <base href="https://bugs.freedesktop.org/" />
    </head>
    <body>
      <p>
        <div>
            <b><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#c12">Comment # 12</a>
              on <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">bug 84334</a>
              from <span class="vcard"><a class="email" href="mailto:superquad.vortex2@gmail.com" title="Raymond <superquad.vortex2@gmail.com>"> <span class="fn">Raymond</span></a>
</span></b>
        <pre>
<a href="https://git.kernel.org/cgit/linux/kernel/git/tiwai/sound.git/commit/sound/pci/hda?id=a555bb8c6bf6932c5706745bfdbad22df26324d9">https://git.kernel.org/cgit/linux/kernel/git/tiwai/sound.git/commit/sound/pci/hda?id=a555bb8c6bf6932c5706745bfdbad22df26324d9</a>



Sysfs Files
!!-----------

/sys/class/sound/hwC0D0/init_pin_configs:
0x19 0x04211040
0x1a 0x61a19050
0x1b 0x04a11060
0x1c 0x6121401f
0x1d 0x40f001f0
0x1e 0x40f001f0
0x1f 0x90170110
0x20 0x40f001f0
0x22 0x40f001f0
0x23 0x90a60170

/sys/class/sound/hwC0D0/driver_pin_configs:
0x19 0x042110ff
0x1a 0x21a190f0
0x1c 0x212140ff


it is unlikely for the driver to support four channels when notebook without
dock station since driver won't set different channel tag to speaker and
headphone

the driver also cannot support four channels when headphone and dock headphone
share same dac 






    output:analog-surround-40: Analog Surround 4.0 Output (sinks: 1, sources:
0, priority: 700, available: yes)
        output:analog-surround-40+input:analog-stereo: Analog Surround 4.0
Output + Analog Stereo Input (sinks: 1, sources: 1, priority: 760, available:
yes)




seem bug of pulseaudio since active port cannot be not available

module-switch-on-available-port ensure active port is available or unknown

but cannot be not available


Ports:
        analog-output: Analog Output (priority: 9900)
        analog-output-speaker: Speakers (priority: 10000)
        analog-output-headphones: Headphones (priority: 9000, not available)
    Active Port: analog-output-headphones</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>