Sharp CE-RH2 remote kernel driver

"Justin Patrin" <[email protected]>
Newsgroups gmane.comp.handhelds.linux.kernel,gmane.comp.handhelds.openzaurus.devel
Message-ID <[email protected]>
(cross-posted to oz-dev and kernel-discuss)

I finally got another hint and have a working kernel driver for the
CE-RH2 in-line audio remote. It outputs the correct keys. Both xev and
showkey only show 3 of the keys, the other 4 show some strange output.
However, gizmod (compiled on the Z due to cross-compile problems) sees
all 7 keys just fine and some quick hacking has it controlling mpd for
me (although volume control is still complicated).

The patch is here:
http://oe.reversefold.com/sharpsl-rc/sharpsl-rc.patch

There are still some issues with it, of course, it was pretty much
copied from the 2.4 kernel and will need some fix-ups to be merged
upstream but I'm willing to work on it if I can get some pointers.

There is a problem with the IRQ handling as well as I see this in dmesg:
enable_irq(45) unbalanced from bf1483e0

Any help in making this patch better would be appreciated.

-- 
Justin Patrin
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.