<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 --- - analog-output-speaker not working anymore when headphone is plugged"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=70865">70865</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>analog-output-speaker not working anymore when headphone is plugged
          </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>quickhelp@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>core
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>PulseAudio
          </td>
        </tr></table>
      <p>
        <div>
        <pre>HP desktop pc with audio line-out / headphone jack in front and rear AND a
built-in mono speaker.

Hardware: 00:1b.0 Audio device: Intel Corporation 82801I (ICH9 Family) HD Audio
Controller (rev 02)

Debian wheezy stable system with pulseaudio 2.0-6.1

With alsa there is a ""Simple mixer control 'Independent HP'" if set to
  * "Enable", sound is /only/ audible through the built-in speaker
  * "Disable", sound is /only/ audible through the connected headphone/line-out

With pulseaudio (thanks a lot to poljar #pulseaudio IRC !):
 (1.) If I unplug any line-out audio cable aka headphone cables, then
      * pactl set-sink-port 0 analog-output-headphones
        Makes sound only be audible through the built-in internal mono speaker
      * pactl set-sink-port 0 analog-output-speaker
        Makes no sound audible (which seems to be exactly how it should be :)

 (2.) If I plug an headphone cable either rear or front, then:
      * pactl set-sink-port 0 analog-output-headphones
        Makes sound /only/ be audible through the plugged headphone/line-out
BUT:
      * pactl set-sink-port 0 analog-output-speaker
        Makes sound /only/ be audible through the plugged headphone/line-out
TOO

<poljar> statement: that sounds wrong, analog-output-speaker should either
tagged as not available if the hardware prevents it to output to the speaker
while something is connected or it should work, so feel free to report a bug

I created for both cases (1.) and (2.) the pulseaudio-output and the
client-output. I hope you find them useful. Please let me know if you need
anything else.

The system is a headless server system.
pulseaudio is running as user pulse

To get the pulseaudio-output it ran like this (debian default with changed
--log-target and added -vvvvvv):

/usr/bin/pulseaudio -vvvvvv --system --disallow-exit --daemonize
--log-target=file:/tmp/pulseaudio.log --high-priority
--disallow-module-loading=1

So unter pulse I did not find any way yet to use the built-in speaker for
sound-output when I have a headphone/line-out plugged.
Even though under alsa I am able to toggle the output to come through the
built-in speaker and with or without a headphone/line-out plugged!

This is bugging me, because I have my stereo plugged all the time to the
system, but it ONLY gets turned on, when I need it. So important system
notifications should be played through speaker.

Please help :)

Thanks a lot in advance !

Tormen.</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>