[DEV] Camera driver for 3.x kernel with ION support

Search This thread

woodytrain

Senior Member
Dec 28, 2011
216
64
I have posted in milaq's thread that I've installed the 0306 update. The camera is working but ...

1. As Dorregaray posted above, "please provide the logcat from taking picture."

2. It's strange you observe the full launch of the native camera app. I continue to observe "can't connect to the camera" for the native cam app.

In Settings > Apps >Camera, what version number to you observe? Mine is:
"com.netco.camera version 1.0"

I've assumed this "native app" is the camera app provided by CyanogenMod in the CM11-3.0kernel build. At least I did not install on my own. Or is it possible the camera app is a custom add-on app by Milaq?

In Settings > Apps >Camera, Cache shows 12.00KB. When I click clear cache button, I observe no response.
 
Last edited:

_Dorregaray_

Senior Member
Sep 21, 2012
160
1,053
Katowice
tomasz.rostanski.pl
Could this article she'd some light onto the camera issues? Specifically the battery issue. http://www.ibtimes.com/google-worki...android-devices-kitkat-qualcomm-chips-1559771

No, we're using older camera api and have no mm-qcamera-daemon. The mm-qcamera-daemon is used for V4L2 version of camera hal. IMHO this is very weird app - it seems to connect to the camera kernel driver at startup and keeps the connection for all the time even you're not using camera. This may lead to some issues similar to the one I have in my camerahal and draining the battery. Fortunately for Touchpad it has been fixed.
 
  • Like
Reactions: Moody66

_Dorregaray_

Senior Member
Sep 21, 2012
160
1,053
Katowice
tomasz.rostanski.pl
Thanks. See attached:

Thanks. It seems that the native_jpeg_encode function failed:
Code:
03-06 16:39:52.313 I/mm-still(  147): jpege_set_destination: invalid outpt buffer
03-06 16:39:52.323 E/QualcommCameraHardware(  147): native_jpeg_encode: jpeg_encoder_encode failed.
03-06 16:39:52.323 E/QualcommCameraHardware(  147): jpeg encoding failed
03-06 16:39:52.323 I/QualcommCameraHardware(  147): Unregister MAIN_IMG

edit: it seems that milaq is using wrong camera blobs.

so if you're able to download the following libs:
https://github.com/TheMuppets/propr...45e59/tenderloin/proprietary/lib/libgemini.so
https://github.com/TheMuppets/propr...045e59/tenderloin/proprietary/lib/libmmipl.so
https://github.com/TheMuppets/propr...45e59/tenderloin/proprietary/lib/libmmjpeg.so
and then upload to the /system/lib on the device replacing the original ones you should have camera taking pictures
 
Last edited:

JustMeToo

Senior Member
Mar 24, 2011
256
43
In Settings > Apps >Camera, what version number to you observe? Mine is:
"com.netco.camera version 1.0"

I've assumed this "native app" is the camera app provided by CyanogenMod in the CM11-3.0kernel build. At least I did not install on my own. Or is it possible the camera app is a custom add-on app by Milaq?

In Settings > Apps >Camera, Cache shows 12.00KB. When I click clear cache button, I observe no response.

Mine is the app that came with the ROM update, so it's 'native' and it's version 2.0.002, Cash is 12.00KB.

---------- Post added at 08:59 AM ---------- Previous post was at 08:44 AM ----------

edit: it seems that milaq is using wrong camera blobs.

so if you're able to download the following libs:
https://github.com/TheMuppets/propr...45e59/tenderloin/proprietary/lib/libgemini.so
https://github.com/TheMuppets/propr...045e59/tenderloin/proprietary/lib/libmmipl.so
https://github.com/TheMuppets/propr...45e59/tenderloin/proprietary/lib/libmmjpeg.so
and then upload to the /system/lib on the device replacing the original ones you should have camera taking pictures

I replaced the files in milaq's ROM with the above and now I too get the 'Can't connect to the Camera' error. I would have posted the catalogs but I don't remember how to find them. I know the OP (I think it was him) posted once how to do it but I didn't really pay attention to the post and now I can't find where I saw it.:(
 

tacitapproval

Senior Member
Jul 1, 2010
130
14
Thanks. It seems that the native_jpeg_encode function failed:
Code:
03-06 16:39:52.313 I/mm-still(  147): jpege_set_destination: invalid outpt buffer
03-06 16:39:52.323 E/QualcommCameraHardware(  147): native_jpeg_encode: jpeg_encoder_encode failed.
03-06 16:39:52.323 E/QualcommCameraHardware(  147): jpeg encoding failed
03-06 16:39:52.323 I/QualcommCameraHardware(  147): Unregister MAIN_IMG

edit: it seems that milaq is using wrong camera blobs.

so if you're able to download the following libs:
https://github.com/TheMuppets/propr...45e59/tenderloin/proprietary/lib/libgemini.so
https://github.com/TheMuppets/propr...045e59/tenderloin/proprietary/lib/libmmipl.so
https://github.com/TheMuppets/propr...45e59/tenderloin/proprietary/lib/libmmjpeg.so
and then upload to the /system/lib on the device replacing the original ones you should have camera taking pictures

Works! Thanks.

Make sure you set permissions and reboot.

Sent from my TouchPad using Tapatalk
 

woodytrain

Senior Member
Dec 28, 2011
216
64
Mine is the app that came with the ROM update, so it's 'native' and it's version 2.0.002, Cash is 12.00KB.

Thanks. Strange I have an old 'native' camera version. I just uninstalled it and hope the next nightly I flash will install a newer version. And will scan through my various apps directories to see what may be lurking.

I would have posted the catalogs but I don't remember how to find them.

It's "catlog". Google Play Store has a free 'Catlog' app that works well.

---------- Post added at 04:25 PM ---------- Previous post was at 04:22 PM ----------

edit: it seems that milaq is using wrong camera blobs.

so if you're able to download the following libs:
https://github.com/TheMuppets/propr...45e59/tenderloin/proprietary/lib/libgemini.so
https://github.com/TheMuppets/propr...045e59/tenderloin/proprietary/lib/libmmipl.so
https://github.com/TheMuppets/propr...45e59/tenderloin/proprietary/lib/libmmjpeg.so
and then upload to the /system/lib on the device replacing the original ones you should have camera taking pictures

Will do tomorrow. A kind thanks for the continued support in solving camera issues!
 

synchron50

Senior Member
Aug 11, 2012
100
7
Am I to understand after skimming this thread that at this time any kernel 3.0 CM11 ROM will have the blue tint when recording video and you'll need to move up to kernel 3.4 to remedy this?

Thanks in advance.
 

Top Liked Posts