<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<br>
<div class="moz-cite-prefix">On 2014年09月25日 17:40, Raymond Yau
wrote:<br>
</div>
<blockquote
cite="mid:CAN8cciaxB0CRV992Zk1SJ7aB5grk=_NV4goZYtxQ_Bn+y7gJeQ@mail.gmail.com"
type="cite">
<p><br>
><br>
> On a machine without fixed connecting audio devices like
internal<br>
> microphone or internal speaker, and when there is no
external audio<br>
> devices plugging in, the default source/sink is
alsa_input/alsa_output<br>
> and there is no input devices/output devices listed in the
gnome<br>
> sound-setting.<br>
<br>
</p>
<p><a moz-do-not-send="true"
href="https://git.kernel.org/cgit/linux/kernel/git/tiwai/sound.git/commit/sound/pci/hda?id=f1e762ddc8035f803d15f8c524151bf788482ec2">https://git.kernel.org/cgit/linux/kernel/git/tiwai/sound.git/commit/sound/pci/hda?id=f1e762ddc8035f803d15f8c524151bf788482ec2</a></p>
<p>On some hda codecs, the user may select stereo mix as input
source<br>
</p>
<p>Also if user have a tv card connected to line in , your patch
require user to unplug the cable when he use Bluetooth headset<br>
</p>
</blockquote>
<br>
I don't think so, if the user use the line in device and select the
line in device as the default source, when the Bluetooth connected
and set "only_from_unavailable=yes", the default source will not
switch to Bluetooth, if user want to use Bluebooth as the active
input, he needs to manually select Bluetooth headset from
sound-setting, user does not need to unplug the cable.<br>
<br>
If users want to unconditionally switch to bluetooth as before this
module does, he just pass "only_from_unavailable=no" or does not
pass this argument.<br>
<blockquote
cite="mid:CAN8cciaxB0CRV992Zk1SJ7aB5grk=_NV4goZYtxQ_Bn+y7gJeQ@mail.gmail.com"
type="cite">
<p><br>
</p>
<p>><br>
> Under this situation, if we connect a bluetooth headset,
the gnome<br>
> sound-setting will list bluez input/output devices, but
they are not<br>
> active devices by default. This looks very weird that
sound-setting<br>
> lists only one input device and one output device, but they
are not<br>
> active. To change this situation, we add an argument, the
policy is<br>
> if a new source/sink is connected and current default
source/sink's<br>
> active_port is AVAILABLE_NO, we let the new added one
switch to<br>
> default one.<br>
></p>
<p>What is the default source when user disconnect his Bluetooth
headset ?</p>
</blockquote>
The pulseaudio will use algorithm to find a highest priority input
source and set it to default source.<br>
<br>
My patch just add a option to let pulseaudio to conditionally switch
to sink/source, if users want the unconditionally switch as before,
he can do it by setting the argument to no.<br>
<br>
<br>
<blockquote
cite="mid:CAN8cciaxB0CRV992Zk1SJ7aB5grk=_NV4goZYtxQ_Bn+y7gJeQ@mail.gmail.com"
type="cite">
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
pulseaudio-discuss mailing list
<a class="moz-txt-link-abbreviated" href="mailto:pulseaudio-discuss@lists.freedesktop.org">pulseaudio-discuss@lists.freedesktop.org</a>
<a class="moz-txt-link-freetext" href="http://lists.freedesktop.org/mailman/listinfo/pulseaudio-discuss">http://lists.freedesktop.org/mailman/listinfo/pulseaudio-discuss</a>
</pre>
</blockquote>
<br>
</body>
</html>