Handsfree detection hack
Hi,
I damaged my Treo680 some time ago during measuring power output on MUC connector. It now seems to fail detection of handsfree on MUC (it report still attached handsfree and audio is routed through MUC or jack). Since the detection is damaged on HW level, I can fix it on SW level only. In Linux it is doable quite well, but I'm looking for hack which can do this. I know what the problem is because there is cca 0.5 second delay between unplugging MUC and audio route misconfiguration.
Currently I have nice PDA with modem, but I can't use it as phone...
Does anyone heard about similar hack?
Does anyone at least know how to create such thing?
WhineHack (located in our SVN repo) can be used as skeleton and attach the needed notifications...
Thanks
Sleep_Walker

OK, Marex gave me a hint and
OK, Marex gave me a hint and it seems be good way.
Detection of handsfree is using GPIO115 (on my Treo680). When I changed it's direction and set it to low, it started working.
GPDR3 |= 1 << 19
GPCR3 |= 1 << 19
This setup is needed to do only once after reset, the rest of time it behaves right.