• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Root [DEV] WIP CM9 (Camera) [updated 2/23/2013]

So I have the github all synced with the new kernel and also rolled back the repos dorrey worked on to Dec 2. I pushed the new msm_camera.h however having issues building. If anyone wants to take shot please feel free. I contacted dorrey so hopefully he can assist me with the code as he did write all the camerhal stuff. I will keep you all posted as we continue forward.

https://github.com/MTCM9/android

I removed camtest from the default.xml due to to many changes in libcamera and camerhal. Also resolved all the errors in camaerhal and libcamera2. Build is almost done, as long as it doesn't error anymore I will push up the changes. The errors being found

Code:
In file included from hardware/qcom/camerhal/QualcommCameraHardware.h:31,
                 from hardware/qcom/camerhal/QualcommCameraHardware.cpp:23:
hardware/qcom/camerhal/QCamera_Intf.h:834: error: expected identifier before numeric constant
hardware/qcom/camerhal/QCamera_Intf.h:834: error: expected '}' before numeric constant
hardware/qcom/camerhal/QCamera_Intf.h:834: error: expected unqualified-id before numeric constant
hardware/qcom/camerhal/QCamera_Intf.h:838: error: expected constructor, destructor, or type conversion before ';' token
hardware/qcom/camerhal/QCamera_Intf.h:842: error: expected identifier before '-' token
hardware/qcom/camerhal/QCamera_Intf.h:842: error: expected '}' before '-' token
hardware/qcom/camerhal/QCamera_Intf.h:842: error: expected unqualified-id before '-' token
hardware/qcom/camerhal/QCamera_Intf.h:847: error: expected declaration before '}' token
are due to duplicate entries in msm_camera.h that are already located in QCamera_Intf.h & QualcommCameraHardware.h. I had to comment out some 20 lines or more and replace the msm_camera.h in both camerahal and libcamera2 directories. Dorrey pointed that out to me. He is one sharp dev!

Edit: github is upto date 8:57AM MST 1/1/2013
Sweet! I was just working on that, I ended up putting the old msm_camera.h back in and waiting for it to finish now, I'll pull in the changes after the build finishes.


Edit: there is a line in the camtest.ccp that just needs to be deleted to build, it was an if froyo lib else, if you just take out the else and the line it will build fine.
 
Sweet! I was just working on that, I ended up putting the old msm_camera.h back in and waiting for it to finish now, I'll pull in the changes after the build finishes.


Edit: there is a line in the camtest.ccp that just needs to be deleted to build, it was an if froyo lib else, if you just take out the else and the line it will build fine.

HOLLY SHIT!!! Houston we have lift off!!!!
camera.jpg


It still doesn't store the picture but the display now works!!!! It's off set but that is easy enough to fix!!! Here is the new Beta ROM! The reason for the date is 31 is I started the build yesterday!!
http://mtdev.us/alpha/CM-MTDEV9-20121231.zip

Edit: It does store panorama pictures!
 
ALMOST THERE!!! YOU GUYS ROCK!!!!!!! btw are the random reboots still present?

No more random reboots, that was based on the 2.6.35.7 kernel, we are back to the 2.6.32.59 kernel which BSydz patched the msm_camera and also gpu settings from the 2.6.35.7 kernel. Based on his patching this is how the camera got partially fixed. Still need work on the camerahal which is dorrey's work, however it's getting much closer than before as you can see :D
 
ALMOST THERE!!! YOU GUYS ROCK!!!!!!! btw are the random reboots still present?
Thanks, There are no random reboots that I have seen. This is the regular CM9 2.6.32.59 kernel, with all the camera stuff from the 2.6.35.7 kernel, I also added some file system support and a couple other things. I figured a few things out with the 2.6.35.7 kernel but I kinda got sidetracked after I got the 2.6.32.59 kernel going. I'll put in some work on the newer kernel in a while though. Just wanna try to get this fully functional first, if possible.

Edit: G60 ninja'd me
 
Dorrey just pushed up some new code for the Camera should fix orientation and possibly taking pictures. It's building now I will let you guys know soon!

People like you, Bsydz, and Dorrey are truly inspiring. Thanks so much guys.

I flashed it earlier today and you guys probably already know, but switching to the FFC force closes.

Thank you for all you do
 
People like you, Bsydz, and Dorrey are truly inspiring. Thanks so much guys.

I flashed it earlier today and you guys probably already know, but switching to the FFC force closes.

Thank you for all you do

You bet!!! There is still lots of issues with the Camera but this is a humongous hill we just got over! It's amazing to see how many dedicated developers we have working together to solve this Camera!!! It's also great to see that the Triumph has finally gotten there, it's taken so long, but this little victory is so damn sweet!!! :D:D:D
 
Thank you for all the hard development work you are doing..I will have this new mod installed when you get everything working. I was wondering does your build enable the front camera, as well? I'm not a tech savvy guy, so will one of you let me know when I can also reboot my Triumph into this new mod. Thanks!!!
 
Thank you for all the hard development work you are doing..I will have this new mod installed when you get everything working. I was wondering does your build enable the front camera, as well? I'm not a tech savvy guy, so will one of you let me know when I can also reboot my Triumph into this new mod. Thanks!!!

Right now it's not worth it at this moment as the camera is not functioning enough to take pictures accept for panorama. I am still working with Dorrey on the builds and trying to get everything fixed. He has pushed multiple fixes, and also also updated the media_profiles which should hope allow the front facing camera to work. I am building the code right now again, but just stopped as he sent me another diff patch. Hopefully soon everything will be in working order, just going to take a lot of time and work.
 
Does the 12-31 rom have everything working from the 11-13 rom?

Yes, accept maybe nexflix have not tested that. However the other apps are also optimized as I added some new packages to my Linux box so its optimizing the apps to run better so there should be an increase in ROM speed. Also I added back in VPN connections so that to is also new to the ROM.
 
Back
Top Bottom