[maemo-users] fm radio

From: Kalle Valo kalle.valo at nokia.com
Date: Thu Jan 10 11:56:35 EET 2008
"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.

Kalle Valo

More information about the maemo-users mailing list