fm radio

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

 



Hi,

this is what I have when fmradio applet is running and when I strace one of
the maemo-launcher processes:

...
open("/sys/devices/platform/gpio-switch/headphone/state", O_RDONLY) = 21
fstat64(21, {st_mode=S_IFREG|0644, st_size=4096, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
0x40002000
read(21, "disconnected\n", 4096)        = 13
close(21)                               = 0
...
I think it happens each 2 sec or so.

What I meant before as /proc/something is actually /sys/something ;-)

cheers
Pit

On Jan 11, 2008 10:42 AM, Luca Olivetti <luca at ventoso.org> wrote:

> En/na Kalle Valo ha escrit:
> > "ext Luca Olivetti" <luca at ventoso.org> writes:
> >
> >>> 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.
> >> /sys/devices/platform/gpio-switch/headphone/state
> >
> > Bingo! Thanks for finding this.
>
> I don't deserve the merit, I found it in kagu (maemo.py).
>
> Bye
> --
> Luca
>
> _______________________________________________
> maemo-users mailing list
> maemo-users at maemo.org
> https://lists.maemo.org/mailman/listinfo/maemo-users
>



-- 
Piotr
-------------------------------------
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.maemo.org/pipermail/maemo-users/attachments/20080111/2308cdc7/attachment.htm 


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

  Powered by Linux