On Wed, Aug 03, 2011 at 06:35:22PM +0530, Himanshu Chug wrote: > one colleague of mine from ALSA /kernel team have wrote the Jack detection > app using udev API from libudev, > so the Jack plug in/plug Out state can be read at sys/devices/virtual/switch > /h2w/state This is a completely non-standard API available only on Android. It seems vanishingly unlikely to go into standard Linux.