Finding source code for Nexus S Camera HAL?

I am working on a project where I need to change the driver for the Nexus S front camera. The driver source code is implemented in drivers/media/video/s5ka3dfx.c . From a look at the implementation of the driver, it seems that the driver complies with the V4L2 API. However, I don’t understand how the driver interacts with the rest of the Android stack. In this case, there should be a hardware abstraction layer containing an implementation of the pure virtual class CameraHardwareInterface (which is declared in platform_frameworks_base/include/CameraHardwareInterface.h ).

I could not find the source code for this level of hardware abstraction. http://android.git.kernel.org/ is dreaming about electrical outlets at the moment, does anyone know of any alternative places to find the source code for the Nexus S HAL camera

+4
source share
1 answer

Follow Up: I downloaded the mirror image of the Android platform code from https://www.codeaurora.org/gitweb/quic/la/ . Fortunately, the source code for the HAL camera is located in platforms/device/samsung/crespo/libcamera . CameraHardwareInterface.h is implemented in SecCameraHWInterface.h , and the V4L2 API is called from SecCamera.cpp .

For those looking for an explanation of each level of abstraction for the camera (from hardware to application level), check out http://boundarydevices.com/blogs/camera-subsystem-overview-for-i-mx-gingerbread .

+5
source

All Articles