[Galaxy Note 4 General] gekkehenkie11:
I've just noticed something very interesting. Stock cam, working on TW, does this:

12-29 00:13:06.985 D/SecCameraCoreManager( 335): previewEnabled

12-29 00:13:06.985 W/QCamera2HWI( 335): preview_enabled: E

12-29 00:13:06.985 W/QCamera2HWI( 335): preview_enabled: X, ret 0

12-29 00:13:06.985 D/SecCameraCoreManager( 335): setPreviewWindow

12-29 00:13:06.985 W/QCamera2HWI( 335): set_preview_window : E

12-29 00:13:06.985 W/QCamera2HWI( 335): set_preview_window : X, rc 0

12-29 00:13:06.985 D/SecCameraCoreManager( 335): startPreview

12-29 00:13:06.985 I/EDMNativeHelperService( 993): isCameraEnabled

12-29 00:13:06.985 D/SecCameraCoreManager( 335): virtual android::status_t android::SecCameraCoreManager::startPreview():start IT Policy checking thread

12-29 00:13:06.985 D/ShotSingle( 335): startPreview

12-29 00:13:06.985 V/SecCameraCoreManager( 335): getParameters(0)

12-29 00:13:06.985 I/EDMNativeHelperService( 993): isCameraEnabled

12-29 00:13:06.985 V/ShotSingle( 335): startPreview(0)

12-29 00:13:06.985 W/QCamera2HWI( 335): [KPI Perf] start_preview: E

12-29 00:13:06.985 W/QCamera2HWI( 335): preparePreview: E mCameraId=0

12-29 00:13:06.985 E/QCameraParameters( 335): Hariram: =1

FV-5, working on Cm12, does this:

12-30 11:32:47.923 V/CameraWrapper( 326): camera_preview_enabled->B61FE5B0->AF3000C4

12-30 11:32:47.924 W/QCamera2HWI( 326): preview_enabled: E

12-30 11:32:47.924 W/QCamera2HWI( 326): preview_enabled: X, ret 0

12-30 11:32:47.924 V/CameraWrapper( 326): camera_disable_msg_type->B61FE5B0->AF3000C4

12-30 11:32:47.924 W/QCamera2HWI( 326): disable_msg_type : E, msg type 16

12-30 11:32:47.924 W/QCamera2HWI( 326): disable_msg_type : X

12-30 11:32:47.924 V/CameraWrapper( 326): camera_preview_enabled->B61FE5B0->AF3000C4

12-30 11:32:47.924 W/QCamera2HWI( 326): preview_enabled: E

12-30 11:32:47.924 W/QCamera2HWI( 326): preview_enabled: X, ret 0

12-30 11:32:47.924 V/CameraWrapper( 326): camera_set_preview_window->B61FE5B0->AF3000C4

12-30 11:32:47.924 W/QCamera2HWI( 326): set_preview_window : E

12-30 11:32:47.924 W/QCamera2HWI( 326): set_preview_window : X, rc 0

12-30 11:32:47.924 V/CameraWrapper( 326): camera_start_preview->B61FE5B0->AF3000C4

12-30 11:32:47.924 W/QCamera2HWI( 326): [KPI Perf] start_preview: E

12-30 11:32:47.925 W/QCamera2HWI( 326): preparePreview: E mCameraId=0

12-30 11:32:47.925 E/QCameraParameters( 326): Hariram: =1

And the nonworking cam on Cm12 does this:

12-30 11:31:08.197 W/QCamera2HWI( 326): unpreparePreview: X mCameraId=0

12-30 11:31:08.198 W/QCamera2HWI( 326): stopPreview: X rc=0

12-30 11:31:08.198 W/QCameraParameters( 326): [PARM_DBG] setNumOfSnapshot : nBurstNum = 1, nExpnum = 1

12-30 11:31:08.198 W/QCamera2HWI( 326): preparePreview: E mCameraId=0

12-30 11:31:08.198 E/QCameraParameters( 326): Hariram: =1

OF course stock doesn't use a wrapper. However what's interesting is that FV-5 calls the wrapper several times, where the stock doesn't do this, at least NOT for UHD resolution ! It does do this for the other resolutions by the way ! (the Harirami = 0 ones).

Anyway,cm12 cam in UHD isn't doing some important stuff and I think that's why it fails.

And here, cm12 stock cam, doing lower resolution:

12-30 11:30:51.278 V/CameraWrapper( 326): camera_preview_enabled->B2A200B0->AE8000C4

12-30 11:30:51.278 W/QCamera2HWI( 326): preview_enabled: E

12-30 11:30:51.278 W/QCamera2HWI( 326): preview_enabled: X, ret 0

12-30 11:30:51.279 V/CameraWrapper( 326): camera_preview_enabled->B2A200B0->AE8000C4

12-30 11:30:51.279 W/QCamera2HWI( 326): preview_enabled: E

12-30 11:30:51.280 W/QCamera2HWI( 326): preview_enabled: X, ret 0

12-30 11:30:51.280 V/CameraWrapper( 326): camera_set_preview_window->B2A200B0->AE8000C4

12-30 11:30:51.280 W/QCamera2HWI( 326): set_preview_window : E

12-30 11:30:51.280 W/QCamera2HWI( 326): set_preview_window : X, rc 0

12-30 11:30:51.280 V/CameraWrapper( 326): camera_start_preview->B2A200B0->AE8000C4

12-30 11:30:51.280 W/QCamera2HWI( 326): [KPI Perf] start_preview: E

12-30 11:30:51.280 W/QCamera2HWI( 326): preparePreview: E mCameraId=0

12-30 11:30:51.280 E/QCameraParameters( 326): Hariram: =0

It's doing everything correct again for non UHD ! So this is a big clue !