[LG L Fino ROMs, Kernels, Recoveries, & Other Devel] christpp:
Progress with cameras

Hello everyone,

It seems that there has been some progress with cameras. Android camera api is now able to get the correct values for picture sizes in preview,video and picture mode. However, from the info I get by the log, I currently cannot think what is the next thing that needs fixing...

It is coming closer day by day! :cool:

I/CameraClient( 310): Opening camera 0
E/QCamera2HWI( 310): qcamera::QCamera2HardwareInterface::QCamera2HardwareInterface(int): E
D/QCameraStateMachine( 310): static void* qcamera::QCameraStateMachine::smEvtProcRoutine(void*): E
E/QCamera2HWI( 310): [KPI Perf] int qcamera::QCamera2HardwareInterface::openCamera(hw_device_t**): E PROFILE_OPEN_CAMERA camera id 0
D/QCamera2HWI( 310): static void* qcamera::QCamera2HardwareInterface::defferedWorkRoutine(void*): start data proc
E/mm-camera-intf( 310): mm_camera_open: dev name = /dev/video1, cam_idx = 1
E/mm-camera( 422): isp_tintless_open: E: b6f3271d
E/mm-camera( 422): is_module_start_session: Enter
E/mm-camera( 422): is_module_start_session: Exit successful
E/mm-camera( 422): is_module_get_port: Exit successful
E/ ( 422): dmlroc_get_version
E/mm-camera( 422): isp_tintless_bg_pca_get_version: lib returned version 2.53 err=0
E/hdr ( 422): Session id 0x1 started
E/mm-camera-sensor( 422): eeprom_load_library:707 e_ctrl->eeprom_lib.func_tbl =0xb6005004
E/mm-camera-sensor( 422): sensor_init:223 enter ctrl 0xb5827028
E/mm-camera-sensor( 422): sensor_power_up:160 exit
E/mm-camera-sensor( 422): module_sensor_start_session:732 failed
E/mm-camera-sensor( 422): module_sensor_start_session:738 failed
E/mm-camera-intf( 310): mm_camera_open: opened, break out while loop
E/QCamera2HWI( 310): static int qcamera::QCamera2HardwareInterface::initCapabilities(int, mm_camera_vtbl_t*): E
E/QCameraHWI_Mem( 310): int qcamera::QCameraMemory::alloc(int, int, int) : No memory pool available
D/QCameraHWI_Mem( 310): static int qcamera::QCameraMemory::allocOneBuffer(qcamera::QCameraMemory::QCameraMemInfo&, int, int, bool) : ION buffer 0x1 with size 7272 allocated
E/QCamera2HWI( 310): int qcamera::QCamera2HardwareInterface::openCamera(): initCapabilities() = 0
E/QCamera2HWI( 310): int qcamera::QCamera2HardwareInterface::openCamera(): i = 0, l_curr_width = 3264, l_curr_height = 2448
E/QCamera2HWI( 310): int qcamera::QCamera2HardwareInterface::openCamera(): i = 1, l_curr_width = 3264, l_curr_height = 1836
E/QCamera2HWI( 310): int qcamera::QCamera2HardwareInterface::openCamera(): i = 2, l_curr_width = 3200, l_curr_height = 2400
E/QCamera2HWI( 310): int qcamera::QCamera2HardwareInterface::openCamera(): i = 3, l_curr_width = 3200, l_curr_height = 1920
E/QCamera2HWI( 310): int qcamera::QCamera2HardwareInterface::openCamera(): i = 4, l_curr_width = 2592, l_curr_height = 1944
E/QCamera2HWI( 310): int qcamera::QCamera2HardwareInterface::openCamera(): i = 5, l_curr_width = 2560, l_curr_height = 1920
E/QCamera2HWI( 310): int qcamera::QCamera2HardwareInterface::openCamera(): i = 6, l_curr_width = 2560, l_curr_height = 1706
E/QCamera2HWI( 310): int qcamera::QCamera2HardwareInterface::openCamera(): i = 7, l_curr_width = 2560, l_curr_height = 1704
E/QCamera2HWI( 310): int qcamera::QCamera2HardwareInterface::openCamera(): i = 8, l_curr_width = 2560, l_curr_height = 1536
E/QCamera2HWI( 310): int qcamera::QCamera2HardwareInterface::openCamera(): i = 9, l_curr_width = 2560, l_curr_height = 1600
E/QCamera2HWI( 310): int qcamera::QCamera2HardwareInterface::openCamera(): i = 10, l_curr_width = 2304, l_curr_height = 1296
E/QCamera2HWI( 310): int qcamera::QCamera2HardwareInterface::openCamera(): i = 11, l_curr_width = 2240, l_curr_height = 1344
E/QCamera2HWI( 310): int qcamera::QCamera2HardwareInterface::openCamera(): i = 12, l_curr_width = 2048, l_curr_height = 1536
E/QCamera2HWI( 310): int qcamera::QCamera2HardwareInterface::openCamera(): i = 13, l_curr_width = 2048, l_curr_height = 1350
E/QCamera2HWI( 310): int qcamera::QCamera2HardwareInterface::openCamera(): i = 14, l_curr_width = 2048, l_curr_height = 1280
E/QCamera2HWI( 310): int qcamera::QCamera2HardwareInterface::openCamera(): i = 15, l_curr_width = 1920, l_curr_height = 1080
E/QCamera2HWI( 310): int qcamera::QCamera2HardwareInterface::openCamera(): i = 16, l_curr_width = 1600, l_curr_height = 1200
E/QCamera2HWI( 310): int qcamera::QCamera2HardwareInterface::openCamera(): i = 17, l_curr_width = 1280, l_curr_height = 960
E/QCamera2HWI( 310): int qcamera::QCamera2HardwareInterface::openCamera(): i = 18, l_curr_width = 1280, l_curr_height = 800
E/QCamera2HWI( 310): int qcamera::QCamera2HardwareInterface::openCamera(): i = 19, l_curr_width = 1280, l_curr_height = 768
E/QCamera2HWI( 310): int qcamera::QCamera2HardwareInterface::openCamera(): i = 20, l_curr_width = 1280, l_curr_height = 720
E/QCamera2HWI( 310): int qcamera::QCamera2HardwareInterface::openCamera(): i = 21, l_curr_width = 1024, l_curr_height = 768
E/QCamera2HWI( 310): int qcamera::QCamera2HardwareInterface::openCamera(): i = 22, l_curr_width = 960, l_curr_height = 720
E/QCamera2HWI( 310): int qcamera::QCamera2HardwareInterface::openCamera(): i = 23, l_curr_width = 800, l_curr_height = 600
E/QCamera2HWI( 310): int qcamera::QCamera2HardwareInterface::openCamera(): i = 24, l_curr_width = 800, l_curr_height = 480
E/QCamera2HWI( 310): int qcamera::QCamera2HardwareInterface::openCamera(): i = 25, l_curr_width = 720, l_curr_height = 480
E/QCamera2HWI( 310): int qcamera::QCamera2HardwareInterface::openCamera(): i = 26, l_curr_width = 640, l_curr_height = 480
E/QCamera2HWI( 310): int qcamera::QCamera2HardwareInterface::openCamera(): i = 27, l_curr_width = 480, l_curr_height = 320
E/QCamera2HWI( 310): int qcamera::QCamera2HardwareInterface::openCamera(): i = 28, l_curr_width = 352, l_curr_height = 288
E/QCamera2HWI( 310): int qcamera::QCamera2HardwareInterface::openCamera(): i = 29, l_curr_width = 320, l_curr_height = 240
D/QCamera2HWI( 310): int qcamera::QCamera2HardwareInterface::openCamera(): enable_4k2k is 0
E/mm-jpeg-intf( 310): Max picture size 3264 x 2448, WorkBufSize = 12220416
E/qomx_image_core( 310): OMX_Init:94] Complete 2
E/QCameraHWI_Mem( 310): int qcamera::QCameraMemory::alloc(int, int, int) : No memory pool available
D/QCameraHWI_Mem( 310): static int qcamera::QCameraMemory::allocOneBuffer(qcamera::QCameraMemory::QCameraMemInfo&, int, int, bool) : ION buffer 0x1 with size 1048576 allocated
D/QCameraParameters( 310): int32_t qcamera::QCameraParameters::initBatchUpdate(void*):Initializing batch parameter set
D/QCameraParameters( 310): int32_t qcamera::QCameraParameters::initDefaultParameters(): supported preview sizes: 1280x720,1024x768,960x720,800x480,720x480,640x480,480x320,352x288,320x240,240x160,176x144
D/QCameraParameters( 310): int32_t qcamera::QCameraParameters::initDefaultParameters(): supported video sizes: 800x480,720x480,640x480,480x320,352x288,320x240,176x144,144x176
D/QCameraParameters( 310): int32_t qcamera::QCameraParameters::initDefaultParameters(): supported pic sizes: 3264x2448,3264x1836,3200x2400,3200x1920,2592x1944,2560x1920,2560x1706,2560x1704,2560x1536,2560x1600,2304x1296,2240x1344,2048x1536,2048x1350,2048x1280,1920x1080,1600x1200,1280x960,1280x800,1280x768,1280x720,1024x768,960x720,800x600,800x480,720x480,640x480,480x320,352x288,320x240
I/QCameraParameters( 310): int32_t qcamera::QCameraParameters::initDefaultParameters(): supported live snapshot sizes: 800x480,720x480,640x480,352x288,320x240,176x144
D/QCameraParameters( 310): int32_t qcamera::QCameraParameters::initDefaultParameters(): supported fps ranges: (5000,30000),(10000,30000)
E/QCameraParameters( 310): int32_t qcamera::QCameraParameters::setPreviewFpsRange(int, int): Setting preview fps range 5000,30000
D/QCameraParameters( 310): int32_t qcamera::QCameraParameters::AddSetParmEntryToBatch(void*, cam_intf_parm_type_t, uint32_t, void*): num_entry: 1, paramType: 4, paramLength: 8, aligned_size_req: 24
D/QCameraParameters( 310): int32_t qcamera::QCameraParameters::initDefaultParameters(): supported fps rates: 5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30
E/QCameraParameters( 310): int32_t qcamera::QCameraParameters::initDefaultParameters() rear_min_fps_normal: 10000, rear_min_fps_night: 6000
E/QCameraParameters( 310): int32_t qcamera::QCameraParameters::initDefaultParameters() front_min_fps_normal: 10000, front_min_fps_night: 5000
E/QCameraParameters( 310): int32_t qcamera::QCameraParameters::setFocusMode(const char*): current_normal_focus set to 0
D/QCameraParameters( 310): int32_t qcamera::QCameraParameters::AddSetParmEntryToBatch(void*, cam_intf_parm_type_t, uint32_t, void*): num_entry: 2, paramType: 30, paramLength: 4, aligned_size_req: 20
D/QCameraParameters( 310): int32_t qcamera::QCameraParameters::AddSetParmEntryToBatch(void*, cam_intf_parm_type_t, uint32_t, void*): num_entry: 3, paramType: 29, paramLength: 112, aligned_size_req: 128
D/QCameraParameters( 310): int32_t qcamera::QCameraParameters::AddSetParmEntryToBatch(void*, cam_intf_parm_type_t, uint32_t, void*): num_entry: 4, paramType: 28, paramLength: 48, aligned_size_req: 64
D/QCameraParameters( 310): int32_t qcamera::QCameraParameters::AddSetParmEntryToBatch(void*, cam_intf_parm_type_t, uint32_t, void*): num_entry: 5, paramType: 20, paramLength: 4, aligned_size_req: 20
D/QCameraParameters( 310): int32_t qcamera::QCameraParameters::AddSetParmEntryToBatch(void*, cam_intf_parm_type_t, uint32_t, void*): num_entry: 6, paramType: 18, paramLength: 4, aligned_size_req: 20
D/QCameraParameters( 310): int32_t qcamera::QCameraParameters::AddSetParmEntryToBatch(void*, cam_intf_parm_type_t, uint32_t, void*): num_entry: 7, paramType: 19, paramLength: 4, aligned_size_req: 20
D/QCameraParameters( 310): int32_t qcamera::QCameraParameters::AddSetParmEntryToBatch(void*, cam_intf_parm_type_t, uint32_t, void*): num_entry: 8, paramType: 32, paramLength: 4, aligned_size_req: 20
D/QCameraParameters( 310): int32_t qcamera::QCameraParameters::AddSetParmEntryToBatch(void*, cam_intf_parm_type_t, uint32_t, void*): num_entry: 9, paramType: 21, paramLength: 4, aligned_size_req: 20
D/QCameraParameters( 310): int32_t qcamera::QCameraParameters::AddSetParmEntryToBatch(void*, cam_intf_parm_type_t, uint32_t, void*): num_entry: 10, paramType: 26, paramLength: 4, aligned_size_req: 20
D/QCameraParameters( 310): int32_t qcamera::QCameraParameters::AddSetParmEntryToBatch(void*, cam_intf_parm_type_t, uint32_t, void*): num_entry: 11, paramType: 2, paramLength: 4, aligned_size_req: 20
D/QCameraParameters( 310): int32_t qcamera::QCameraParameters::AddSetParmEntryToBatch(void*, cam_intf_parm_type_t, uint32_t, void*): num_entry: 12, paramType: 1, paramLength: 4, aligned_size_req: 20
D/QCameraParameters( 310): int32_t qcamera::QCameraParameters::AddSetParmEntryToBatch(void*, cam_intf_parm_type_t, uint32_t, void*): num_entry: 13, paramType: 7, paramLength: 4, aligned_size_req: 20
D/QCameraParameters( 310): int32_t qcamera::QCameraParameters::setWhiteBalance(const char*): Setting WhiteBalance value auto
D/QCameraParameters( 310): int32_t qcamera::QCameraParameters::AddSetParmEntryToBatch(void*, cam_intf_parm_type_t, uint32_t, void*): num_entry: 14, paramType: 6, paramLength: 4, aligned_size_req: 20
E/QCameraParameters( 310): int32_t qcamera::QCameraParameters::setFlash(const char*): Setting Flash value off 0
D/QCameraParameters( 310): int32_t qcamera::QCameraParameters::AddSetParmEntryToBatch(void*, cam_intf_parm_type_t, uint32_t, void*): num_entry: 15, paramType: 10, paramLength: 4, aligned_size_req: 20
D/QCameraParameters( 310): int32_t qcamera::QCameraParameters::AddSetParmEntryToBatch(void*, cam_intf_parm_type_t, uint32_t, void*): num_entry: 16, paramType: 8, paramLength: 4, aligned_size_req: 20
E/QCameraParameters( 310): int32_t qcamera::QCameraParameters::setISOValue(const char*): Setting ISO value auto
D/QCameraParameters( 310): int32_t qcamera::QCameraParameters::AddSetParmEntryToBatch(void*, cam_intf_parm_type_t, uint32_t, void*): num_entry: 17, paramType: 22, paramLength: 4, aligned_size_req: 20
D/QCameraParameters( 310): int32_t qcamera::QCameraParameters::AddSetParmEntryToBatch(void*, cam_intf_parm_type_t, uint32_t, void*): num_entry: 18, paramType: 35, paramLength: 4, aligned_size_req: 20
D/QCameraParameters( 310): int32_t qcamera::QCameraParameters::AddSetParmEntryToBatch(void*, cam_intf_parm_type_t, uint32_t, void*): num_entry: 19, paramType: 27, paramLength: 4, aligned_size_req: 20
D/QCameraParameters( 310): int32_t qcamera::QCameraParameters::AddSetParmEntryToBatch(void*, cam_intf_parm_type_t, uint32_t, void*): num_entry: 20, paramType: 23, paramLength: 4, aligned_size_req: 20
D/QCameraParameters( 310): int32_t qcamera::QCameraParameters::initDefaultParameters(): sensor(hi841) mPhotoSolidSupported(1) cam_lowlight_threshold(3.500000) vid_flash_threshold(14.000000)
D/QCameraParameters( 310): int32_t qcamera::QCameraParameters::setAEBracket(const char*), EXP_BRACKETING_OFF
D/QCameraParameters( 310): int32_t qcamera::QCameraParameters::AddSetParmEntryToBatch(void*, cam_intf_parm_type_t, uint32_t, void*): num_entry: 21, paramType: 41, paramLength: 36, aligned_size_req: 52
D/QCameraParameters( 310): int32_t qcamera::QCameraParameters::setWaveletDenoise(const char*) WaveletDenoisevalue=1
E/QCameraParameters( 310): cam_denoise_process_type_t qcamera::QCameraParameters::getWaveletDenoiseProcessPlate(): WNR format is : 0
D/QCameraParameters( 310): int32_t qcamera::QCameraParameters::AddSetParmEntryToBatch(void*, cam_intf_parm_type_t, uint32_t, void*): num_entry: 22, paramType: 37, paramLength: 8, aligned_size_req: 24
D/QCameraParameters( 310): int32_t qcamera::QCameraParameters::AddSetParmEntryToBatch(void*, cam_intf_parm_type_t, uint32_t, void*): num_entry: 23, paramType: 24, paramLength: 4, aligned_size_req: 20
D/QCameraParameters( 310): int32_t qcamera::QCameraParameters::AddSetParmEntryToBatch(void*, cam_intf_parm_type_t, uint32_t, void*): num_entry: 24, paramType: 34, paramLength: 4, aligned_size_req: 20
D/QCameraParameters( 310): int32_t qcamera::QCameraParameters::AddSetParmEntryToBatch(void*, cam_intf_parm_type_t, uint32_t, void*): num_entry: 25, paramType: 9, paramLength: 4, aligned_size_req: 20
D/QCameraParameters( 310): int32_t qcamera::QCameraParameters::AddSetParmEntryToBatch(void*, cam_intf_parm_type_t, uint32_t, void*): num_entry: 26, paramType: 36, paramLength: 4, aligned_size_req: 20
D/QCameraParameters( 310): int32_t qcamera::QCameraParameters::AddSetParmEntryToBatch(void*, cam_intf_parm_type_t, uint32_t, void*): num_entry: 27, paramType: 39, paramLength: 4, aligned_size_req: 20
D/QCameraParameters( 310): int32_t qcamera::QCameraParameters::AddSetParmEntryToBatch(void*, cam_intf_parm_type_t, uint32_t, void*): num_entry: 28, paramType: 3, paramLength: 4, aligned_size_req: 20
D/QCameraParameters( 310): int32_t qcamera::QCameraParameters::AddSetParmEntryToBatch(void*, cam_intf_parm_type_t, uint32_t, void*): num_entry: 29, paramType: 5, paramLength: 4, aligned_size_req: 20
E/QCameraParameters( 310): int32_t qcamera::QCameraParameters::initDefaultParameters(): multi_window_af_supported = 1
E/QCameraParameters( 310): createMultiWindowString: (-280,-280,0,0,1),(-140,-420,140,-140,1),(0,-280,280,0,1),(-420,-140,-140,140,1),(-140,-140,140,140,1),(140,-140,420,140,1),(-280,0,0,280,1),(-140,140,140,420,1),(0,0,280,280,1),(-220,-220,220,220,1)
E/QCameraParameters( 310): int32_t qcamera::QCameraParameters::initDefaultParameters(): multi_window_af value = (-280,-280,0,0,1),(-140,-420,140,-140,1),(0,-280,280,0,1),(-420,-140,-140,140,1),(-140,-140,140,140,1),(140,-140,420,140,1),(-280,0,0,280,1),(-140,140,140,420,1),(0,0,280,280,1),(-220,-220,220,220,1)
E/QCameraParameters( 310): createMultiWindowString: (720,720,1000,1000,1),(860,580,1140,860,1),(1000,720,1280,1000,1),(580,860,860,1140,1),(860,860,1140,1140,1),(1140,860,1420,1140,1),(720,1000,1000,1420,1),(860,1140,1140,1420,1),(1000,1000,1280,1280,1)
D/QCameraParameters( 310): int32_t qcamera::QCameraParameters::commitSetBatch():waiting for commitSetBatch to complete
D/QCameraParameters( 310): int32_t qcamera::QCameraParameters::setNumOfSnapshot(): nBurstNum = 1, nExpnum = 1
I/Thermal-Lib( 310): Thermal-Lib-Client: Registraion successful for camera with handle:1
I/Thermal-Lib( 310): Thermal-Lib-Client: Registraion successful for camcorder with handle:2
I/Thermal-Lib( 310): Thermal-Lib-Client: Registraion successful for camera with handle:3
I/Thermal-Lib( 310): Thermal-Lib-Client: Registraion successful for camcorder with handle:4
I/ThermalEngine( 313): Thermal-Server: Adding thermal event listener on fd 40
I/Thermal-Lib( 310): Thermal-Lib-Client: Client received msg camera 0
I/QCamera2HWI( 310): virtual int qcamera::QCamera2HardwareInterface::thermalEvtHandle(qcamera::qcamera_thermal_level_enum_t, void*, void*): level = 0, userdata = 0x0, data = 0x0
I/QCamera2HWI( 310): virtual int qcamera::QCamera2HardwareInterface::thermalEvtHandle(qcamera::qcamera_thermal_level_enum_t, void*, void*): level = 0, userdata = 0x0, data = 0x0
I/Thermal-Lib( 310): Thermal-Lib-Client: Client received msg camcorder 0
D/QCameraParameters( 310): int32_t qcamera::QCameraParameters::initBatchUpdate(void*):Initializing batch parameter set
I/QCamera2HWI( 310): virtual int qcamera::QCamera2HardwareInterface::thermalEvtHandle(qcamera::qcamera_thermal_level_enum_t, void*, void*): level = 0, userdata = 0x0, data = 0x0
D/QCameraParameters( 310): int32_t qcamera::QCameraParameters::AddSetParmEntryToBatch(void*, cam_intf_parm_type_t, uint32_t, void*): num_entry: 1, paramType: 4, paramLength: 8, aligned_size_req: 24
I/QCamera2HWI( 310): virtual int qcamera::QCamera2HardwareInterface::thermalEvtHandle(qcamera::qcamera_thermal_level_enum_t, void*, void*): level = 0, userdata = 0x0, data = 0x0
E/QCamera2HWI( 310): waitAPIResult: api_evt = 2 test dennis
D/QCameraParameters( 310): int32_t qcamera::QCameraParameters::commitSetBatch():waiting for commitSetBatch to complete
D/QCameraParameters( 310): int32_t qcamera::QCameraParameters::initBatchUpdate(void*):Initializing batch parameter set
D/QCameraParameters( 310): int32_t qcamera::QCameraParameters::AddSetParmEntryToBatch(void*, cam_intf_parm_type_t, uint32_t, void*): num_entry: 1, paramType: 4, paramLength: 8, aligned_size_req: 24
D/QCameraParameters( 310): int32_t qcamera::QCameraParameters::commitSetBatch():waiting for commitSetBatch to complete
D/QCameraParameters( 310): int32_t qcamera::QCameraParameters::initBatchUpdate(void*):Initializing batch parameter set
D/QCameraParameters( 310): int32_t qcamera::QCameraParameters::AddSetParmEntryToBatch(void*, cam_intf_parm_type_t, uint32_t, void*): num_entry: 1, paramType: 4, paramLength: 8, aligned_size_req: 24
D/QCameraParameters( 310): int32_t qcamera::QCameraParameters::commitSetBatch():waiting for commitSetBatch to complete
D/QCameraParameters( 310): int32_t qcamera::QCameraParameters::initBatchUpdate(void*):Initializing batch parameter set
D/QCameraParameters( 310): int32_t qcamera::QCameraParameters::AddSetParmEntryToBatch(void*, cam_intf_parm_type_t, uint32_t, void*): num_entry: 1, paramType: 4, paramLength: 8, aligned_size_req: 24
D/QCameraParameters( 310): int32_t qcamera::QCameraParameters::commitSetBatch():waiting for commitSetBatch to complete
E/QCamera2HWI( 310): waitAPIResult: api_evt = 3 test dennis
I/QCamera2HWI( 310): getParameters() Luminance is High !!!
E/QCamera2HWI( 310): getParameters() Luminance for video is High !!!
E/QCamera2HWI( 310): waitAPIResult: api_evt = 7 test dennis
E/QCamera2HWI( 310): waitAPIResult: api_evt = 8 test dennis
E/QCamera2HWI( 310): waitAPIResult: api_evt = 4 test dennis
E/QCamera2HWI( 310): [KPI Perf] static void qcamera::QCamera2HardwareInterface::stop_preview(camera_device*): E PROFILE_STOP_PREVIEW
D/QCameraStateMachine( 310): int32_t qcamera::QCameraStateMachine::procEvtPreviewStoppedState(qcamera::qcamera_sm_evt_enum_t, void*): already in preview stopped state, do nothing
E/QCamera2HWI( 310): waitAPIResult: api_evt = 11 test dennis
D/QCamera2HWI( 310): [KPI Perf] static void qcamera::QCamera2HardwareInterface::stop_preview(camera_device*): X
D/QCameraStateMachine( 310): int32_t qcamera::QCameraStateMachine::procEvtPreviewStoppedState(qcamera::qcamera_sm_evt_enum_t, void*): No ops for evt(20) in state(0)
E/QCamera2HWI( 310): waitAPIResult: api_evt = 20 test dennis
E/QCamera2HWI( 310): waitAPIResult: api_evt = 24 test dennis
I/CameraClient( 310): Destroying camera 0
D/QCamera2HWI( 310): [KPI Perf] static int qcamera::QCamera2HardwareInterface::close_camera_device(hw_device_t*): E
D/QCamera2HWI( 310): static void* qcamera::QCamera2HardwareInterface::defferedWorkRoutine(void*): stop data proc
E/QCamera2HWI( 310): int qcamera::QCamera2HardwareInterface::closeCamera() : E
E/QCamera2HWI( 310): mParameters.deinit()
E/QCamera2HWI( 310): closeCamera: unlock(m_parm_lock)
E/QCamera2HWI( 310): m_cbNotifier.exit()
E/QCameraPostProc( 310): int32_t qcamera::QCameraPostProcessor::stop() : E, m_bInited = 1
E/QCameraPostProc( 310): int32_t qcamera::QCameraPostProcessor::stop() : X
E/qomx_image_core( 310): OMX_Deinit:118] Complete
E/QCameraPostProc( 310): int32_t qcamera::QCameraPostProcessor::deinit(): Jpeg closed, rc = 0, mJpegClientHandle = 100
E/QCamera2HWI( 310): m_postprocessor.deinit()
I/Thermal-Lib( 310): Thermal-Lib-Client: Unregisteration is successfull for handle:3
I/Thermal-Lib( 310): Thermal-Lib-Client: Unregisteration is successfull for handle:4
E/QCamera2HWI( 310): m_channels->stop
E/mm-camera( 422): mct_pipeline_get_stream: no children
E/mm-camera( 422): mct_pipeline_process_set:1500: Couldn't find stream
E/mm-camera-sensor( 422): actuator_process:724 ACTUATOR_CLOSE
E/QCamera2HWI( 310): int qcamera::QCamera2HardwareInterface::closeCamera() : X
D/QCameraStateMachine( 310): static void* qcamera::QCameraStateMachine::smEvtProcRoutine(void*): X
E/mm-camera( 422): stats_module_stop_session: list =0xb58262c0, remove port =0xb5847040 name=stats_sink from module=0xb65f61c0, name=stats
E/mm-camera( 422): stats_module_stop_session: 1 port =0xb5847040 name=stats_sink
E/ ( 422): dmlroc_deinit
E/mm-camera( 422): stats_module_stop_session: 2 port =0xb5847040 name=stats_sink
D/QCamera2HWI( 310): [KPI Perf] static int qcamera::QCamera2HardwareInterface::close_camera_device(hw_device_t*): X
D/NuPlayerDriver( 310): reset(0xb591f700)
E/mm-camera( 422): af_port_deinit: De-Init AF port
D/NuPlayerDriver( 310): notifyResetComplete(0xb591f700)
E/mm-camera( 422): mct_port_destroy port_name : af_sink tid : 948, port_addr : 0xb58471c0
E/hdr ( 422): Session id 0x1 stopped
D/NuPlayerDriver( 310): reset(0xb591f7c0)
E/mm-camera( 422): mct_port_destroy port_name : awb_sink tid : 948, port_addr : 0xb5847160
D/NuPlayerDriver( 310): notifyResetComplete(0xb591f7c0)
E/mm-camera( 422): mct_port_destroy port_name : aec_sink tid : 948, port_addr : 0xb5847100
E/mm-camera( 422): mct_port_destroy port_name : q3a_sink tid : 948, port_addr : 0xb58470a0
E/mm-camera( 422): mct_port_destroy port_name : afd_sink tid : 948, port_addr : 0xb5847220
E/mm-camera( 422): mct_port_destroy port_name : asd_sink tid : 948, port_addr : 0xb5847280
E/mm-camera( 422): is_module_stop_session: Enter
E/mm-camera( 422): mct_port_destroy port_name : is_sink tid : 948, port_addr : 0xb58472e0

UPDATE: Both cameras are now sending buffers and preview is showing correctly in the camera app. The picture though cannot be saved and the camera app hangs. It has to do with the qualcomm jpeg encoder. I will provide a full rom zip If I manage to save a snapshot!