From 0ebe625decc5a52c5534bedc5ed31da332f42f80 Mon Sep 17 00:00:00 2001 From: Kyle Repinski Date: Wed, 7 Jan 2015 17:12:43 -0600 Subject: camera: Fix more tuna issues, spruce up debugging. - Move very verbose logs under new CAMERAHAL_SUPERVERBOSE and co. - Add back 'default focal length', as tuna just reports '.' when trying to auto-fetch it. - Hardcode camera facing values in insertFacing (sensor ID 305 is rear, the other (306) is front). - ifdef out more things that will cause tuna to... lose its gills. - 'Fix' preview resolutions not being inserted. - Enable a few built-in workarounds that were under the 'CAMERAHAL_TUNA' define. At this point, a few intelligent camera apps can handle the camera 'OK'. AF is very spotty. Signed-off-by: Kyle Repinski --- camera/BaseCameraAdapter.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'camera/BaseCameraAdapter.cpp') diff --git a/camera/BaseCameraAdapter.cpp b/camera/BaseCameraAdapter.cpp index 4e315b6..ad56691 100644 --- a/camera/BaseCameraAdapter.cpp +++ b/camera/BaseCameraAdapter.cpp @@ -382,7 +382,7 @@ void BaseCameraAdapter::returnFrame(CameraBuffer * frameBuf, CameraFrame::FrameT } } - CAMHAL_LOGVB("REFCOUNT 0x%x %d", frameBuf, refCount); + CAMHAL_LOGSVB("REFCOUNT 0x%x %d", frameBuf, refCount); if ( NO_ERROR == res ) { @@ -395,7 +395,7 @@ void BaseCameraAdapter::returnFrame(CameraBuffer * frameBuf, CameraFrame::FrameT (CameraFrame::SNAPSHOT_FRAME == frameType))) { CAMHAL_LOGE("Buffer already with Ducati!! 0x%x", frameBuf); - for(int i=0;imFrameType, ( uint32_t ) frame->mBuffer, refCount); -- cgit v1.1