Post Reply

[WIP] - ICS Camera HAL for 2.6 kernel

OP rapmv78

4th January 2012, 08:39 AM   |  #11  
OP Senior Member
Thanks Meter: 799
 
113 posts
Join Date:Joined: May 2010
Donate to Me
Quote:
Originally Posted by twistedumbrella

Is the code specific to qsd8 or just a generic wrapper function? On most "newer" devices you are looking at msm7x30, but generic qsd8 code, much like the gralloc, would still work with a rename.

Sent from my ADR6400L using Tapatalk

It is just a wrapper, but is dynamically linked with the libcamera.so file. So, if kernel change does not change structs and constants, things will work fine with a rename as you suggest. Otherwise it will not.
The Following 3 Users Say Thank You to rapmv78 For This Useful Post: [ View ]
4th January 2012, 08:43 AM   |  #12  
imfloflo's Avatar
Senior Moderator
Flag Guyancourt/Clermont-Ferrand, France
Thanks Meter: 800
 
2,997 posts
Join Date:Joined: Apr 2007
Donate to Me
More
Maybe you should ask @charnsingh_online help for video, as he already works on 720p for N1
4th January 2012, 08:48 AM   |  #13  
twistedumbrella's Avatar
Recognized Developer
Thanks Meter: 6,358
 
6,312 posts
Join Date:Joined: Sep 2007
More
Quote:
Originally Posted by rapmv78

It is just a wrapper, but is dynamically linked with the libcamera.so file. So, if kernel change does not change structs and constants, things will work fine with a rename as you suggest. Otherwise it will not.

So what were the kernel changes?
4th January 2012, 08:50 AM   |  #14  
OP Senior Member
Thanks Meter: 799
 
113 posts
Join Date:Joined: May 2010
Donate to Me
Quote:
Originally Posted by twistedumbrella

So what were the kernel changes?

There are none in this hal, that is why it works. What I was intending to say was that if MSMx30 kernel uses different size structs/constants it will not work.
The Following 2 Users Say Thank You to rapmv78 For This Useful Post: [ View ]
4th January 2012, 08:54 AM   |  #15  
twistedumbrella's Avatar
Recognized Developer
Thanks Meter: 6,358
 
6,312 posts
Join Date:Joined: Sep 2007
More
Quote:
Originally Posted by rapmv78

There are none in this hal, that is why it works. What I was intending to say was that if MSMx30 kernel uses different size structs/constants it will not work.

That is why I asked if it was generic code or specialized to qsd8. If the kernel code was not edited, that will be irrelevant because the source is not built (at least not by anyone other than CAF) using an inline kernel.
4th January 2012, 09:02 AM   |  #16  
OP Senior Member
Thanks Meter: 799
 
113 posts
Join Date:Joined: May 2010
Donate to Me
Quote:
Originally Posted by twistedumbrella

That is why I asked if it was generic code or specialized to qsd8. If the kernel code was not edited, that will be irrelevant because the source is not built (at least not by anyone other than CAF) using an inline kernel.

The hal code itself is generic, but it depends on libcamera.so, which inturn depends on kernel structs and constants to match the running kernel for successful control ioctls/pmem etc.
The Following 2 Users Say Thank You to rapmv78 For This Useful Post: [ View ]
4th January 2012, 09:36 AM   |  #17  
Senior Member
Flag Perth
Thanks Meter: 74
 
195 posts
Join Date:Joined: Dec 2008
More
Can confirm this works on HTC Desire exactly as mentioned in OP.

Sent from my HTC Desire using XDA App
The Following 2 Users Say Thank You to guy_smiley For This Useful Post: [ View ]
4th January 2012, 10:20 AM   |  #18  
Junior Member
Thanks Meter: 1
 
14 posts
Join Date:Joined: Feb 2010
Question
I tried it with (Texas)Ice ICS ROM and network not work. Failed to load driver! Need flash another kernel?
4th January 2012, 10:52 AM   |  #19  
mulerokeh's Avatar
Senior Member
Flag Jakarta
Thanks Meter: 18
 
142 posts
Join Date:Joined: Apr 2010
More
Quote:
Originally Posted by sucon

I tried it with (Texas)Ice ICS ROM and network not work. Failed to load driver! Need flash another kernel?

it works for me, but sometimes not responding after take 2 or 3 photos..
but great work!!

Sent from my Nexus One using xda premium
4th January 2012, 10:52 AM   |  #20  
munnition's Avatar
Member
Flag Duisburg
Thanks Meter: 14
 
56 posts
Join Date:Joined: Dec 2010
More
Quote:
Originally Posted by sucon

I tried it with (Texas)Ice ICS ROM and network not work. Failed to load driver! Need flash another kernel?

Works both fine with texasice ICS!

Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes