Go Back   Android Forums > Android Phones > Motorola Triumph > Triumph - All Things Root
Gamers - Check out our new sister sites!
Nintendo Wii U!    |    OUYA - $99 Android System!

Like Tree415Likes

test: Reply
 
LinkBack Thread Tools
Old January 13th, 2013, 01:13 AM   #451 (permalink)
New Member
 
Join Date: Jan 2013
Location: Oregon, USA
Gender: Male
Posts: 8
 
Device(s): HTC Evo V 4G [HTCDEV CM10] Motorola Triumph [MTDEV CM9]
Carrier: Virgin Mobile

Thanks: 10
Thanked 1 Time in 1 Post
Default

Hope he gets better!

rectec is offline  
Reply With Quote
Sponsors
Old January 13th, 2013, 07:16 PM   #452 (permalink)
New Member
 
Join Date: Sep 2012
Posts: 3
 
Device(s):
Carrier: Not Provided

Thanks: 1
Thanked 0 Times in 0 Posts
Default Question

This is completely out of topic but I would appreciate if someone could help me.

I dropped and broke my Triumph so I'm getting a replacement one, and I was wondering if the nandroid backups I've made so far are going to work with the new phone? Also if I would need to restore the phone back to the "original stock VM rom" and stock recovery.
Thanks for all the help in advance guys.
homeboy97 is offline  
Reply With Quote
Old January 13th, 2013, 08:48 PM   #453 (permalink)
New Member
 
Join Date: Jan 2013
Location: Oregon, USA
Gender: Male
Posts: 8
 
Device(s): HTC Evo V 4G [HTCDEV CM10] Motorola Triumph [MTDEV CM9]
Carrier: Virgin Mobile

Thanks: 10
Thanked 1 Time in 1 Post
Default

Quote:
Originally Posted by homeboy97 View Post
This is completely out of topic but I would appreciate if someone could help me.

I dropped and broke my Triumph so I'm getting a replacement one, and I was wondering if the nandroid backups I've made so far are going to work with the new phone? Also if I would need to restore the phone back to the "original stock VM rom" and stock recovery.
Thanks for all the help in advance guys.
Sorry about the phone. Restoring your previous backups to your replacement should work fine, as long as you still have those backups. Same exact phone and hardware. There may be some conflicts, such as having a different serial number and things like that.
Not sure I understand your second question.
rectec is offline  
Reply With Quote
Old January 13th, 2013, 09:32 PM   #454 (permalink)
Member
 
Join Date: Feb 2012
Posts: 157
 
Device(s): Motorola Triumph (CM7 G60 Style and CM9 Alpha), Nexus 7 4.1.1 Stock+Rooted
Carrier: Not Provided

Thanks: 79
Thanked 21 Times in 18 Posts
Default Re: [DEV] WIP CM9 (Camera) [updated 1/1/2013 9:26AM MST]

Quote:
Originally Posted by homeboy97 View Post
This is completely out of topic but I would appreciate if someone could help me.

I dropped and broke my Triumph so I'm getting a replacement one, and I was wondering if the nandroid backups I've made so far are going to work with the new phone? Also if I would need to restore the phone back to the "original stock VM rom" and stock recovery.
Thanks for all the help in advance guys.
Backups should work fine I think, and VM doesn't care about the stock image on the original phone. If you want to and are able to, it doesn't hurt to do it.
__________________
What's a signature???
shiv81 is offline  
Reply With Quote
Old January 13th, 2013, 10:23 PM   #455 (permalink)
New Member
 
Join Date: Sep 2012
Posts: 3
 
Device(s):
Carrier: Not Provided

Thanks: 1
Thanked 0 Times in 0 Posts
Talking

Quote:
Originally Posted by rectec View Post
Sorry about the phone. Restoring your previous backups to your replacement should work fine, as long as you still have those backups. Same exact phone and hardware. There may be some conflicts, such as having a different serial number and things like that.
Not sure I understand your second question.
Quote:
Originally Posted by shiv81 View Post
Backups should work fine I think, and VM doesn't care about the stock image on the original phone. If you want to and are able to, it doesn't hurt to do it.
Thanks guys you answered all my questions I appreciate it! You guys rock!
rectec likes this.
homeboy97 is offline  
Reply With Quote
Old January 13th, 2013, 11:06 PM   #456 (permalink)
ROM Developer
 
dsmryder's Avatar
 
Join Date: May 2011
Location: NE Florida
Posts: 1,883
 
Device(s): Motorola Triumph, running our MTDEV CM7.2.0
Carrier: VM of course

Thanks: 325
Thanked 383 Times in 274 Posts
Default

Quote:
Originally Posted by Semperverus View Post
ZipLip, there haven't been many updates lately on the camera because MikeRL is sick with (and correct me if I'm wrong) bronchitis. Or maybe the Lupus. I don't know.
There haven't been any updates because I am stupid busy and the heavy hitters have left for the Evo V. I have been trying to learn how to make Android apps so I can maybe build and correctostuff as things arise.

Like I said, I'm stupid busy (emphisis on the stupid part) with life, work and family. I wanted to spit out some ROMs to get them out there, but I don't just want to put out what is already out there without making some kind of usefull change.

Watch out for what BSydz and Rukin are doing as they have been rocking some code for JB.
Semperverus likes this.
dsmryder is offline  
Reply With Quote
Old January 17th, 2013, 06:04 PM   #457 (permalink)
Member
 
Join Date: Jul 2012
Location: Detroit, MI
Gender: Male
Posts: 109
 
Device(s): Motorola Triumph
Carrier: Not Provided

Thanks: 62
Thanked 38 Times in 34 Posts
Default

I found a camera-related commit on a triumph kernel you may find useful now or in the future: https://github.com/tickerguy/WX_435_Kernel-Tickerguy/commit/c470119326665000ac242a1f8791d60bd90f03ed
jhonka232 is offline  
Reply With Quote
The Following User Says Thank You to jhonka232 For This Useful Post:
dsmryder (January 18th, 2013)
Old January 18th, 2013, 09:01 AM   #458 (permalink)
ROM Developer
 
dsmryder's Avatar
 
Join Date: May 2011
Location: NE Florida
Posts: 1,883
 
Device(s): Motorola Triumph, running our MTDEV CM7.2.0
Carrier: VM of course

Thanks: 325
Thanked 383 Times in 274 Posts
Default

Quote:
Originally Posted by jhonka232 View Post
I found a camera-related commit on a triumph kernel you may find useful now or in the future: https://github.com/tickerguy/WX_435_Kernel-Tickerguy/commit/c470119326665000ac242a1f8791d60bd90f03ed
The CM9 ROM is on my RaDAR again. I have a couple of things I want to do with CM7, then it's on to this one.
mpfurn likes this.
dsmryder is offline  
Reply With Quote
Old January 24th, 2013, 10:49 AM   #459 (permalink)
New Member
 
Join Date: Nov 2012
Posts: 7
 
Device(s):
Carrier: Not Provided

Thanks: 2
Thanked 2 Times in 2 Posts
Default Jan 20 ROM?

What's the info on the MTDEV9-20130120.zip in on the ROM browser page?


mdblack98 is offline  
Reply With Quote
Old January 24th, 2013, 02:05 PM   #460 (permalink)
ROM Developer
 
dsmryder's Avatar
 
Join Date: May 2011
Location: NE Florida
Posts: 1,883
 
Device(s): Motorola Triumph, running our MTDEV CM7.2.0
Carrier: VM of course

Thanks: 325
Thanked 383 Times in 274 Posts
Default

Quote:
Originally Posted by mdblack98 View Post
What's the info on the MTDEV9-20130120.zip in on the ROM browser page?

Look at the main thread. This was a DEV thread. The new release is a minor update so I could practice the things I have to do when I make a more worthy release.
dsmryder is offline  
Reply With Quote
Sponsors
Old February 7th, 2013, 12:06 PM   #461 (permalink)
Junior Member
 
mozzwald's Avatar
 
Join Date: Jul 2012
Location: Illinois, USA
Gender: Male
Posts: 15
 
Device(s): Motorola Triumph & Advent Vega
Carrier: Virgin Mobile

Thanks: 1
Thanked 5 Times in 5 Posts
Default

I installed CM9 to check out the camera status. Did some poking around and it seems that the camera may be crapping out at auto-focus. You can leave camera open all day and it will work fine, but when you click the button to take a picture the first thing to pop up in logcat is:
V/FocusManager(20420): Start autofocus.
I/CameraHAL(  131): camera_auto_focus+++: device 0x19130
The camera continues to display to the screen then you get the ANR dialog and some more info in logcat. If you force close the camera continues to run in the background. When starting the camera app I see "E/QualcommCameraHardware( 131): AutoFocus is not supported" in logcat which could be why it's timing out during focus even though the camera does support autofocus.

The video orientation is not rotated correctly in the camera app. During startup you can see both cameras detected and one has "orientation=180". If I'm not mistaken cam ID 0 is the rear and cam ID 1 is the front. Can you make the rear camera rotate correctly or am I not identifying these correctly?

I have the full logcat and traces here:
http://mozzwald.homelinux.net/triumph/cam-logcat.txt
http://mozzwald.homelinux.net/triumph/cam-traces.txt

On a side note, is there an mtdev irc channel? I'm always on freenode and would be nice to toss ideas in a live environment instead of a forum.
mozzwald is online now  
Reply With Quote
Old February 7th, 2013, 01:06 PM   #462 (permalink)
Member
 
Join Date: Jul 2012
Location: Detroit, MI
Gender: Male
Posts: 109
 
Device(s): Motorola Triumph
Carrier: Not Provided

Thanks: 62
Thanked 38 Times in 34 Posts
Default

Quote:
Originally Posted by mozzwald View Post
I installed CM9 to check out the camera status. Did some poking around and it seems that the camera may be crapping out at auto-focus. You can leave camera open all day and it will work fine, but when you click the button to take a picture the first thing to pop up in logcat is:
V/FocusManager(20420): Start autofocus.
I/CameraHAL(  131): camera_auto_focus+++: device 0x19130
The camera continues to display to the screen then you get the ANR dialog and some more info in logcat. If you force close the camera continues to run in the background. When starting the camera app I see "E/QualcommCameraHardware( 131): AutoFocus is not supported" in logcat which could be why it's timing out during focus even though the camera does support autofocus.

The video orientation is not rotated correctly in the camera app. During startup you can see both cameras detected and one has "orientation=180". If I'm not mistaken cam ID 0 is the rear and cam ID 1 is the front. Can you make the rear camera rotate correctly or am I not identifying these correctly?

I have the full logcat and traces here:
http://mozzwald.homelinux.net/triumph/cam-logcat.txt
http://mozzwald.homelinux.net/triumph/cam-traces.txt

On a side note, is there an mtdev irc channel? I'm always on freenode and would be nice to toss ideas in a live environment instead of a forum.
I've always wanted to join an MTDEV irc channel, as I am frequently on freenode as well. Unfortunately when I talked to G60 he said that he could not start one because his work blocks IRC communications and his phone didn't get good enough reception to use AndChat. Some of the best dev work I've done came form bouncing ideas in an IRC chatroom. If you want to start one, that would be cool. I can't promise I'd be on it 24/7 but I would definitely frequent it.
jhonka232 is offline  
Reply With Quote
Old February 7th, 2013, 01:09 PM   #463 (permalink)
ROM Developer
 
dsmryder's Avatar
 
Join Date: May 2011
Location: NE Florida
Posts: 1,883
 
Device(s): Motorola Triumph, running our MTDEV CM7.2.0
Carrier: VM of course

Thanks: 325
Thanked 383 Times in 274 Posts
Default

Quote:
Originally Posted by mozzwald View Post
I installed CM9 to check out the camera status. Did some poking around and it seems that the camera may be crapping out at auto-focus. You can leave camera open all day and it will work fine, but when you click the button to take a picture the first thing to pop up in logcat is:
V/FocusManager(20420): Start autofocus.
I/CameraHAL(  131): camera_auto_focus+++: device 0x19130
The camera continues to display to the screen then you get the ANR dialog and some more info in logcat. If you force close the camera continues to run in the background. When starting the camera app I see "E/QualcommCameraHardware( 131): AutoFocus is not supported" in logcat which could be why it's timing out during focus even though the camera does support autofocus.

The video orientation is not rotated correctly in the camera app. During startup you can see both cameras detected and one has "orientation=180". If I'm not mistaken cam ID 0 is the rear and cam ID 1 is the front. Can you make the rear camera rotate correctly or am I not identifying these correctly?

I have the full logcat and traces here:
http://mozzwald.homelinux.net/triumph/cam-logcat.txt
http://mozzwald.homelinux.net/triumph/cam-traces.txt

On a side note, is there an mtdev irc channel? I'm always on freenode and would be nice to toss ideas in a live environment instead of a forum.
Yeah, and it craps out after the focus too. I remade the camera app with the focus commented out and got a click.
Since then I haven't had time to look at anything. Not like ir really know what I'm doing. (I do appreciate the encouragement guys). If you entry, I can tell you what little I do know. PM me
dsmryder is offline  
Reply With Quote
Old February 7th, 2013, 02:27 PM   #464 (permalink)
Junior Member
 
mozzwald's Avatar
 
Join Date: Jul 2012
Location: Illinois, USA
Gender: Male
Posts: 15
 
Device(s): Motorola Triumph & Advent Vega
Carrier: Virgin Mobile

Thanks: 1
Thanked 5 Times in 5 Posts
Default

Quote:
Originally Posted by dsmryder View Post
Yeah, and it craps out after the focus too. I remade the camera app with the focus commented out and got a click.
Since then I haven't had time to look at anything. Not like ir really know what I'm doing. (I do appreciate the encouragement guys). If you entry, I can tell you what little I do know. PM me
It seems to stop when the autofocus call is sent to the camera. Do you have your remade camera app somewhere for download? I still haven't setup a build environment yet (other than kernel).

Quote:
Originally Posted by jhonka232 View Post
I've always wanted to join an MTDEV irc channel, as I am frequently on freenode as well. Unfortunately when I talked to G60 he said that he could not start one because his work blocks IRC communications and his phone didn't get good enough reception to use AndChat. Some of the best dev work I've done came form bouncing ideas in an IRC chatroom. If you want to start one, that would be cool. I can't promise I'd be on it 24/7 but I would definitely frequent it.
I jumped into an empty #mtdev channel on irc.freenode.net if anyone wants to join. There's a logbot there so you can read what happened while your gone (irc.freenode.net logfiles - www.mozzwald.com). Not sure if it works behind a firewall but there is a webchat for irc at freenode Web IRC (qwebirc)

To get around my firewall at work I ssh to my home linux server and always have irssi running.
mozzwald is online now  
Reply With Quote
Old February 7th, 2013, 04:16 PM   #465 (permalink)
ROM Developer
 
dsmryder's Avatar
 
Join Date: May 2011
Location: NE Florida
Posts: 1,883
 
Device(s): Motorola Triumph, running our MTDEV CM7.2.0
Carrier: VM of course

Thanks: 325
Thanked 383 Times in 274 Posts
Default

Quote:
Originally Posted by mozzwald View Post
It seems to stop when the autofocus call is sent to the camera. Do you have your remade camera app somewhere for download? I still haven't setup a build environment yet (other than kernel).



I jumped into an empty #mtdev channel on irc.freenode.net if anyone wants to join. There's a logbot there so you can read what happened while your gone (irc.freenode.net logfiles - www.mozzwald.com). Not sure if it works behind a firewall but there is a webchat for irc at freenode Web IRC (qwebirc)

To get around my firewall at work I ssh to my home linux server and always have irssi running.
If I have the app still I'll post it for you. I didn't commit the change as I just wanted to do the one thing. As far as IRC, I haven't done one before LOL I would have to look it up,
dsmryder is offline  
Reply With Quote
Old February 7th, 2013, 09:31 PM   #466 (permalink)
ROM Developer
 
dsmryder's Avatar
 
Join Date: May 2011
Location: NE Florida
Posts: 1,883
 
Device(s): Motorola Triumph, running our MTDEV CM7.2.0
Carrier: VM of course

Thanks: 325
Thanked 383 Times in 274 Posts
Default Camera app with no focus

Here it is.
Attached Files
File Type: apk Camera.apk (1.25 MB, 21 views)
dsmryder is offline  
Reply With Quote
Old February 13th, 2013, 01:36 AM   #467 (permalink)
ROM Developer
 
adamto's Avatar
 
Join Date: Nov 2012
Location: Rocky Mountain High
Gender: Male
Posts: 150
 
Device(s): Triumph $25 4life
Carrier: VM254L

Thanks: 41
Thanked 107 Times in 50 Posts
Default

Quote:
Originally Posted by mozzwald View Post
I installed CM9 to check out the camera status. Did some poking around and it seems that the camera may be crapping out at auto-focus. You can leave camera open all day and it will work fine, but when you click the button to take a picture the first thing to pop up in logcat is:
Auto focus was disabled at QualcommCameraHardware.cpp:759 (that false is an auto focus bool). I turned this on, and it's getting a bit further, still failing. It's getting into takePicture(), but is getting receive_camframe_error_timeout, which is coming from the blob.
adamto is offline  
Reply With Quote
The Following 3 Users Say Thank You to adamto For This Useful Post:
BSydz (February 13th, 2013), calitrippin (February 13th, 2013), dsmryder (February 13th, 2013)
Old February 13th, 2013, 03:01 AM   #468 (permalink)
Junior Member
 
mozzwald's Avatar
 
Join Date: Jul 2012
Location: Illinois, USA
Gender: Male
Posts: 15
 
Device(s): Motorola Triumph & Advent Vega
Carrier: Virgin Mobile

Thanks: 1
Thanked 5 Times in 5 Posts
Default

Quote:
Originally Posted by adamto View Post
Auto focus was disabled at QualcommCameraHardware.cpp:759 (that false is an auto focus bool). I turned this on, and it's getting a bit further, still failing. It's getting into takePicture(), but is getting receive_camframe_error_timeout, which is coming from the blob.
Tested this out tonight. It does try to autofocus (I can hear the camera focusing) then it will sit indefinitely until you touch the screen then it prompts to close the camera app. I previously tested dsmryder's camera.apk with focusing disabled and it would at least flash before trying to take picture. I made sure to turn on flash with this test and it does not flash after/during focusing.
mozzwald is online now  
Reply With Quote
The Following User Says Thank You to mozzwald For This Useful Post:
dsmryder (February 13th, 2013)
Old February 13th, 2013, 08:07 AM   #469 (permalink)
ROM Developer
 
dsmryder's Avatar
 
Join Date: May 2011
Location: NE Florida
Posts: 1,883
 
Device(s): Motorola Triumph, running our MTDEV CM7.2.0
Carrier: VM of course

Thanks: 325
Thanked 383 Times in 274 Posts
Default

Quote:
Originally Posted by adamto View Post
Auto focus was disabled at QualcommCameraHardware.cpp:759 (that false is an auto focus bool). I turned this on, and it's getting a bit further, still failing. It's getting into takePicture(), but is getting receive_camframe_error_timeout, which is coming from the blob.
Thanks guys. If I knew more about this I would have probably have seen this easily, sounds like you did. If there is anything I can do for you, let me know.
dsmryder is offline  
Reply With Quote
Old February 13th, 2013, 09:24 AM   #470 (permalink)
ROM Developer
 
BSydz's Avatar
 
Join Date: Mar 2012
Location: The Mitten
Posts: 830
 
Device(s): Motorola Triumph Sharpened, Samsung Intercept
Carrier: Not Provided

Thanks: 802
Thanked 751 Times in 306 Posts
Default

Quote:
Originally Posted by adamto View Post
Auto focus was disabled at QualcommCameraHardware.cpp:759 (that false is an auto focus bool). I turned this on, and it's getting a bit further, still failing. It's getting into takePicture(), but is getting receive_camframe_error_timeout, which is coming from the blob.
What are you talking about when you say "the blob"?
Quote:
Originally Posted by mozzwald View Post
Tested this out tonight. It does try to autofocus (I can hear the camera focusing) then it will sit indefinitely until you touch the screen then it prompts to close the camera app. I previously tested dsmryder's camera.apk with focusing disabled and it would at least flash before trying to take picture. I made sure to turn on flash with this test and it does not flash after/during focusing.
So are you guys, building the ROM or just the module? If you are building the ROM, you need to delete the libcamera.so and rename licamera2.so to libcamera.so. You will also want to put any changes from camerhal in to libcamera2, that is the libcamera2.so we build.

One thing I was working on was getting away from the htcoverlay and using a proper overlay.cpp and .h, but now for the life of me I can't figure out where I got the overlay files from, I think it was mantera. But when I use that overlay, the cameraHal has errors about being able to dequeue the buffer, but works just like with the htcoverlay.

Gotta go, just thought I would throw those couple things out there.
__________________
"If somethings in your way, you gotta move it or use it." - Me

If you would like to thank me, beyond just saying thanks, you can donate to my coffee fund to keep my eyes open.
Donate
BSydz is online now  
Reply With Quote
The Following User Says Thank You to BSydz For This Useful Post:
dsmryder (February 13th, 2013)
Sponsors
Old February 13th, 2013, 11:15 AM   #471 (permalink)
Junior Member
 
mozzwald's Avatar
 
Join Date: Jul 2012
Location: Illinois, USA
Gender: Male
Posts: 15
 
Device(s): Motorola Triumph & Advent Vega
Carrier: Virgin Mobile

Thanks: 1
Thanked 5 Times in 5 Posts
Default

Quote:
Originally Posted by BSydz View Post
What are you talking about when you say "the blob"?
A 'blob' is the proprietary precompiled drivers that interface with the hardware and is provided by the manufacturer.

Quote:
Originally Posted by BSydz View Post
So are you guys, building the ROM or just the module? If you are building the ROM, you need to delete the libcamera.so and rename licamera2.so to libcamera.so. You will also want to put any changes from camerhal in to libcamera2, that is the libcamera2.so we build.
I didn't know that needed to be done. Why don't we just replace libcamera sources with libcamera2? Or were you just trying to keep things separate until we find what works?

I notice now that there's several places where QualcommCameraHardware.cpp exists (hardware/qcom/camerahal, hardware/qcom/libcamera2, hardware/msm7k/libcamera) and there are some differences b/w the files. Are these all being built and used? Can we just symlink the files so there's only one copy that needs to be modified? Not sure if the compiler will complain about that.
mozzwald is online now  
Reply With Quote
The Following User Says Thank You to mozzwald For This Useful Post:
BSydz (February 14th, 2013)
Old February 13th, 2013, 12:29 PM   #472 (permalink)
ROM Developer
 
dsmryder's Avatar
 
Join Date: May 2011
Location: NE Florida
Posts: 1,883
 
Device(s): Motorola Triumph, running our MTDEV CM7.2.0
Carrier: VM of course

Thanks: 325
Thanked 383 Times in 274 Posts
Default

Quote:
Originally Posted by mozzwald View Post
A 'blob' is the proprietary precompiled drivers that interface with the hardware and is provided by the manufacturer.



I didn't know that needed to be done. Why don't we just replace libcamera sources with libcamera2? Or were you just trying to keep things separate until we find what works?

I notice now that there's several places where QualcommCameraHardware.cpp exists (hardware/qcom/camerahal, hardware/qcom/libcamera2, hardware/msm7k/libcamera) and there are some differences b/w the files. Are these all being built and used? Can we just symlink the files so there's only one copy that needs to be modified? Not sure if the compiler will complain about that.
Unless someone tells me not to, I'll make sure the libraries are the set wee used in CM7. I have already checked their dependencies so i know they are complete.
dsmryder is offline  
Reply With Quote
The Following User Says Thank You to dsmryder For This Useful Post:
BSydz (February 14th, 2013)
Old February 13th, 2013, 12:33 PM   #473 (permalink)
ROM Developer
 
adamto's Avatar
 
Join Date: Nov 2012
Location: Rocky Mountain High
Gender: Male
Posts: 150
 
Device(s): Triumph $25 4life
Carrier: VM254L

Thanks: 41
Thanked 107 Times in 50 Posts
Default

Quote:
Originally Posted by BSydz View Post
What are you talking about when you say "the blob"?

So are you guys, building the ROM or just the module? If you are building the ROM, you need to delete the libcamera.so and rename licamera2.so to libcamera.so. You will also want to put any changes from camerhal in to libcamera2, that is the libcamera2.so we build.

One thing I was working on was getting away from the htcoverlay and using a proper overlay.cpp and .h, but now for the life of me I can't figure out where I got the overlay files from, I think it was mantera. But when I use that overlay, the cameraHal has errors about being able to dequeue the buffer, but works just like with the htcoverlay.

Gotta go, just thought I would throw those couple things out there.
mozzwald is right, in our case the blob is liboemcamera.so. You will see in QualcommCameraHardware, this library is dlopen()ed and these LINK_* functions are the blob interface. I was trying to track this down a little bit, but couldn't figure this out: where did our liboemcamera.so come from? It may be important that it is in sync with the kernel camera code and QualcommCameraHardware. Do you know if what we have checked in for these three pieces is from the same place?

Ah I was wondering about libcamera.so/libcamera2.so. I was going to try the other one but ran out of time last night.

Hmm, don't know much about overlays yet. Is there a problem with the htcoverlay?
adamto is offline  
Reply With Quote
The Following User Says Thank You to adamto For This Useful Post:
BSydz (February 14th, 2013)
Old February 13th, 2013, 12:38 PM   #474 (permalink)
ROM Developer
 
adamto's Avatar
 
Join Date: Nov 2012
Location: Rocky Mountain High
Gender: Male
Posts: 150
 
Device(s): Triumph $25 4life
Carrier: VM254L

Thanks: 41
Thanked 107 Times in 50 Posts
Default

Quote:
Originally Posted by dsmryder View Post
Unless someone tells me not to, I'll make sure the libraries are the set wee used in CM7. I have already checked their dependencies so i know they are complete.
Just to make sure I understand, the cm9 kernel now has the original motorola camera code? If so, that makes sense, and also please check liboemcamera.so.
adamto is offline  
Reply With Quote
Old February 13th, 2013, 02:23 PM   #475 (permalink)
Junior Member
 
mozzwald's Avatar
 
Join Date: Jul 2012
Location: Illinois, USA
Gender: Male
Posts: 15
 
Device(s): Motorola Triumph & Advent Vega
Carrier: Virgin Mobile

Thanks: 1
Thanked 5 Times in 5 Posts
Default

I've tried both libcamera and libcamera2, tried the cm9, cm7, and stock liboemcamera.so. Same results with all. QualcommCameraHardware enters native_stop_video() and is getting hung up there (the ioctl is failing):




mozzwald is online now  
Reply With Quote
Old February 13th, 2013, 05:05 PM   #476 (permalink)
ROM Developer
 
dsmryder's Avatar
 
Join Date: May 2011
Location: NE Florida
Posts: 1,883
 
Device(s): Motorola Triumph, running our MTDEV CM7.2.0
Carrier: VM of course

Thanks: 325
Thanked 383 Times in 274 Posts
Default

Quote:
Originally Posted by adamto View Post
Just to make sure I understand, the cm9 kernel now has the original motorola camera code? If so, that makes sense, and also please check liboemcamera.so.
That's a question better answered by chairshot. I just know what leg work I have done. I think the libs come from the Sharp ROM. I'll see if I can find the commit. It's in the MTDEV-CM7 repo.
dsmryder is offline  
Reply With Quote
Old February 13th, 2013, 05:50 PM   #477 (permalink)
ROM Developer
 
BSydz's Avatar
 
Join Date: Mar 2012
Location: The Mitten
Posts: 830
 
Device(s): Motorola Triumph Sharpened, Samsung Intercept
Carrier: Not Provided

Thanks: 802
Thanked 751 Times in 306 Posts
Default

Quote:
Originally Posted by mozzwald View Post
A 'blob' is the proprietary precompiled drivers that interface with the hardware and is provided by the manufacturer.

I didn't know that needed to be done. Why don't we just replace libcamera sources with libcamera2? Or were you just trying to keep things separate until we find what works?

I notice now that there's several places where QualcommCameraHardware.cpp exists (hardware/qcom/camerahal, hardware/qcom/libcamera2, hardware/msm7k/libcamera) and there are some differences b/w the files. Are these all being built and used? Can we just symlink the files so there's only one copy that needs to be modified? Not sure if the compiler will complain about that.
Thanks, that's what I was leaning toward, hence my info about the libs. I didn't set it up or have ownership to the MTCM9 github, nor would I have had the knowledge. A more complete answer is below...
Quote:
Originally Posted by adamto View Post
mozzwald is right, in our case the blob is liboemcamera.so. You will see in QualcommCameraHardware, this library is dlopen()ed and these LINK_* functions are the blob interface. I was trying to track this down a little bit, but couldn't figure this out: where did our liboemcamera.so come from? It may be important that it is in sync with the kernel camera code and QualcommCameraHardware. Do you know if what we have checked in for these three pieces is from the same place?

Ah I was wondering about libcamera.so/libcamera2.so. I was going to try the other one but ran out of time last night.

Hmm, don't know much about overlays yet. Is there a problem with the htcoverlay?
As far as the htcoverlay and the regular overlay, it has to do with the gralloc, and how the camera and if we build it with the system, all display stuff works together, I think. In our board config file it has BOARD_USES_OVERLAY which is as flag in hardware/qcom/display, which is spelled wrong in the board config in the repository. the Overlay files should be located in frameworks/base/lib/ui/Overlay.cpp and frameworks/base/include/ui/Overlay.h, but it is not included in the source. Like I said, I am not sure myself. The camerhal folder has the two Overlay files and both folders have files with includes for htcOverlay.h in include/ui. Don't really know what I'm saying here, but just what I have seen.
Quote:
Originally Posted by dsmryder View Post
That's a question better answered by chairshot. I just know what leg work I have done. I think the libs come from the Sharp ROM. I'll see if I can find the commit. It's in the MTDEV-CM7 repo.
OK, I just looked and the HP Touchpad runs the 2.6.35.? kernel, so that makes sense that the lib only works with the 2.6.35.7 kernel cam files. Dorrey is the one who got the camera working on the TP, and he wrote the code for the cameraHal and libcamera2, and once G60 pointed me to a booting 2.6.35.7 kernel, I found that the camera worked(like it does now), but the kernel reboots every minute or two like clockwork. So I took all the camera stuff from that kernel and put it in to the kernel that was currently being used. Now, as for the libcameras, I had no part of setting that up, that is just the way it was. I am pretty sure that the libcamera.so is a prebuilt, but from which ROM, I have no idea. I just compared the files and it is not the Sharp 2.3.5 files, or the Cherry Magnum. You know what, I just compared them to all the variants even stock and they do not match. I have no idea where they came from.

EDIT: It does seem that most of the files in vendor/proprietary are from the Cherry magnum ROM except liba2dp, libaudio, libcamera, libdiag, liboemcamera, 7 libomx files, and the 3 ril files, as far as .so files.
BSydz is online now  
Last edited by BSydz; February 13th, 2013 at 06:03 PM.
Reply With Quote
Old February 13th, 2013, 07:40 PM   #478 (permalink)
ROM Developer
 
dsmryder's Avatar
 
Join Date: May 2011
Location: NE Florida
Posts: 1,883
 
Device(s): Motorola Triumph, running our MTDEV CM7.2.0
Carrier: VM of course

Thanks: 325
Thanked 383 Times in 274 Posts
Default

BSidz, I add you to the CM9 owners.

adamto, I don't know your github info. If you get me your info I can add you too.
dsmryder is offline  
Reply With Quote
The Following User Says Thank You to dsmryder For This Useful Post:
BSydz (February 13th, 2013)
Old February 14th, 2013, 12:17 AM   #479 (permalink)
ROM Developer
 
dsmryder's Avatar
 
Join Date: May 2011
Location: NE Florida
Posts: 1,883
 
Device(s): Motorola Triumph, running our MTDEV CM7.2.0
Carrier: VM of course

Thanks: 325
Thanked 383 Times in 274 Posts
Default

I just pushed the files to a dsmryder branch. I also pushed a couple of changes in the device files. You can decide if you want to use them.
dsmryder is offline  
Reply With Quote
The Following User Says Thank You to dsmryder For This Useful Post:
BSydz (February 14th, 2013)
Old February 14th, 2013, 12:19 AM   #480 (permalink)
ROM Developer
 
adamto's Avatar
 
Join Date: Nov 2012
Location: Rocky Mountain High
Gender: Male
Posts: 150
 
Device(s): Triumph $25 4life
Carrier: VM254L

Thanks: 41
Thanked 107 Times in 50 Posts
Default

Quote:
Originally Posted by mozzwald View Post
I've tried both libcamera and libcamera2, tried the cm9, cm7, and stock liboemcamera.so. Same results with all. QualcommCameraHardware enters native_stop_video() and is getting hung up there (the ioctl is failing):
Upon closer inspection, it is actually failing quite a bit earlier:

V/QualcommCameraHardware( 131): Calling CAMERA_START_VIDEO
I/QualcommCameraHardware( 131): native_start_video : E
D/QualcommCameraHardware( 131): frame_thread E
V/QualcommCameraHardware( 131): getInstance E
V/QualcommCameraHardware( 131): runFrameThread E
V/QualcommCameraHardware( 131): runFrameThread, libmmcamera: 0x7000f050
V/QualcommCameraHardware( 131): before LINK_cam_frame, data: 0x2ba2b104

And the frame thread hangs there, presumably causing the later errors.
adamto is offline  
Reply With Quote
The Following User Says Thank You to adamto For This Useful Post:
BSydz (February 14th, 2013)
Sponsors
Old February 14th, 2013, 10:12 AM   #481 (permalink)
ROM Developer
 
dsmryder's Avatar
 
Join Date: May 2011
Location: NE Florida
Posts: 1,883
 
Device(s): Motorola Triumph, running our MTDEV CM7.2.0
Carrier: VM of course

Thanks: 325
Thanked 383 Times in 274 Posts
Default

Quote:
Originally Posted by adamto View Post
Upon closer inspection, it is actually failing quite a bit earlier:

V/QualcommCameraHardware( 131): Calling CAMERA_START_VIDEO
I/QualcommCameraHardware( 131): native_start_video : E
D/QualcommCameraHardware( 131): frame_thread E
V/QualcommCameraHardware( 131): getInstance E
V/QualcommCameraHardware( 131): runFrameThread E
V/QualcommCameraHardware( 131): runFrameThread, libmmcamera: 0x7000f050
V/QualcommCameraHardware( 131): before LINK_cam_frame, data: 0x2ba2b104

And the frame thread hangs there, presumably causing the later errors.
I bet that's why the camera orientation is wrong. If you feel froggy, try it with Action Snap. Or panarama. Both of those have the proper orientation.
dsmryder is offline  
Reply With Quote
Old February 14th, 2013, 12:59 PM   #482 (permalink)
ROM Developer
 
BSydz's Avatar
 
Join Date: Mar 2012
Location: The Mitten
Posts: 830
 
Device(s): Motorola Triumph Sharpened, Samsung Intercept
Carrier: Not Provided

Thanks: 802
Thanked 751 Times in 306 Posts
Default

What's up guys? I have some info and some questions.

First, my questions.

So our basic goal is to get liboemcamera.so to work with our QualcommCameraHardware files, correct?

If we are using the 2.6.35.7 kernel camera files, should we be using the Sharp 2.3.5 camera drivers? One issue is that all of our Variants except the Sharp 2.3.5 us 2GVMSPLIT and 2.3.5 uses 3GVMSPLIT. After doing some research, it seems that using files from a 3G split can cause issues when used with a 2G split kernel and system. Issues involve, if I remember correctly, restarts, random crashes and other odd tidbits, caused by the way the driver calls memory. On a side note, while looking through isaac's commits, when he was working on MIUI he was running the kernel as 3GVMSPLIT cause the system he ported from was built using 3G split. That makes me wonder why we haven't been building our kernel and system that way.

Info: There is a line in device/motorola/triumph/BoardConfig.mk and in our kernel triumph_defconfig, for the VMSPLIT.

We have four choices of camera setups for the kernel, as far as actual driver files and setups in the board.7x30 file, 2.6.35.7, M410, Stock & U8850. I know we have to keep all the generic kernel stuff from 2.6.35.7, for the code we have now, but I have the same results with any of the driver files. I have been using the drivers from the U8850 kernel, the differences are fairly subtle, but it uses a full scan auto focus, that was added after the M410 kernel was released.

Between the 2.6.35.7 kernel and our old kernel there are quuite a few differences:





When I use the kernel that I updated all the camera stuff from 3.0.8, the cameras load fine, according to dmesg, but I get segfaults with QualcommCameraHardware like before the 2.6.35.7 updates. So this also leads me to the QualcommCameraHardware files.


For any files that you may want to look at from the X6 variants, you can find them here [DEV] BSydz Triumph X6 Port Encylopedia

I just wanted to get this info out there, as I hope it is useful. I wish I knew more about the code and how it all works together, I am becoming more familiar but I'm not quite there yet. Sorry for the rambling, I have so much stuff running around my skull and don't quite understand some of it. So feel free to ask any questions you might have, I've been all through the code am familiar with most of it. Also, any info is always appreciated.
BSydz is online now  
Reply With Quote
The Following 2 Users Say Thank You to BSydz For This Useful Post:
adamto (February 14th, 2013), calitrippin (February 14th, 2013)
Old February 14th, 2013, 01:12 PM   #483 (permalink)
ROM Developer
 
dsmryder's Avatar
 
Join Date: May 2011
Location: NE Florida
Posts: 1,883
 
Device(s): Motorola Triumph, running our MTDEV CM7.2.0
Carrier: VM of course

Thanks: 325
Thanked 383 Times in 274 Posts
Default

Quote:
Originally Posted by BSydz View Post
What's up guys? I have some info and some questions.

First, my questions.

So our basic goal is to get liboemcamera.so to work with our QualcommCameraHardware files, correct?

If we are using the 2.6.35.7 kernel camera files, should we be using the Sharp 2.3.5 camera drivers? One issue is that all of our Variants except the Sharp 2.3.5 us 2GVMSPLIT and 2.3.5 uses 3GVMSPLIT. After doing some research, it seems that using files from a 3G split can cause issues when used with a 2G split kernel and system. Issues involve, if I remember correctly, restarts, random crashes and other odd tidbits, caused by the way the driver calls memory. On a side note, while looking through isaac's commits, when he was working on MIUI he was running the kernel as 3GVMSPLIT cause the system he ported from was built using 3G split. That makes me wonder why we haven't been building our kernel and system that way.

Info: There is a line in device/motorola/triumph/BoardConfig.mk and in our kernel triumph_defconfig, for the VMSPLIT.

We have four choices of camera setups for the kernel, as far as actual driver files and setups in the board.7x30 file, 2.6.35.7, M410, Stock & U8850. I know we have to keep all the generic kernel stuff from 2.6.35.7, for the code we have now, but I have the same results with any of the driver files. I have been using the drivers from the U8850 kernel, the differences are fairly subtle, but it uses a full scan auto focus, that was added after the M410 kernel was released.

Between the 2.6.35.7 kernel and our old kernel there are quuite a few differences:





When I use the kernel that I updated all the camera stuff from 3.0.8, the cameras load fine, according to dmesg, but I get segfaults with QualcommCameraHardware like before the 2.6.35.7 updates. So this also leads me to the QualcommCameraHardware files.


For any files that you may want to look at from the X6 variants, you can find them here [DEV] BSydz Triumph X6 Port Encylopedia

I just wanted to get this info out there, as I hope it is useful. I wish I knew more about the code and how it all works together, I am becoming more familiar but I'm not quite there yet. Sorry for the rambling, I have so much stuff running around my skull and don't quite understand some of it. So feel free to ask any questions you might have, I've been all through the code am familiar with most of it. Also, any info is always appreciated.
When I get home I'll see where the camera libraries I copied over came from. I'm pretty sure I know it's in the CM7 thread just a couple of pages back.
dsmryder is offline  
Reply With Quote
The Following User Says Thank You to dsmryder For This Useful Post:
BSydz (February 14th, 2013)
Old February 14th, 2013, 01:28 PM   #484 (permalink)
ROM Developer
 
adamto's Avatar
 
Join Date: Nov 2012
Location: Rocky Mountain High
Gender: Male
Posts: 150
 
Device(s): Triumph $25 4life
Carrier: VM254L

Thanks: 41
Thanked 107 Times in 50 Posts
Default

Quote:
Originally Posted by BSydz View Post
What's up guys? I have some info and some questions.

First, my questions.

So our basic goal is to get liboemcamera.so to work with our QualcommCameraHardware files, correct?

If we are using the 2.6.35.7 kernel camera files, should we be using the Sharp 2.3.5 camera drivers? One issue is that all of our Variants except the Sharp 2.3.5 us 2GVMSPLIT and 2.3.5 uses 3GVMSPLIT. After doing some research, it seems that using files from a 3G split can cause issues when used with a 2G split kernel and system. Issues involve, if I remember correctly, restarts, random crashes and other odd tidbits, caused by the way the driver calls memory. On a side note, while looking through isaac's commits, when he was working on MIUI he was running the kernel as 3GVMSPLIT cause the system he ported from was built using 3G split. That makes me wonder why we haven't been building our kernel and system that way.

Info: There is a line in device/motorola/triumph/BoardConfig.mk and in our kernel triumph_defconfig, for the VMSPLIT.

We have four choices of camera setups for the kernel, as far as actual driver files and setups in the board.7x30 file, 2.6.35.7, M410, Stock & U8850. I know we have to keep all the generic kernel stuff from 2.6.35.7, for the code we have now, but I have the same results with any of the driver files. I have been using the drivers from the U8850 kernel, the differences are fairly subtle, but it uses a full scan auto focus, that was added after the M410 kernel was released.

Between the 2.6.35.7 kernel and our old kernel there are quuite a few differences:





When I use the kernel that I updated all the camera stuff from 3.0.8, the cameras load fine, according to dmesg, but I get segfaults with QualcommCameraHardware like before the 2.6.35.7 updates. So this also leads me to the QualcommCameraHardware files.


For any files that you may want to look at from the X6 variants, you can find them here [DEV] BSydz Triumph X6 Port Encylopedia

I just wanted to get this info out there, as I hope it is useful. I wish I knew more about the code and how it all works together, I am becoming more familiar but I'm not quite there yet. Sorry for the rambling, I have so much stuff running around my skull and don't quite understand some of it. So feel free to ask any questions you might have, I've been all through the code am familiar with most of it. Also, any info is always appreciated.
This is exactly the sort of thing I wanted to track down, thanks a bunch. I'll take a closer look after work.
adamto is offline  
Last edited by adamto; February 14th, 2013 at 01:38 PM.
Reply With Quote
The Following User Says Thank You to adamto For This Useful Post:
BSydz (February 14th, 2013)
Old February 14th, 2013, 03:08 PM   #485 (permalink)
ROM Developer
 
BSydz's Avatar
 
Join Date: Mar 2012
Location: The Mitten
Posts: 830
 
Device(s): Motorola Triumph Sharpened, Samsung Intercept
Carrier: Not Provided

Thanks: 802
Thanked 751 Times in 306 Posts
Default

OK, so after pulling the strings from the Sharp 2.3.5 liboemcamera.so, and comparing it to the Cherry liboemcamera.so, it looks like alot of the differences between kernel files is showing up. I think we need to see if the files from the Sharp 2.3.5 work, I'll throw them in and test them out, but it makes it a little clearer also what needs to be changed in the cameraHal. Good luck everybody.
BSydz is online now  
Reply With Quote
Old February 14th, 2013, 05:09 PM   #486 (permalink)
ROM Developer
 
dsmryder's Avatar
 
Join Date: May 2011
Location: NE Florida
Posts: 1,883
 
Device(s): Motorola Triumph, running our MTDEV CM7.2.0
Carrier: VM of course

Thanks: 325
Thanked 383 Times in 274 Posts
Default

Quote:
Originally Posted by BSydz View Post
OK, so after pulling the strings from the Sharp 2.3.5 liboemcamera.so, and comparing it to the Cherry liboemcamera.so, it looks like alot of the differences between kernel files is showing up. I think we need to see if the files from the Sharp 2.3.5 work, I'll throw them in and test them out, but it makes it a little clearer also what needs to be changed in the cameraHal. Good luck everybody.
From a "github" sort of way, it may be wise to have a running set of folders with the blobs organized as nessacery.
i.e. Sharp_camera, stock_media...
dsmryder is offline  
Reply With Quote
Old February 14th, 2013, 06:18 PM   #487 (permalink)
Member
 
Join Date: Jul 2012
Location: Detroit, MI
Gender: Male
Posts: 109
 
Device(s): Motorola Triumph
Carrier: Not Provided

Thanks: 62
Thanked 38 Times in 34 Posts
Default

Good to see progress is still being made with the came, thanks guys
jhonka232 is offline  
Reply With Quote
Old February 14th, 2013, 10:33 PM   #488 (permalink)
ROM Developer
 
dsmryder's Avatar
 
Join Date: May 2011
Location: NE Florida
Posts: 1,883
 
Device(s): Motorola Triumph, running our MTDEV CM7.2.0
Carrier: VM of course

Thanks: 325
Thanked 383 Times in 274 Posts
Default

OK guys, I have pused up the .so files from some of the varients. They are now a part of the vendor tree under my branch. I haven't done any dependancy research yet, and won't even try until this week end. This will get you started and I hope will remove some confusion as to where the files came from. I haven't found the Cherry Mobile Magnum files yet. I'm going to try for tomorrow. As well the other varients.
dsmryder is offline  
Reply With Quote
Old February 15th, 2013, 02:48 AM   #489 (permalink)
ROM Developer
 
BSydz's Avatar
 
Join Date: Mar 2012
Location: The Mitten
Posts: 830
 
Device(s): Motorola Triumph Sharpened, Samsung Intercept
Carrier: Not Provided

Thanks: 802
Thanked 751 Times in 306 Posts
Default

Quote:
Originally Posted by adamto View Post
Hmm, don't know much about overlays yet. Is there a problem with the htcoverlay?
Quote:
Originally Posted by BSydz View Post
As far as the htcoverlay and the regular overlay, it has to do with the gralloc, and how the camera and if we build it with the system, all display stuff works together, I think. In our board config file it has BOARD_USES_OVERLAY which is as flag in hardware/qcom/display, which is spelled wrong in the board config in the repository. the Overlay files should be located in frameworks/base/lib/ui/Overlay.cpp and frameworks/base/include/ui/Overlay.h, but it is not included in the source. Like I said, I am not sure myself. The camerhal folder has the two Overlay files and both folders have files with includes for htcOverlay.h in include/ui. Don't really know what I'm saying here, but just what I have seen.
This is the commit that I think I found the overlay files from or they were in a old CM9 I had on disk, https://github.com/mantera/android_frameworks_base/commit/fddc476754423c00b537e411f5f007d765f5872b


This is some info about some camera changes made in frameworks. On a side note, I am not using our frameworks base for PA, I only incorporated the ril, headset and one or two other small fixes. https://github.com/mantera/android_frameworks_base/commit/2bf9844dae4d70dab052ef426d010a4bd7a107cd
BSydz is online now  
Reply With Quote
Old February 16th, 2013, 01:23 PM   #490 (permalink)
ROM Developer
 
BSydz's Avatar
 
Join Date: Mar 2012
Location: The Mitten
Posts: 830
 
Device(s): Motorola Triumph Sharpened, Samsung Intercept
Carrier: Not Provided

Thanks: 802
Thanked 751 Times in 306 Posts
Default

So while messing with some camera apps, I found "Camera Mod for Xperia PLAY" and while it doesn't take pics it does show the orientation correctly and it switches orientation when you switch cameras, even though it doesn't switch. It also gives some different errors to look at.

It also shows no options for flash and what not when on the back camera, but when you switch to front camera it has the wrong orientation but options for flash. This leads me to believe that the cameras are loading backwards. And also the front cam settings aren't being applied, the back camera settings are being applied to the front camera. This may be due to the back camera loading as the front camera, but you would think that the settings would be swapped and one would be the front cam settings.

So how do we get the proper camera to be loaded? I know there is a flag for front facing camera first or something similar, but I have had that enabled in a few builds and it never seemed to do anything.
BSydz is online now  
Reply With Quote
Sponsors
Old February 16th, 2013, 01:38 PM   #491 (permalink)
Senior Member
 
rukin5197's Avatar
 
Join Date: Sep 2011
Location: Kentucky
Posts: 622
 
Device(s): OV- MIUIgb with Suave HD theme, MT- AOKP with my own theme
Carrier: Not Provided

Thanks: 102
Thanked 507 Times in 185 Posts
gannon050197@gmail.com
Default

Quote:
Originally Posted by BSydz View Post
So while messing with some camera apps, I found "Camera Mod for Xperia PLAY" and while it doesn't take pics it does show the orientation correctly and it switches orientation when you switch cameras, even though it doesn't switch. It also gives some different errors to look at.

It also shows no options for flash and what not when on the back camera, but when you switch to front camera it has the wrong orientation but options for flash. This leads me to believe that the cameras are loading backwards. And also the front cam settings aren't being applied, the back camera settings are being applied to the front camera. This may be due to the back camera loading as the front camera, but you would think that the settings would be swapped and one would be the front cam settings.

So how do we get the proper camera to be loaded? I know there is a flag for front facing camera first or something similar, but I have had that enabled in a few builds and it never seemed to do anything.
I do know that tjstyle has got issues with FFC orientation on the Huawei Ideos X6 (our brother device). This kind of proves this point
rukin5197 is offline  
Reply With Quote
Old February 16th, 2013, 01:39 PM   #492 (permalink)
Member
 
RolaAddict's Avatar
 
Join Date: Apr 2012
Location: Virginia
Gender: Male
Posts: 489
 
Device(s): Motorola Triumph (BSydz build testers ICS/JB)
Carrier: Virgin Mobile....unfortunately

Thanks: 149
Thanked 100 Times in 85 Posts
Default

Quote:
Originally Posted by BSydz View Post
So while messing with some camera apps, I found "Camera Mod for Xperia PLAY" and while it doesn't take pics it does show the orientation correctly and it switches orientation when you switch cameras, even though it doesn't switch. It also gives some different errors to look at.

It also shows no options for flash and what not when on the back camera, but when you switch to front camera it has the wrong orientation but options for flash. This leads me to believe that the cameras are loading backwards. And also the front cam settings aren't being applied, the back camera settings are being applied to the front camera. This may be due to the back camera loading as the front camera, but you would think that the settings would be swapped and one would be the front cam settings.

So how do we get the proper camera to be loaded? I know there is a flag for front facing camera first or something similar, but I have had that enabled in a few builds and it never seemed to do anything.
Well that explains why the resolution for the camera is so poor.Would there be something in the cameraHAL code that would fix that?I have no clue on how to do any DEV stuff but it would seem that if the cameras are loading backwards it would have to be in the code right?
RolaAddict is offline  
Reply With Quote
Old February 16th, 2013, 03:48 PM   #493 (permalink)
ROM Developer
 
dsmryder's Avatar
 
Join Date: May 2011
Location: NE Florida
Posts: 1,883
 
Device(s): Motorola Triumph, running our MTDEV CM7.2.0
Carrier: VM of course

Thanks: 325
Thanked 383 Times in 274 Posts
Default

Quote:
Originally Posted by RolaAddict View Post
Well that explains why the resolution for the camera is so poor.Would there be something in the cameraHAL code that would fix that?I have no clue on how to do any DEV stuff but it would seem that if the cameras are loading backwards it would have to be in the code right?
Yeah, I would think it would be in the kernel as that detects the devices first. I know action snap has things better. I think the camera that it opens to is correct. If I remember correctly it show a resolution that's 5M and down from there.
dsmryder is offline  
Reply With Quote
Old February 16th, 2013, 07:11 PM   #494 (permalink)
ROM Developer
 
BSydz's Avatar
 
Join Date: Mar 2012
Location: The Mitten
Posts: 830
 
Device(s): Motorola Triumph Sharpened, Samsung Intercept
Carrier: Not Provided

Thanks: 802
Thanked 751 Times in 306 Posts
Default

Quote:
Originally Posted by dsmryder View Post
Yeah, I would think it would be in the kernel as that detects the devices first. I know action snap has things better. I think the camera that it opens to is correct. If I remember correctly it show a resolution that's 5M and down from there.
That was my point, both cameras show 5MP but only one will allow flash and more advanced options.The kernel is working properly, the kernel logs are identical to the Cherry ROM. The driver was written for the HP Touchpad and there are lines in the cameraHal like "/*Disable auto focus on touchpad */" and others. I see lines added for 5mp_triumph in QualcommCameraHardware.cpp, those are the lines in the log that say "blah is not supported by this sensor". There are also lines like "Don't know the AEC_ROI_* values " in setTouchAFAec, followed by TouchAFAec is not supported by this sensor. Makes me wonder if it is or not, like was the line put there just to get by.

Here are the HP cam specs:
Camera Primary 1.3 MP, 1280 x 1024 pixels
Features Video-calling
Video No
Secondary No

So, I guess one of us needs to get in contact with Dorrey, and figure out what flags we need to have set in the boardconfig to use both cameras, if there are any.
BSydz is online now  
Reply With Quote
Old February 16th, 2013, 08:11 PM   #495 (permalink)
Member
 
RolaAddict's Avatar
 
Join Date: Apr 2012
Location: Virginia
Gender: Male
Posts: 489
 
Device(s): Motorola Triumph (BSydz build testers ICS/JB)
Carrier: Virgin Mobile....unfortunately

Thanks: 149
Thanked 100 Times in 85 Posts
Default

Quote:
Originally Posted by BSydz View Post
So, I guess one of us needs to get in contact with Dorrey, and figure out what flags we need to have set in the boardconfig to use both cameras, if there are any.
I would do it if I knew the guy.
RolaAddict is offline  
Reply With Quote
Old February 16th, 2013, 08:11 PM   #496 (permalink)
ROM Developer
 
dsmryder's Avatar
 
Join Date: May 2011
Location: NE Florida
Posts: 1,883
 
Device(s): Motorola Triumph, running our MTDEV CM7.2.0
Carrier: VM of course

Thanks: 325
Thanked 383 Times in 274 Posts
Default

Quote:
Originally Posted by BSydz View Post
That was my point, both cameras show 5MP but only one will allow flash and more advanced options.The kernel is working properly, the kernel logs are identical to the Cherry ROM. The driver was written for the HP Touchpad and there are lines in the cameraHal like "/*Disable auto focus on touchpad */" and others. I see lines added for 5mp_triumph in QualcommCameraHardware.cpp, those are the lines in the log that say "blah is not supported by this sensor". There are also lines like "Don't know the AEC_ROI_* values " in setTouchAFAec, followed by TouchAFAec is not supported by this sensor. Makes me wonder if it is or not, like was the line put there just to get by.

Here are the HP cam specs:
Camera Primary 1.3 MP, 1280 x 1024 pixels
Features Video-calling
Video No
Secondary No

So, I guess one of us needs to get in contact with Dorrey, and figure out what flags we need to have set in the boardconfig to use both cameras, if there are any.
Going by what you said. I am looking at the board configuration for CM7 and CM9. CM7 uses
Code:
BOARD_CAMERA_USE_GETBUFFERINFO := true
Where CM9 uses
Code:
BOARD_USES_HTC_CAMERA := true
When this build finnishes I am going to try and swap then and just see what happens.
dsmryder is offline  
Reply With Quote
Old February 16th, 2013, 09:01 PM   #497 (permalink)
ROM Developer
 
BSydz's Avatar
 
Join Date: Mar 2012
Location: The Mitten
Posts: 830
 
Device(s): Motorola Triumph Sharpened, Samsung Intercept
Carrier: Not Provided

Thanks: 802
Thanked 751 Times in 306 Posts
Default

I just finished an experimental build that flashes the flash and shows the saved picture and then errors out at the jpeg encoder. It only shows having one camera, but it is getting somewhere. It also fixes rotation after switching picture quality, but is mirrored. Panorama doesn't work either. Now I just need to figure out what helped and what didn't.

I figure I will post it if some people want to tinker and check out other apps and stuff.

pa_triumph-1.6a-16FEB2013-Cam-Experiment
jhonka232 likes this.
BSydz is online now  
Reply With Quote
The Following 3 Users Say Thank You to BSydz For This Useful Post:
ecarlson (February 16th, 2013), jhonka232 (February 16th, 2013), keisukehonda (February 17th, 2013)
Old February 16th, 2013, 09:49 PM   #498 (permalink)
ROM Developer
 
dsmryder's Avatar
 
Join Date: May 2011
Location: NE Florida
Posts: 1,883
 
Device(s): Motorola Triumph, running our MTDEV CM7.2.0
Carrier: VM of course

Thanks: 325
Thanked 383 Times in 274 Posts
Default

Quote:
Originally Posted by dsmryder View Post
Going by what you said. I am looking at the board configuration for CM7 and CM9. CM7 uses
Code:
BOARD_CAMERA_USE_GETBUFFERINFO := true
Where CM9 uses
Code:
BOARD_USES_HTC_CAMERA := true
When this build finnishes I am going to try and swap then and just see what happens.
I gave the line a swap and it stopped the build. And it seem that you may be on to something anyway. I'm tryng something else before I go to bed.
jhonka232 likes this.
dsmryder is offline  
Reply With Quote
The Following 4 Users Say Thank You to dsmryder For This Useful Post:
arcticfix (February 16th, 2013), calitrippin (February 16th, 2013), ecarlson (February 16th, 2013), jhonka232 (February 16th, 2013)
Old February 17th, 2013, 09:42 AM   #499 (permalink)
ROM Developer
 
BSydz's Avatar
 
Join Date: Mar 2012
Location: The Mitten
Posts: 830
 
Device(s): Motorola Triumph Sharpened, Samsung Intercept
Carrier: Not Provided

Thanks: 802
Thanked 751 Times in 306 Posts
Default

Quote:
Originally Posted by dsmryder View Post
Going by what you said. I am looking at the board configuration for CM7 and CM9. CM7 uses
Code:
BOARD_CAMERA_USE_GETBUFFERINFO := true
Where CM9 uses
Code:
BOARD_USES_HTC_CAMERA := true
When this build finnishes I am going to try and swap then and just see what happens.
Quote:
Originally Posted by dsmryder View Post
I gave the line a swap and it stopped the build. And it seem that you may be on to something anyway. I'm tryng something else before I go to bed.
I don't know why it would stop the build, I had htc commented out and get buffer added in. But I also had the overlay from mantera in the frameworks. I just pushed my device files for PA, check out the BoardConfig in the Experimental branch.
BSydz is online now  
Reply With Quote
Old February 17th, 2013, 11:28 AM   #500 (permalink)
Junior Member
 
mozzwald's Avatar
 
Join Date: Jul 2012
Location: Illinois, USA
Gender: Male
Posts: 15
 
Device(s): Motorola Triumph & Advent Vega
Carrier: Virgin Mobile

Thanks: 1
Thanked 5 Times in 5 Posts
Default

Quote:
Originally Posted by dsmryder View Post
I gave the line a swap and it stopped the build. And it seem that you may be on to something anyway. I'm tryng something else before I go to bed.
I removed the HTC line and it still compiled over here.

While poking around in cameraHALL.cpp I see a few references to "BOARD_USE_FROYO_LIBCAMERA". We are using the libcamera from Froyo, correct? Maybe enabling this will help.

#if defined(BOARD_USE_FROYO_LIBCAMERA)
#ifndef FIRST_CAMERA_FACING
#define FIRST_CAMERA_FACING CAMERA_FACING_BACK
#endif
#ifndef FIRST_CAMERA_ORIENTATION
#define FIRST_CAMERA_ORIENTATION 90
#endif
static const CameraInfo sCameraInfo[] = {
    {
        FIRST_CAMERA_FACING,
        FIRST_CAMERA_ORIENTATION,  /* orientation */
        1, /* CAMERA_MODE_2D */
    },
    {
        CAMERA_FACING_FRONT,
        270, /* orientation */
        1, /* CAMERA_MODE_2D */
    }
};
#endif
mozzwald is online now  
Reply With Quote
Reply


Go Back   Android Forums > Android Phones > Motorola Triumph > Triumph - All Things Root
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 06:59 PM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.