Hi androidezx,
I am looking at your code and I have some comments:
1. android-a1200-pcap.patch replace all ezx_pcap_write register writes with just a 0 write to REG_INT_SEL. Writing values to registers without knowing their meaning is bad and can harm your phone (seriouslly!). I marked this Alex Zhang contributions long ago when he contributed this code to us with the /* wrong */ comments and there was a good reason for that.
Wyrm: Thanks for your advise! I will avoid it as the following code change.
2. android-touchscreen.patch Also not a good idea. You cant just enforce the raw TS samples to the range accepted by android. You have to do filtering and calibration. You can write an userspace daemon for this (or use tslib, altough i dont know if you can use it with android), that outputs to a Uinput device file, so android can read correct data from /dev/input/whatever.
Wyrm: You are right. The right way is that filtering/calibration should be done before writing touch drive datat to /dev/input/event1. But Android file system reads raw x/y coordination info and pressure info from /dev/input/event1. There is some difficulty in calibration. Hope that someone finish this task. Here I just do rough calibration for demo purpose.
3. Consider updating your OpenEZX patchset to our git latest version. A lot of stuff have changed latelly, and this is the code which will be submitted to mainline linux. (not to mention some cool new features).
Wyrm: Could you tell me where I can get this latest git version patchset? Thanks!
4. the BP stuff. The trick here is that once put on flash mode (when you enter the bootloader) you cant put BP to work again without a power cycle. So, to get BP working, you have to flash a secondary bootloader on your phone, look for gen-blob on my people.openezx.org home page. You will have to flash it to the kernel partition on your phone, and everything will be much easier
