Colin, Thanks for quick reply <br><br>Here is my <a href="http://default.pa">default.pa</a> (below)<br>I am using standard per-user setup, module-udev-detect is not getting loaded by default (also not when I inserted headset)<br>
any help may be useful. Thanks in advance.<br><br><u><a href="http://DEFAULT.PA">DEFAULT.PA</a></u><br><br>#!/usr/local/bin/pulseaudio -nF<br>#<br># This file is part of PulseAudio.<br>#<br># PulseAudio is free software; you can redistribute it and/or modify it<br>
# under the terms of the GNU Lesser General Public License as published by<br># the Free Software Foundation; either version 2 of the License, or<br># (at your option) any later version.<br>#<br># PulseAudio is distributed in the hope that it will be useful, but<br>
# WITHOUT ANY WARRANTY; without even the implied warranty of<br># MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU<br># General Public License for more details.<br>#<br># You should have received a copy of the GNU Lesser General Public License<br>
# along with PulseAudio; if not, write to the Free Software Foundation,<br># Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.<br><br># This startup script is used only if PulseAudio is started per-user<br># (i.e. not in system mode)<br>
<br>.nofail<br><br>### Load something into the sample cache<br>#load-sample-lazy x11-bell /usr/share/sounds/gtk-events/activate.wav<br>#load-sample-lazy pulse-hotplug /usr/share/sounds/startup3.wav<br>#load-sample-lazy pulse-coldplug /usr/share/sounds/startup3.wav<br>
#load-sample-lazy pulse-access /usr/share/sounds/generic.wav<br><br>.fail<br><br>### Automatically restore the volume of streams and devices<br>load-module module-device-restore<br>load-module module-stream-restore<br>load-module module-card-restore<br>
<br>### Automatically augment property information from .desktop files<br>### stored in /usr/share/application<br>load-module module-augment-properties<br><br>### Load audio drivers statically (it's probably better to not load<br>
### these drivers manually, but instead use module-hal-detect --<br>### see below -- for doing this automatically)<br>load-module module-alsa-sink device=hw:0,0<br>#load-module module-alsa-source device=hw:1,0<br>#load-module module-oss device="/dev/dsp" sink_name=output source_name=input<br>
#load-module module-oss-mmap device="/dev/dsp" sink_name=output source_name=input<br>#load-module module-null-sink<br>#load-module module-pipe-sink<br>#load-module module-oss<br><br>### Automatically load driver modules depending on the hardware available<br>
.ifexists module-udev-detect.so<br>load-module module-udev-detect<br>.else<br>### Alternatively use the static hardware detection module (for systems that<br>### lack udev support)<br># kuldeep<br>#load-module module-detect<br>
.endif<br><br>### Automatically load driver modules for Bluetooth hardware<br>.ifexists module-bluetooth-discover.so<br>load-module module-bluetooth-discover<br>.endif<br><br>### Load several protocols<br>.ifexists module-esound-protocol-unix.so<br>
load-module module-esound-protocol-unix<br>.endif<br>load-module module-native-protocol-unix<br><br>### Network access (may be configured with paprefs, so leave this commented<br>### here if you plan to use paprefs)<br>#load-module module-esound-protocol-tcp<br>
#load-module module-native-protocol-tcp<br>#load-module module-zeroconf-publish<br><br>### Load the RTP reciever module (also configured via paprefs, see above)<br>#load-module module-rtp-recv<br><br>### Load the RTP sender module (also configured via paprefs, see above)<br>
#load-module module-null-sink sink_name=rtp format=s16be channels=2 rate=44100 description="RTP Multicast Sink"<br>#load-module module-rtp-send source=rtp.monitor<br><br>### Load additional modules from GConf settings. This can be configured with the paprefs tool.<br>
### Please keep in mind that the modules configured by paprefs might conflict with manually<br>### loaded modules.<br>.ifexists module-gconf.so<br>.nofail<br>load-module module-gconf<br>.fail<br>.endif<br><br>### Automatically restore the default sink/source when changed by the user during runtime<br>
load-module module-default-device-restore<br><br>### Automatically move streams to the default sink if the sink they are<br>### connected to dies, similar for sources<br>load-module module-rescue-streams<br><br>### Make sure we always have a sink around, even if it is a null sink.<br>
load-module module-always-sink<br><br>### Honour intended role device property<br>load-module module-intended-roles<br><br>### Automatically suspend sinks/sources that become idle for too long<br>load-module module-suspend-on-idle<br>
<br>### If autoexit on idle is enabled we want to make sure we only quit<br>### when no local session needs us anymore.<br># kuldeep<br>#load-module module-console-kit<br><br>### Enable positioned event sounds<br>load-module module-position-event-sounds<br>
<br>### Cork music streams when a phone stream is active<br>load-module module-cork-music-on-phone<br><br># X11 modules should not be started from <a href="http://default.pa">default.pa</a> so that one daemon<br># can be shared by multiple sessions.<br>
<br>### Load X11 bell module<br>#load-module module-x11-bell sample=bell-windowing-system<br><br>### Register ourselves in the X11 session manager<br>#load-module module-x11-xsmp<br><br>### Publish connection data in the X11 root window<br>
#.ifexists module-x11-publish.so<br>#.nofail<br>#load-module module-x11-publish<br>#.fail<br>#.endif<br><br>### Make some devices default<br>#set-default-sink output<br>#set-default-source input<br><br><br>BR<br>Himanshu<br>
<br><br><div class="gmail_quote">On Wed, Jul 6, 2011 at 5:51 PM, Colin Guthrie <span dir="ltr"><<a href="mailto:gmane@colin.guthr.ie">gmane@colin.guthr.ie</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
'Twas brillig, and Himanshu Chug at 06/07/11 12:37 did gyre and gimble:<br>
<div><div></div><div class="h5">> Hi<br>
><br>
> I am trying to route audio on a headset.<br>
><br>
> -I am able to get audio working on loudspeaker (which is the default<br>
> sink for my device)<br>
> - I have inserted headset in my phone and tried "pacmd list-sinks"<br>
> command, but I am not able to get the headset detected as new sink device?<br>
> may be I am wrong, but does PA have the logic to understand that headset<br>
> is inserted (new sink is available), if yes how can I get this reflected<br>
> in "pacmd list-sinks" and if so I can use this sink index/name for routing.<br>
<br>
</div></div>In a typical PA setup, module-udev-detect is used to load all alsa devices.<br>
<br>
Is that how your setup is working?<br>
<br>
If so, udev is the one that notices the new h/w and puts out a signal<br>
that PA's module-udev-detect spots. When it spots this, PA will load a<br>
new module-alsa-card for the device and it should subsequently show up<br>
in pacmd list-sinks.<br>
<br>
If you need more help to understand things, you'll need to post your<br>
<a href="http://default.pa" target="_blank">default.pa</a> file (assuming you're running a standard per-user setup) and<br>
ideally the debug output from "pulseaudio -vvvvv" from the start through<br>
to when you plug a device in.<br>
<br>
Col<br>
<br>
<br>
--<br>
<br>
Colin Guthrie<br>
gmane(at)<a href="http://colin.guthr.ie" target="_blank">colin.guthr.ie</a><br>
<a href="http://colin.guthr.ie/" target="_blank">http://colin.guthr.ie/</a><br>
<br>
Day Job:<br>
Tribalogic Limited [<a href="http://www.tribalogic.net/" target="_blank">http://www.tribalogic.net/</a>]<br>
Open Source:<br>
Mageia Contributor [<a href="http://www.mageia.org/" target="_blank">http://www.mageia.org/</a>]<br>
PulseAudio Hacker [<a href="http://www.pulseaudio.org/" target="_blank">http://www.pulseaudio.org/</a>]<br>
Trac Hacker [<a href="http://trac.edgewall.org/" target="_blank">http://trac.edgewall.org/</a>]<br>
<br>
_______________________________________________<br>
pulseaudio-discuss mailing list<br>
<a href="mailto:pulseaudio-discuss@lists.freedesktop.org">pulseaudio-discuss@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/pulseaudio-discuss" target="_blank">http://lists.freedesktop.org/mailman/listinfo/pulseaudio-discuss</a><br>
</blockquote></div><br>