[pulseaudio-discuss] [V4 PATCH] module-switch-on-connect: add an argument for conditionally connecting

Raymond Yau superquad.vortex2 at gmail.com
Sat Sep 27 20:20:46 PDT 2014


>> >>
>> >> >
>> >> > On a machine without fixed connecting audio devices like internal
>> >> > microphone or internal speaker, and when there is no external audio
>> >> > devices plugging in, the default source/sink is
alsa_input/alsa_output
>> >> > and there is no input devices/output devices listed in the gnome
>> >> > sound-setting.
>>
>> https://launchpadlibrarian.net/184055917/PulseList.txt
>>
>> Seem line in is active port when all ports are not available
>> Pulseaudio won't switch away from line in but gnome won't show line in
since it is not plugged
>>
>> ports:
>> analog-input-microphone-front: Front Microphone (priority 8500, latency
offset 0 usec, available: no)
>> properties:
>> device.icon_name = "audio-input-microphone"
>> analog-input-microphone-rear: Rear Microphone (priority 8200, latency
offset 0 usec, available: no)
>> properties:
>> device.icon_name = "audio-input-microphone"
>> analog-input-linein: Line In (priority 8100, latency offset 0 usec,
available: no)
>> properties:
>>
>> active port: <analog-input-linein>
>
> Yes, in this situation, the default-source->active_port->available=no, if
you use this module and pass "only_from_unavailable=yes", when connect
bluetooth headset, the default source will automatically switch to
bluez-source.
>
> In this situation, if you plug something in the line-in jack, the
default-source->active_port-available=yes, and if you pass
"only_from_unavailable=yes", the default source will not switch.
>>
>> https://launchpadlibrarian.net/184417469/alsa2.txt
>>
>>

https://bugs.freedesktop.org/show_bug.cgi?id=84334

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

Even pulseaudio may neglect the Jack state of line out and line in

Select unplugged line out and line in as active port when headphone or Mic
Jack is unplugged

But active port cannot be an unavailable headphone
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/pulseaudio-discuss/attachments/20140928/a2b7e39d/attachment.html>


More information about the pulseaudio-discuss mailing list