5,605,438 Members 42,698 Now Online
XDA Developers Android and Mobile Development Forum

[WIP] - ICS Camera HAL for 2.6 kernel

Tip us?
 
rapmv78
Old
#11  
Senior Member - OP
Thanks Meter 798
Posts: 113
Join Date: May 2010

 
DONATE TO ME
Quote:
Originally Posted by twistedumbrella View Post
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: [ Click to Expand ]
 
imfloflo
Old
#12  
imfloflo's Avatar
Senior Moderator
Thanks Meter 796
Posts: 2,977
Join Date: Apr 2007
Location: Clermont-Ferrand, France

 
DONATE TO ME
Maybe you should ask @charnsingh_online help for video, as he already works on 720p for N1
Nexus 5 - Galaxy Nexus (CM10.2) - HP Touchpad (CM10.1) - Nexus One (CM7.2)
XDA-developers Senior Moderator - Twitter.com ImFloFlo

 
twistedumbrella
Old
#13  
twistedumbrella's Avatar
Recognized Developer
Thanks Meter 6196
Posts: 6,082
Join Date: Sep 2007

 
DONATE TO ME
Quote:
Originally Posted by rapmv78 View Post
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?
 
rapmv78
Old
#14  
Senior Member - OP
Thanks Meter 798
Posts: 113
Join Date: May 2010

 
DONATE TO ME
Quote:
Originally Posted by twistedumbrella View Post
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: [ Click to Expand ]
 
twistedumbrella
Old
#15  
twistedumbrella's Avatar
Recognized Developer
Thanks Meter 6196
Posts: 6,082
Join Date: Sep 2007

 
DONATE TO ME
Quote:
Originally Posted by rapmv78 View Post
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.
 
rapmv78
Old
#16  
Senior Member - OP
Thanks Meter 798
Posts: 113
Join Date: May 2010

 
DONATE TO ME
Quote:
Originally Posted by twistedumbrella View Post
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: [ Click to Expand ]
 
guy_smiley
Old
#17  
Senior Member
Thanks Meter 74
Posts: 194
Join Date: Dec 2008
Location: Perth
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: [ Click to Expand ]
 
sucon
Old
#18  
Junior Member
Thanks Meter 1
Posts: 14
Join Date: Feb 2010
I tried it with (Texas)Ice ICS ROM and network not work. Failed to load driver! Need flash another kernel?
 
mulerokeh
Old
#19  
Senior Member
Thanks Meter 18
Posts: 140
Join Date: Apr 2010
Location: Jakarta
Quote:
Originally Posted by sucon View Post
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
 
munnition
Old
#20  
munnition's Avatar
Member
Thanks Meter 14
Posts: 56
Join Date: Dec 2010
Location: Duisburg
Quote:
Originally Posted by sucon View Post
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!
HTC One X
Rom: 4.3 CM nightly
Nexus 7
Rom: 4.3 stock
Asus Transfromer
Rom: Team EOS 3 *JELLYBEAN* #81
Nexus One (passion)
Rom: CM7 (used only for tethering)

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes