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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 2014?09?25? 17:40, Raymond Yau wrote:
>
>
> >
> > 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://git.kernel.org/cgit/linux/kernel/git/tiwai/sound.git/commit/sound/pci/hda?id=f1e762ddc8035f803d15f8c524151bf788482ec2
>
> On some hda codecs, the user may select stereo mix as input source
>
> Also if user have a tv card connected to line in , your patch require 
> user to unplug the cable when he use Bluetooth headset
>

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.

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.
>
>
> >
> > Under this situation, if we connect a bluetooth headset, the gnome
> > sound-setting will list bluez input/output devices, but they are not
> > active devices by default. This looks very weird that sound-setting
> > lists only one input device and one output device, but they are not
> > active. To change this situation, we add an argument, the policy is
> > if a new source/sink is connected and current default source/sink's
> > active_port is AVAILABLE_NO, we let the new added one switch to
> > default one.
> >
>
> What is the default source when user disconnect his Bluetooth headset ?
>
The pulseaudio will use algorithm to find a highest priority input 
source and set it to default source.

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.


>
>
> _______________________________________________
> pulseaudio-discuss mailing list
> pulseaudio-discuss at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/pulseaudio-discuss

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/pulseaudio-discuss/attachments/20140925/dc4ba69a/attachment.html>


[Index of Archives]     [Linux Audio Users]     [AMD Graphics]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux