Currently I am trying standard headset with mic (3.5 mm) and not USB headset.<br><u><br>on ubuntu 10.10 desktop</u> <br> <br>-module-udev-detect is loaded <br>-I am trying out use-case of headset plug/unplug , when music is playing on totem player the audio is getting routed to headset automatically when HS is plugged-in. (which is expected :-) )<br>
-here I am expecting to see an new sink device in the list-sinks which is not happening?<br><br><u>on device with 2.6.35 kernel and PA 0.9.21</u><br>
<br>
- module-udev-detect is loaded<br>
- audio is NOT getting routed to headset automatically when HS is plugged-in, while playing music through gst-launch ? Not sure why ?<br>
- here also I am expecting to see an new sink device in the list-sinks which is not happening?<br><br><br> <u>here is the list-sinks <b>output (of ubuntu10.10)</b> it remains same irrespective of doing headset plugin/plugout :</u><br>
<br>1 sink(s) available.<br> * index: 0<br> name: <alsa_output.pci-0000_00_1b.0.analog-stereo><br> driver: <module-alsa-card.c><br> flags: HARDWARE HW_MUTE_CTRL HW_VOLUME_CTRL DECIBEL_VOLUME LATENCY DYNAMIC_LATENCY<br>
state: SUSPENDED<br> suspend cause: IDLE <br> priority: 9959<br> volume: 0: 65% 1: 65%<br> 0: -11.41 dB 1: -11.41 dB<br> balance 0.00<br> base volume: 100%<br> 0.00 dB<br>
volume steps: 65537<br> muted: no<br> current latency: 0.00 ms<br> max request: 0 KiB<br> max rewind: 0 KiB<br> monitor source: 0<br> sample spec: s16le 2ch 44100Hz<br> channel map: front-left,front-right<br>
Stereo<br> used by: 0<br> linked by: 0<br> configured latency: 0.00 ms; range is 0.50 .. 1999.82 ms<br> card: 0 <alsa_card.pci-0000_00_1b.0><br> module: 4<br> properties:<br> alsa.resolution_bits = "16"<br>
device.api = "alsa"<br> device.class = "sound"<br> alsa.class = "generic"<br> alsa.subclass = "generic-mix"<br> <a href="http://alsa.name">alsa.name</a> = "AD198x Analog"<br>
<a href="http://alsa.id">alsa.id</a> = "AD198x Analog"<br> alsa.subdevice = "0"<br> alsa.subdevice_name = "subdevice #0"<br> alsa.device = "0"<br> alsa.card = "0"<br>
alsa.card_name = "HDA Intel"<br> alsa.long_card_name = "HDA Intel at 0xdfdfc000 irq 43"<br> alsa.driver_name = "snd_hda_intel"<br> device.bus_path = "pci-0000:00:1b.0"<br>
sysfs.path = "/devices/pci0000:00/0000:00:1b.0/sound/card0"<br> device.bus = "pci"<br> <a href="http://device.vendor.id">device.vendor.id</a> = "8086"<br> <a href="http://device.vendor.name">device.vendor.name</a> = "Intel Corporation"<br>
<a href="http://device.product.id">device.product.id</a> = "27d8"<br> <a href="http://device.product.name">device.product.name</a> = "N10/ICH 7 Family High Definition Audio Controller"<br>
device.form_factor = "internal"<br> device.string = "front:0"<br> device.buffering.buffer_size = "352768"<br> device.buffering.fragment_size = "176384"<br>
device.access_mode = "mmap+timer"<br> <a href="http://device.profile.name">device.profile.name</a> = "analog-stereo"<br> device.profile.description = "Analog Stereo"<br>
device.description = "Internal Audio Analog Stereo"<br> alsa.mixer_name = "Analog Devices AD1984"<br> alsa.components = "HDA:11d41984,10280220,00100400"<br> module-udev-detect.discovered = "1"<br>
device.icon_name = "audio-card-pci"<br> ports:<br> analog-output: Analog Output (priority 9900)<br> analog-output-headphones: Analog Headphones (priority 9000)<br> active port: <analog-output><br>
<br><br><b><u>Device</u></b><br><br>>>> list-sinks<br>1 sink(s) available.<br> * index: 0<br> name: <alsa_output.hw_0_0><br> driver: <module-alsa-sink.c><br> flags: HARDWARE DECIBEL_VOLUME LATENCY FLAT_VOLUME DYNAMIC_LATENCY<br>
state: SUSPENDED<br> suspend cause: IDLE <br> priority: 9000<br> volume: 0: 100% 1: 100%<br> 0: 0.00 dB 1: 0.00 dB<br> balance 0.00<br> base volume: 100%<br> 0.00 dB<br>
volume steps: 65537<br> muted: no<br> current latency: 0.00 ms<br> max request: 127 KiB<br> max rewind: 127 KiB<br> monitor source: 0<br> sample spec: s16le 2ch 44100Hz<br> channel map: front-left,front-right<br>
Stereo<br> used by: 0<br> linked by: 0<br> configured latency: 0.00 ms; range is 0.50 .. 742.31 ms<br> module: 4<br> properties:<br> alsa.resolution_bits = "16"<br> device.api = "alsa"<br>
device.class = "sound"<br> alsa.class = "generic"<br> alsa.subclass = "generic-mix"<br> <a href="http://alsa.name">alsa.name</a> = ""<br> <a href="http://alsa.id">alsa.id</a> = "McBSP2-STDac cpcap stdac-0"<br>
alsa.subdevice = "0"<br> alsa.subdevice_name = "subdevice #0"<br> alsa.device = "0"<br> alsa.card = "0"<br> alsa.card_name = "motsnd"<br>
alsa.long_card_name = "Motorola MAPPHONE"<br> device.string = "hw:0,0"<br> device.buffering.buffer_size = "130944"<br> device.buffering.fragment_size = "65472"<br>
device.access_mode = "mmap+timer"<br> device.description = "motsnd"<br> device.icon_name = "audio-card"<br><br><br>any idea, what went wrong ?<br><br>Best Regards,<br>Himanshu<br>
<br><br><br>On Sun, Jul 17, 2011 at 3:34 AM, Colin Guthrie <span dir="ltr"><<a href="mailto:gmane@colin.guthr.ie">gmane@colin.guthr.ie</a>></span> wrote:<br><div class="gmail_quote"><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 14/07/11 11:36 did gyre and gimble:<br>
<div class="im">> Hi Colin<br>
><br>
> Thanks for information.<br>
><br>
> we were using an old kernel which doesnt have proper udev support<br>
> (something like that I come to know from our kernel team.. :( ), then I<br>
> migrated to latest kernel and now module-udev-detect is built getting<br>
> loaded along with other modules :-)<br>
<br>
</div>Ahh good :)<br>
<div class="im"><br>
> Next..<br>
><br>
> I am trying to plug-in/out accessory headset , I guess it should reflect<br>
> in pacmd list-sinks or pacmd list-sources? but I am not sure, how to<br>
> view the updated list of sinks/sources after plugin/out ?<br>
<br>
</div>Yeah, those commands should show you your updated devices after plug/unplug.<br>
<div class="im"><br>
> also , you mention one comment on my <a href="http://default.pa" target="_blank">default.pa</a> that ..<br>
> "load-module module-alsa-sink device=hw:0,0"<br>
> "OK, so here you've modified the <a href="http://default.pa" target="_blank">default.pa</a> file<br>
> for your system. You<br>
> shouldn't have to do this. It implies a static configuration that<br>
> obviously won't work with hotplug by itself...."<br>
><br>
> is this affecting ???<br>
<br>
</div>It shouldn't affect hotplug of USB stuff, just your internal card. That<br>
said you should still remove that line as it's not needed.<br>
<br>
I actually clarified the wording on the wiki page that lead you to add<br>
this line as another user on IRC got caught out by it too. Hopefully<br>
it's clearer now.<br>
<br>
<br>
So, the problem of your USB not showing up is presumably still there..<br>
<br>
If udev is working correctly now, then I'd run PA manually via<br>
pulseaudio -vvvvv and look for the debug that should spew out when you<br>
do the plug/unplug.<br>
<br>
My initial guess at the problem would be one of permissions. i.e. your<br>
user may not be allowed to access this new device node that is created.<br>
In a typical desktop env, udev will use udev-acl to give your user<br>
permission via an ACL on the device node. PA will only add a sink/source<br>
if your user actually has permission to open the device.<br>
<br>
This last bit is just a guess tho'. Hope it helps.<br>
<div><div></div><div class="h5"><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>
</div></div></blockquote></div><br>