On Thu, 2008-01-10 at 11:56 +0200, ext Kalle Valo wrote: > "ext Andrew Flegg" <andrew at bleb.org> writes: > > >> Interesting. Is there an API that an application can detect if a headset > >> is connected or not? > > > > There must be some software mechanism because the switch to headphone > > output for audio is controlled in software, rather than hardware. > > > > This can be seen by the fact that the FM radio application allows > > audio to be output through the speakers when a pair of headphones is > > acting as aerial. > > Just what I was thinking. My first guess would be that there's a GPIO > for this. Anyone interested should check the kernel sources. And with > luck there's already a sysfs interface. > > Disclaimer: I know nothing about this, this is purely guessing. And > right now I don't have time to check this. It's gpio and iirc there's a kernel event being sent. But I have to use the same disclaimer that Kalle wrote. -- Cheers, Igor Igor Stoppa <igor.stoppa at nokia.com> (Nokia Multimedia - CP - OSSO / Helsinki, Finland)