[pulseaudio-discuss] Headset-detection

Himanshu Chug himanshu.chug at gmail.com
Thu Jul 14 03:36:51 PDT 2011


Hi Colin

Thanks for information.

we were using an old kernel which doesnt have proper udev support (something
like that I come to know from our kernel team.. :( ), then I migrated to
latest kernel and now module-udev-detect is built getting loaded along with
other modules :-)

Next..

I am trying to plug-in/out accessory headset , I guess it should reflect in
pacmd list-sinks or pacmd list-sources? but I am not sure, how to view the
updated list of sinks/sources after plugin/out ?

also , you mention one comment on my default.pa that ..
"load-module module-alsa-sink device=hw:0,0"
"OK, so here you've modified the default.pa file for your system. You
shouldn't have to do this. It implies a static configuration that
obviously won't work with hotplug by itself...."

is this affecting ???

Best Regards
Himanshu



On Wed, Jul 6, 2011 at 9:02 PM, Colin Guthrie <gmane at colin.guthr.ie> wrote:

> [Friendly request: Please try and post plain text emails here and try
> not to top-post. See other mails to other users today for a longer
> explanation :D. Thanks]
>
> 'Twas brillig, and Himanshu Chug at 06/07/11 15:53 did gyre and gimble:
> > Colin, Thanks for quick reply
>
> No worries :)
>
>
> > Here is my default.pa <http://default.pa> (below)
> > I am using standard per-user setup, module-udev-detect is not getting
> > loaded by default (also not when I inserted headset)
> > any help may be useful.
>
> Module-udev-detect should always be present. It's just one module and it
> should be loaded at PA startup and should just sit their waiting for
> information to come in from udev. It should not be reloaded when you
> plug something in.
>
> Youy say it is not getting loaded? Does it exist on your install? Did
> you manage to build PA yourself but without udev support? If so, please
> see the very big warnings that result when you try to configure PA like
> that!
>
> It very clearly warns you when you do not build with udev support!
>
> Are you building your own PA or is it a distro? What platform are you
> on? Can you post the result of "pacmd ls".
>
> More comments below.
>
> > _DEFAULT.PA <http://DEFAULT.PA>_
> >
> > #!/usr/local/bin/pulseaudio -nF
> > #
> > # This file is part of PulseAudio.
> ..snip..
> > ### Load audio drivers statically (it's probably better to not load
> > ### these drivers manually, but instead use module-hal-detect --
> > ### see below -- for doing this automatically)
> > load-module module-alsa-sink device=hw:0,0
>
> OK, so here you've modified the default.pa file for your system. You
> shouldn't have to do this. It implies a static configuration that
> obviously won't work with hotplug by itself....
>
> > #load-module module-alsa-source device=hw:1,0
> > #load-module module-oss device="/dev/dsp" sink_name=output
> source_name=input
> > #load-module module-oss-mmap device="/dev/dsp" sink_name=output
> > source_name=input
> > #load-module module-null-sink
> > #load-module module-pipe-sink
> > #load-module module-oss
> >
> > ### Automatically load driver modules depending on the hardware available
> > .ifexists module-udev-detect.so
> > load-module module-udev-detect
> > .else
> > ### Alternatively use the static hardware detection module (for systems
> that
> > ### lack udev support)
> > # kuldeep
> > #load-module module-detect
> > .endif
>
> ..snip..
>
> So udev-detect is attempted to load here, but only if it exists.
>
> If the module does not exist, then I'd suggest you need to look at your
> Pulseaudio build process or package to work out why.
>
> Col
>
> --
>
> Colin Guthrie
> gmane(at)colin.guthr.ie
> http://colin.guthr.ie/
>
> Day Job:
>  Tribalogic Limited [http://www.tribalogic.net/]
> Open Source:
>  Mageia Contributor [http://www.mageia.org/]
>  PulseAudio Hacker [http://www.pulseaudio.org/]
>  Trac Hacker [http://trac.edgewall.org/]
>
> _______________________________________________
> 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/20110714/83baf1d4/attachment.htm>


More information about the pulseaudio-discuss mailing list