Hi Munjeni, Winsuk and cia, great work overall,
About camera, I am trying fix it for Legend, too, and I have also reached this point. I think the libcamera of reference used is not so bad as rewriting the driver. The IOCTL errors is because we have to find out the ioctls for our camera, I suppose. I have made an kernel with debug for MSM_CAMERA and I have got this trace for taking a picture in froyo (in legend, although liboemcamera is the same). It suppose there are some ioctls easy ( CAMERA_SET_PARM_CONTRAST=6,
CAMERA_SET_PARM_BRIGHTNESS=7, etc) but the traces are inteleaved and it is not easy for me extract the command sequence for, for example, start_preview. Well, I hope this had been useful. Thanks to everybody.
libcamera and liboemcamera has got equal size but they are different. So, I suppose the ioctls could no be the same.