fm radio

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



"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


[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Big List of Linux Books]    

  Powered by Linux