Phil, Luca,
OK, thanks. Knowing that the interrupt was actually being generated was
the only thing that was worrying me.
I'll try to work this out for the OSS drivers this morning and afternoon.
I'll be doing this for the OSS drivers, which, based on Luca's patch,
will end up being very similar to what was done for the ALSA drivers -- so
a cross port back to ALSA should be straight forward.
Jim
bedboi wrote:
>
> On Sat, 2005-03-26 at 09:28 +0000, Phil Blundell wrote:
> > Jim,
> >
> > The iPAQ_H5400_System_Programming_Information.doc document describes
> > this gpio as "HP_Detect", but this is not completely authoritative.
> > Also, my recollection is that Luca's original patch was successfully
> > using this gpio to generate interrupts when the headphones were inserted
> > and removed.
> >
> Yep, this is correct. I was able to cacth interrupt signals on that GPIO
> but i was just not able to handle the interrupt in a correct way (this
> was my first approach to kernel space programming). So it should be
> rather simple for an experienced kernel hacker to write an interrupt
> handler (the buggy code is included in the patch, you should see in
> dmesg debug messages when the headphones are plugged/unplugged).
>
> Cheers,
> Luca
>
> _______________________________________________
> H5400-port mailing list
> H5400-port_at_handhelds.org
> https://www.handhelds.org/mailman/listinfo/h5400-port
-- ---------------------------------------------------------------------- James T. Kaba Sarnoff Corporation There are 10 kinds of people in the world: jkaba_at_sarnoff.com those who understand binary, and those who don't. 609-734-2246Received on Mon Mar 28 2005 - 10:42:39 EST
This archive was generated by hypermail 2.2.0 : Mon Jul 25 2005 - 17:20:11 EDT