[HTC Sensation] ivicask:
Yea libs are tricky too, i managed to reduce FCs to this only, using hybrid ION/PMEM kernel Seb compiled, and fixed libs..

I/QualcommCameraHardwareZSL( 214): getBuffersAndStartPreview: Registering buffer 1 with fd :88 with kernel
E/mm-camera( 214): camera_issue_command2: register_buffers error (Operation not permitted) FD 44 783360

E/mm-camera( 214): MSM_CAM_IOCTL_AXI_CONFIG failed!

<6>[ 131.135406] [DISP] SHP: brightness orig=102, transformed=47
<6>[ 131.183135] [CAM] msm_open_common: open control0
<6>[ 131.183227] [CAM] msm_open_common: rc 0
<6>[ 131.183380] [CAM] msm_open_control: rc 0
<6>[ 131.183471] [CAM] msm_release_control: control0
<6>[ 131.183563] [CAM] __msm_release, open count =0
<6>[ 131.183929] [CAM] __msm_release, vfe_release
<6>[ 131.184020] [CAM] __msm_release, free frame pmem region
<6>[ 131.184112] [CAM] __msm_release, free stats pmem region
<6>[ 131.184265] [CAM] __msm_release: draining queue pict
<6>[ 131.184478] [CAM] __msm_release: draining queue event
<6>[ 131.184631] [CAM] __msm_release: draining queue frame
<6>[ 131.184722] [CAM] __msm_release: completed
<6>[ 131.184875] [CAM] msm_release_control: draining queue control
<6>[ 131.184936] [CAM] msm_release_control, completed
<6>[ 131.185119] [CAM] msm_open_common: open control0
<6>[ 131.185211] [CAM] msm_open_common: rc 0
<6>[ 131.185272] [CAM] msm_open_control: rc 0
<6>[ 131.185668] [CAM] msm_open_common: open config0
<6>[ 131.202636] [CAM] msm_camio_clk_enable clktype:6
<6>[ 131.207244] [CAM] msm_camio_clk_enable clk:0xc07f3640
<6>[ 131.207489] [CAM]Calling s5k3h1gx_sensor_open_init
<6>[ 131.207641] [CAM]s5k3h1gx_common_init
<6>[ 131.207794] [CAM]s5k3h1gx_vreg_enable camera vreg on
<6>[ 131.207885] [CAM] Pyramid_sensor_vreg_on
<6>[ 131.209167] [DISP] SHP: brightness orig=103, transformed=47
<6>[ 131.209777] [CAM] Doing clk switch (Main Cam)
<6>[ 131.223388] [CAM]s5k3h1gx_common_init, Expected id=0x3810
<6>[ 131.223876] [CAM]s5k3h1gx_common_init, Read id=0x3810
<6>[ 131.224121] [CAM]s5k3h1gx_common_init done
<6>[ 131.225830] [DISP] SHP: brightness orig=102, transformed=47
<6>[ 131.242462] [DISP] SHP: brightness orig=103, transformed=47
<6>[ 131.267242] [CAM]s5k3h1gx_sensor_open_init done
<6>[ 131.267333] [CAM] __msm_open: vfe_init
<6>[ 131.267578] [CAM] msm_camio_clk_enable clktype:2
<6>[ 131.267944] [CAM] msm_camio_clk_enable clktype:8
<6>[ 131.268096] [CAM] msm_camio_clk_enable clktype:9
<6>[ 131.268249] [CAM] msm_camio_clk_enable clktype:11
<6>[ 131.268432] [CAM] msm_camio_clk_enable clktype:12
<6>[ 131.268585] [CAM] msm_camio_clk_enable clktype:13
<6>[ 131.268798] [CAM] msm_camio_clk_enable clktype:10
<6>[ 131.268981] [CAM] msm_camio_clk_enable clktype:14
<6>[ 131.269195] [CAM] msm_camio_clk_enable clktype:15
<6>[ 131.282745] [CAM] msm_camio_set_perf_lvl: S_INIT rc = 3293665728
<6>[ 131.285614] [CAM] msm_camio_set_perf_lvl: S_PREVIEW rc = 0
<6>[ 131.286041] [CAM] msm_camio_clk_enable clktype:18
<6>[ 131.286163] [CAM] msm_camio_clk_enable clktype:19
<6>[ 131.286437] [CAM] msm_open_common: rc 0
<6>[ 131.286621] [CAM]Line:1818 CFG_I2C_IOCTL_R_OTP
<6>[ 131.286743] [CAM]s5k3h1gx_i2c_read_fuseid: sensor OTP information:
<6>[ 131.312194] [CAM]s5k3h1gx_i2c_read_fuseid: VenderID=1,LensID=1,SensorID=30
<6>[ 131.312347] [CAM]s5k3h1gx_i2c_read_fuseid: ModuleFuseID= 4e15a8
<6>[ 131.312438] [CAM]s5k3h1gx: fuse->fuse_id_word1:0
<6>[ 131.313385] [CAM]s5k3h1gx: fuse->fuse_id_word2:0
<6>[ 131.313476] [CAM]s5k3h1gx: fuse->fuse_id_word3:0x00000001
<6>[ 131.313629] [CAM]s5k3h1gx: fuse->fuse_id_word4:0x004e15a8
<6>[ 131.316925] [DISP] SHP: brightness orig=104, transformed=48
<6>[ 131.324310] [CAM] preview_height 1248 preview_width 3470
<6>[ 131.324401] [CAM] snapshot_height 2480 snapshot_width 3470
<6>[ 131.327819] [CAM] preview_height 1248 preview_width 3470
<6>[ 131.328002] [CAM] snapshot_height 2480 snapshot_width 3470
<6>[ 131.328094] [CAM] preview_height 1248 preview_width 3470
<6>[ 131.328277] [CAM] snapshot_height 2480 snapshot_width 3470
<6>[ 131.328399] [CAM] s5k3h1gx_get_prev_lines_pf curr_res 5, prev_res 0
<6>[ 131.329803] [CAM] msm_pmem_table_add: type 8, paddr 0x40e00000, vaddr 0x42063000
<6>[ 131.330047] [CAM] msm_pmem_table_add: type 8, paddr 0x40e01000, vaddr 0x42111000
<6>[ 131.330169] [CAM] msm_pmem_table_add: type 8, paddr 0x40e02000, vaddr 0x42336000
<6>[ 131.330383] [CAM] msm_pmem_table_add: type 9, paddr 0x40e03000, vaddr 0x4233c000
<6>[ 131.330596] [CAM] msm_pmem_table_add: type 9, paddr 0x40e04000, vaddr 0x4235e000
<6>[ 131.330749] [CAM] msm_pmem_table_add: type 9, paddr 0x40e05000, vaddr 0x42b68000
<6>[ 131.330963] [CAM] msm_pmem_table_add: type 7, paddr 0x40e06000, vaddr 0x4337a000
<6>[ 131.331176] [CAM] msm_pmem_table_add: type 7, paddr 0x40e07000, vaddr 0x43e91000
<6>[ 131.331329] [CAM] msm_pmem_table_add: type 7, paddr 0x40e08000, vaddr 0x43eb8000
<6>[ 131.331542] [CAM] msm_pmem_table_add: type 12, paddr 0x40e09000, vaddr 0x43edf000
<6>[ 131.331665] [CAM] msm_pmem_table_add: type 12, paddr 0x40e0a000, vaddr 0x43f60000
<6>[ 131.331878] [CAM] msm_pmem_table_add: type 12, paddr 0x40e0b000, vaddr 0x43fd2000
<6>[ 131.332092] [CAM] msm_pmem_table_add: type 11, paddr 0x40e0c000, vaddr 0x44011000
<6>[ 131.332244] [CAM] msm_pmem_table_add: type 11, paddr 0x40e0d000, vaddr 0x440cc000
<6>[ 131.332458] [CAM] msm_pmem_table_add: type 11, paddr 0x40e0e000, vaddr 0x44146000
<6>[ 131.332702] [CAM] msm_pmem_table_add: type 10, paddr 0x40e0f000, vaddr 0x44192000
<6>[ 131.332855] [CAM] msm_pmem_table_add: type 10, paddr 0x40e10000, vaddr 0x44253000
<6>[ 131.333068] [CAM] msm_pmem_table_add: type 10, paddr 0x40e11000, vaddr 0x44310000
<6>[ 131.333312] [CAM] msm_enqueue: queue event new max is 1
<6>[ 131.333435] [CAM] msm_enqueue: queue control new max is 1
<6>[ 131.347778] [CAM] preview_height 1248 preview_width 3470
<6>[ 131.347900] [CAM] snapshot_height 2480 snapshot_width 3470
<6>[ 131.392364] [DISP] SHP: brightness orig=105, transformed=48
<6>[ 131.473358] [DISP] SHP: brightness orig=106, transformed=49
<6>[ 131.547241] [DISP] SHP: brightness orig=107, transformed=49
<6>[ 131.621215] [DISP] SHP: brightness orig=108, transformed=50
<6>[ 131.624511] [CAM] flash_set_led_state: 0 flash_sr_type=4
<6>[ 131.624603] [FLT]aat1271_flashlight: mode is same: 0
<6>[ 131.624755] [FLT]flashlight hasn't been enable or has already reset to 0 due to timeout
<3>[ 131.642242] [CAM] msm_pmem_table_add: get_pmem_file fd 83 error -1
<3>[ 131.647613] [CAM] msm_pmem_table_add: get_pmem_file fd 88 error -1
<3>[ 131.652954] [CAM] msm_pmem_table_add: get_pmem_file fd 93 error -1
<3>[ 131.659027] [CAM] msm_pmem_table_add: get_pmem_file fd 98 error -1
<3>[ 131.665679] [CAM] msm_pmem_table_add: get_pmem_file fd 103 error -1
<3>[ 131.671173] [CAM] msm_pmem_table_add: get_pmem_file fd 108 error -1
<3>[ 131.680328] [CAM] msm_pmem_table_add: get_pmem_file fd 113 error -1
<6>[ 131.683959] [CAM] preview_height 1248 preview_width 3470
<6>[ 131.684112] [CAM] snapshot_height 2480 snapshot_width 3470
<6>[ 131.686614] [CAM] msm_pmem_table_add: type 14, paddr 0x38000000, vaddr 0x459f3000
<6>[ 131.687896] [CAM] msm_pmem_table_add: type 14, paddr 0x380c0000, vaddr 0x45921000
<6>[ 131.689300] [CAM] msm_pmem_table_add: type 14, paddr 0x38180000, vaddr 0x45ab3000
<6>[ 131.690673] [CAM] msm_pmem_table_add: type 14, paddr 0x38240000, vaddr 0x45b73000
<6>[ 131.692077] [CAM] msm_pmem_table_add: type 14, paddr 0x38300000, vaddr 0x45c33000
<6>[ 131.693511] [CAM] msm_pmem_table_add: type 14, paddr 0x383c0000, vaddr 0x45cf3000
<6>[ 131.695037] [CAM] msm_pmem_table_add: type 14, paddr 0x38480000, vaddr 0x45db3000
<6>[ 131.695404] [DISP] SHP: brightness orig=109, transformed=50
<6>[ 131.696594] [CAM] msm_pmem_table_add: type 14, paddr 0x38540000, vaddr 0x45e73000
<6>[ 131.697631] [CAM] msm_pmem_table_add: type 16, paddr 0x38600000, vaddr 0x45f33000
<6>[ 131.705017] [CAM] irq resetAckIrq
<6>[ 131.707275] [CAM]s5k3h1gx_set_sensor_mode: 0, res 1
<6>[ 131.707366] [CAM]s5k3h1gx_setting s5k3h1gx_video_config mode 0
<6>[ 131.707519] [CAM]s5k3h1gx_setting s5k3h1gx_video_config curr_res 5, prev_res 1
<6>[ 131.707733] [CAM]s5k3h1gx_setting s5k3h1gx_video_config curr_res 1
<6>[ 131.707916] [CAM] s5k3h1gx_setting, rt = 1
<6>[ 131.708007] [CAM] msm_camio_enable_csi_log
<6>[ 131.708221] [CAM]after set csi config
<6>[ 131.708374] [CAM]s5k3h1gx_setting(FULL_SIZE)
<6>[ 131.722930] [CAM] s5k3h1gx_setting() , Apply sensor mirror/flip
<6>[ 131.723907] [CAM] s5k3h1gx_get_prev_lines_pf curr_res 1, prev_res 1
<6>[ 131.725463] [CAM] msm_io_csi_irq debug count = 1
<6>[ 131.725616] [CAM] msm_io_csi_irq irq MIPI_INTERRUPT_STATUS = 0x40001a
<6>[ 131.725677] [CAM] msm_io_csi_irq irq2 MIPI_INTERRUPT_STATUS = 0x0
<6>[ 131.726959] [CAM] preview_height 2480 preview_width 3470
<6>[ 131.727020] [CAM] snapshot_height 2480 snapshot_width 3470
<6>[ 131.727203] [CAM] preview_height 2480 preview_width 3470
<6>[ 131.727264] [CAM] snapshot_height 2480 snapshot_width 3470
<6>[ 131.727416] [CAM] s5k3h1gx_get_prev_lines_pf curr_res 1, prev_res 1
<6>[ 131.736450] [CAM] msm_axi_config, cfgcmd.cmd_type = 37
<3>[ 131.736602] [CAM] msm_pmem_region_lookup, pmem_type = 15
<3>[ 131.736694] [CAM] listed region->info.type = 16, active = 1
<3>[ 131.736846] [CAM] listed region->info.type = 14, active = 0
<3>[ 131.736999] [CAM] listed region->info.type = 14, active = 0
<3>[ 131.737213] [CAM] listed region->info.type = 14, active = 0
<3>[ 131.737365] [CAM] listed region->info.type = 14, active = 0
<3>[ 131.737579] [CAM] listed region->info.type = 14, active = 0
<3>[ 131.737731] [CAM] listed region->info.type = 14, active = 1
<3>[ 131.737976] [CAM] listed region->info.type = 14, active = 1
<3>[ 131.738128] [CAM] listed region->info.type = 14, active = 1
<3>[ 131.738342] [CAM] msm_frame_axi_cfg 1834: pmem region lookup error
<6>[ 131.740997] [CAM] In vpe_frame_cfg cfgcmd->cmd_type = 42
<6>[ 131.741149] [CAM] msm_pmem_region_lookup_2:info.type=16, pmem_type = 16,info.active = 1
<6>[ 131.741302] [CAM] msm_pmem_region_lookup_2:info.type=16, pmem_type = 16,info.active = 1,
<6>[ 131.741394] [CAM] msm_pmem_region_lookup_2:info.type=14, pmem_type = 16,info.active = 0
<6>[ 131.741546] [CAM] msm_pmem_region_lookup_2:info.type=14, pmem_type = 16,info.active = 0
<6>[ 131.741668] [CAM] msm_pmem_region_lookup_2:info.type=14, pmem_type = 16,info.active = 0
<6>[ 131.741760] [CAM] msm_pmem_region_lookup_2:info.type=14, pmem_type = 16,info.active = 0
<6>[ 131.741912] [CAM] msm_pmem_region_lookup_2:info.type=14, pmem_type = 16,info.active = 0
<6>[ 131.742065] [CAM] msm_pmem_region_lookup_2:info.type=14, pmem_type = 16,info.active = 1
<6>[ 131.742218] [CAM] msm_pmem_region_lookup_2:info.type=14, pmem_type = 16,info.active = 1
<6>[ 131.742279] [CAM] msm_pmem_region_lookup_2:info.type=14, pmem_type = 16,info.active = 1
<6>[ 131.742462] [CAM] axi_data.bufnum1 = 1
<6>[ 131.742919] [CAM] vfe31_proc_general: V31_START
<6>[ 131.743469] [CAM] msm_camio_set_perf_lvl: S_PREVIEW rc = 0
<6>[ 131.744598] [CAM] VFE opertaion mode = 0x2, output mode = 0x0
<6>[ 131.774597] [DISP] SHP: brightness orig=110, transformed=51
<6>[ 131.783233] [CAM] msm_io_csi_irq debug count = 2
<6>[ 131.783386] [CAM] msm_io_csi_irq irq MIPI_INTERRUPT_STATUS = 0x800800
<6>[ 131.783477] [CAM] msm_io_csi_irq irq2 MIPI_INTERRUPT_STATUS = 0x9e6a
<6>[ 131.783630] [CAM] msm_io_csi_irq debug count = 3
<6>[ 131.783721] [CAM] msm_io_csi_irq irq MIPI_INTERRUPT_STATUS = 0x400000
<6>[ 131.783874] [CAM] msm_io_csi_irq irq2 MIPI_INTERRUPT_STATUS = 0x9e6a
<6>[ 131.783966] [CAM] irq camifSofIrq, count 1
<6>[ 131.841369] [CAM] msm_io_csi_irq debug count = 4
<6>[ 131.841461] [CAM] msm_io_csi_irq irq MIPI_INTERRUPT_STATUS = 0x800800
<6>[ 131.841613] [CAM] msm_io_csi_irq irq2 MIPI_INTERRUPT_STATUS = 0x650e
<6>[ 131.841735] [CAM] msm_io_csi_irq debug count = 5
<6>[ 131.841888] [CAM] msm_io_csi_irq irq MIPI_INTERRUPT_STATUS = 0x400000
<6>[ 131.841979] [CAM] msm_io_csi_irq irq2 MIPI_INTERRUPT_STATUS = 0x650e
<6>[ 131.842132] [CAM] irq camifSofIrq, count 2
<6>[ 131.848327] [DISP] SHP: brightness orig=111, transformed=52
<6>[ 131.899505] [CAM] msm_io_csi_irq debug count = 6
<6>[ 131.899597] [CAM] msm_io_csi_irq irq MIPI_INTERRUPT_STATUS = 0x800800
<6>[ 131.899719] [CAM] msm_io_csi_irq irq2 MIPI_INTERRUPT_STATUS = 0xfd01
<6>[ 131.899871] [CAM] msm_io_csi_irq debug count = 7
<6>[ 131.900024] [CAM] msm_io_csi_irq irq MIPI_INTERRUPT_STATUS = 0x400000
<6>[ 131.900115] [CAM] msm_io_csi_irq irq2 MIPI_INTERRUPT_STATUS = 0xfd01
<6>[ 131.900268] [CAM] irq camifSofIrq, count 3
<6>[ 131.922454] [DISP] SHP: brightness orig=112, transformed=52
<6>[ 131.957641] [CAM] msm_io_csi_irq debug count = 8
<6>[ 131.957763] [CAM] msm_io_csi_irq irq MIPI_INTERRUPT_STATUS = 0x800800
<6>[ 131.957977] [CAM] msm_io_csi_irq irq2 MIPI_INTERRUPT_STATUS = 0x6c4a
<6>[ 131.958129] [CAM] msm_io_csi_irq debug count = 9
<6>[ 131.958343] [CAM] msm_io_csi_irq irq MIPI_INTERRUPT_STATUS = 0x400000
<6>[ 131.958465] [CAM] msm_io_csi_irq irq2 MIPI_INTERRUPT_STATUS = 0x6c4a
<6>[ 131.958679] [CAM] irq camifSofIrq, count 4
<6>[ 131.996582] [DISP] SHP: brightness orig=113, transformed=53
<6>[ 132.015777] [CAM] msm_io_csi_irq debug count = 10
<6>[ 132.015930] [CAM] msm_io_csi_irq irq MIPI_INTERRUPT_STATUS = 0x800800
<6>[ 132.016174] [CAM] msm_io_csi_irq irq2 MIPI_INTERRUPT_STATUS = 0x2c0a
<6>[ 132.016296] [CAM] msm_io_csi_irq debug count = 11
<6>[ 132.016540] [CAM] msm_io_csi_irq irq MIPI_INTERRUPT_STATUS = 0x400000
<6>[ 132.016662] [CAM] msm_io_csi_irq irq2 MIPI_INTERRUPT_STATUS = 0x2c0a
<6>[ 132.016937] [CAM] irq camifSofIrq, count 5
<6>[ 132.073852] [DISP] SHP: brightness orig=114, transformed=53
<6>[ 132.074096] [CAM] msm_io_csi_irq debug count = 12
<6>[ 132.074218] [CAM] msm_io_csi_irq irq MIPI_INTERRUPT_STATUS = 0x800800
<6>[ 132.074462] [CAM] msm_io_csi_irq irq2 MIPI_INTERRUPT_STATUS = 0x6891
<6>[ 132.074615] [CAM] msm_io_csi_irq debug count = 13
<6>[ 132.074829] [CAM] msm_io_csi_irq irq MIPI_INTERRUPT_STATUS = 0x400000
<6>[ 132.074981] [CAM] msm_io_csi_irq irq2 MIPI_INTERRUPT_STATUS = 0x6891
<6>[ 132.075225] [CAM] irq camifSofIrq, count 6
<6>[ 132.132080] [CAM] msm_io_csi_irq debug count = 14
<6>[ 132.132232] [CAM] msm_io_csi_irq irq MIPI_INTERRUPT_STATUS = 0x800800
<6>[ 132.132385] [CAM] msm_io_csi_irq irq2 MIPI_INTERRUPT_STATUS = 0x9fbc
<6>[ 132.132720] [CAM] msm_io_csi_irq debug count = 15
<6>[ 132.132873] [CAM] msm_io_csi_irq irq MIPI_INTERRUPT_STATUS = 0x400000
<6>[ 132.133148] [CAM] msm_io_csi_irq irq2 MIPI_INTERRUPT_STATUS = 0x9fbc
<6>[ 132.133300] [CAM] irq camifSofIrq, count 7
<6>[ 132.173309] [DISP] SHP: brightness orig=115, transformed=54
<6>[ 132.175109] [DISP] SHP: brightness orig=116, transformed=54
<6>[ 132.190216] [CAM] msm_io_csi_irq debug count = 16
<6>[ 132.190338] [CAM] msm_io_csi_irq irq MIPI_INTERRUPT_STATUS = 0x800800
<6>[ 132.190521] [CAM] msm_io_csi_irq irq2 MIPI_INTERRUPT_STATUS = 0x86f9
<6>[ 132.190643] [CAM] msm_io_csi_irq debug count = 17
<6>[ 132.190826] [CAM] msm_io_csi_irq irq MIPI_INTERRUPT_STATUS = 0x400000
<6>[ 132.190917] [CAM] msm_io_csi_irq irq2 MIPI_INTERRUPT_STATUS = 0x86f9
<6>[ 132.191101] [CAM] irq camifSofIrq, count 8
<6>[ 132.248382] [CAM] msm_io_csi_irq debug count = 18
<6>[ 132.248504] [CAM] msm_io_csi_irq irq MIPI_INTERRUPT_STATUS = 0x800800
<6>[ 132.248718] [CAM] msm_io_csi_irq irq2 MIPI_INTERRUPT_STATUS = 0x58f6
<6>[ 132.248931] [CAM] msm_io_csi_irq debug count = 19
<6>[ 132.249053] [CAM] msm_io_csi_irq irq MIPI_INTERRUPT_STATUS = 0x400000
<6>[ 132.249237] [CAM] msm_io_csi_irq irq2 MIPI_INTERRUPT_STATUS = 0x58f6