"ext Andrew Flegg" <[EMAIL PROTECTED]> 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. -- Kalle Valo _______________________________________________ maemo-users mailing list [email protected] https://lists.maemo.org/mailman/listinfo/maemo-users
