[pulseaudio-discuss] Routing of audio to loudspeakers or headphones

Kim Therkelsen kim_t26 at hotmail.com
Wed Nov 3 05:31:29 PDT 2010


> It's part of the Ohm plugins.
> http://meego.gitorious.org/maemo-multimedia/ohm-plugins-misc/blobs/master/plugins/accessories/wired.c
> 
> I am not sure this code is current, someone from Nokia would need to
> comment But you'll see all kinds of jack detection in there.
> -Pierre

Thank you Pierre.

Based on wired.c I have made my own little test (jacksensetest.c) and it works fine on my Ubuntu PC. It finds jack at /dev/input/event13 (HDA Intel HP Out at Ext Left Jack) and is able to tell if headphones are connected or disconnected. 

Unfortunately it does not work on the Meego PC. It runs through /dev/input/event0 to event9, mice and mouse0/1 but does not find "Jack" using check_device():
bash-4.0$ ./jacksensetestRunning through devices...discover jack device by matching 'Jack'/dev/input/event8Checking device, pattern: Jack, name: , fd;4/dev/input/mouse1Checking device, pattern: Jack, name: HID 413c:3010, fd;4/dev/input/event7Checking device, pattern: Jack, name: HID 413c:3010, fd;4/dev/input/event9Checking device, pattern: Jack, name: Dell Dell USB Keyboard, fd;4/dev/input/event6Checking device, pattern: Jack, name: CNF9011, fd;4/dev/input/mouse0Checking device, pattern: Jack, name: SynPS/2 Synaptics TouchPad, fd;4/dev/input/event5Checking device, pattern: Jack, name: SynPS/2 Synaptics TouchPad, fd;4/dev/input/event4Checking device, pattern: Jack, name: AT Translated Set 2 keyboard, fd;4/dev/input/event3Checking device, pattern: Jack, name: Video Bus, fd;4/dev/input/event2Checking device, pattern: Jack, name: Power Button, fd;4/dev/input/event1Checking device, pattern: Jack, name: Sleep Button, fd;4/dev/input/event0Checking device, pattern: Jack, name: Lid Switch, fd;4/dev/input/miceChecking device, pattern: Jack, name: Power Button, fd;4failed to open jack detection devicecould not initialize 'jack'

Should I be looking for something else than "Jack"? How do I know what to look for?

/Kim

 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/pulseaudio-discuss/attachments/20101103/07f2d0a3/attachment.htm>


More information about the pulseaudio-discuss mailing list