Has anybody ported bayer type grayscale sensor to the android? In my case it's Aptina mt9p031. I wvas able to get the driver build and chip initialize up to the point where it outputs clock, data and sychronization signals. I made small changes to the HAL layer so that it recognizes the chip and starts talking. I also limited resolution to 640x480 and made camera to output vertical bars test patterns. I'm getting camera preview and capture with no apparent errors reported from kernel or HAL. However, picture is green with some slowly moving blocks. My problem is that there is no clear guide on where to make changes to make new camera work and I'm hoping that through this forum and experience of others I can make progress.
Let me know if you need more information.