[Galaxy S Plus I9001 Android Development] mirred:
I've tried Camera on i8150 Arco CM9 alpha 5 with some replaced libs and hal.

Camera init looks good:

I/QualcommCameraHardware( 142): Found a matching camera info for ID 0
I/QualcommCameraHardware( 142): HAL_getCameraInfo: orientation = 90
I/CameraHAL( 142): camera_get_camera_info: id:0 faceing:0 orientation: 90
I/QualcommCameraHardware( 142): Found a matching camera info for ID 1
I/QualcommCameraHardware( 142): HAL_getCameraInfo: orientation = 270
I/CameraHAL( 142): camera_get_camera_info: id:1 faceing:1 orientation: 270
V/CameraHolder( 914): open camera 0
I/QualcommCameraHardware( 142): Found a matching camera info for ID 0
I/QualcommCameraHardware( 142): HAL_getCameraInfo: orientation = 90
I/CameraHAL( 142): camera_get_camera_info: id:0 faceing:0 orientation: 90
I/CameraService( 142): Opening camera 0
I/CameraHAL( 142): camera_device open+++
I/QualcommCameraHardware( 142): getCameraInfo: IN
I/QualcommCameraHardware( 142): getCameraInfo: loading libqcamera at 0xb000f4b0
I/QualcommCameraHardware( 142): getCameraInfo: numOfCameras = 2
I/QualcommCameraHardware( 142): Camera sensor 0 info:
I/QualcommCameraHardware( 142): camera_id: 0
I/QualcommCameraHardware( 142): modes_supported: 1
I/QualcommCameraHardware( 142): position: 0
I/QualcommCameraHardware( 142): sensor_mount_angle: 0
I/QualcommCameraHardware( 142): Camera sensor 1 info:
I/QualcommCameraHardware( 142): camera_id: 1
I/QualcommCameraHardware( 142): modes_supported: 1
I/QualcommCameraHardware( 142): position: 1
I/QualcommCameraHardware( 142): sensor_mount_angle: 0
V/QualcommCameraHardware( 142): getCameraInfo: dlclose(libqcamera)
I/QualcommCameraHardware( 142): getCameraInfo: OUT
I/QualcommCameraHardware( 142): openCameraHardware: call createInstance
I/QualcommCameraHardware( 142): openCameraHardware:Valid camera ID 0
I/QualcommCameraHardware( 142): createInstance: E
I/QualcommCameraHardware( 142): QualcommCameraHardware constructor E
V/QualcommCameraHardware( 142): MMCameraDL: E
V/QualcommCameraHardware( 142): Open MM camera DL libeomcamera loaded at 0xb000f4b0
V/QualcommCameraHardware( 142): MMCameraDL: X
V/QualcommCameraHardware( 142): Storing the current target type as 3
V/QualcommCameraHardware( 142): setExifFixAttribute E
V/QualcommCameraHardware( 142): setExifFixAttribute X
V/QualcommCameraHardware( 142): constructor EX
I/QualcommCameraHardware( 142): createInstance: created hardware=0x20ab8
V/QualcommCameraHardware( 142): startCamera E
V/QualcommCameraHardware( 142): loading liboemcamera at 0xb000f4b0
V/QualcommCameraHardware( 142): !@openCamera : E
V/QualcommCameraHardware( 142): !@openCamera : X
V/QualcommCameraHardware( 142): startCamera picture_sizes 0xa774a438 PICTURE_SIZE_COUNT 8
V/QualcommCameraHardware( 142): startCamera preview_sizes 0xa774a478 previewSizeCount 12
V/QualcommCameraHardware( 142): startCamera X
I/QualcommCameraHardware( 142): initDefaultParameters E
V/QualcommCameraHardware( 142): AutoFocus is supported
V/QualcommCameraHardware( 142): DISABLE DIS
E/QualcommCameraHardware( 142): Failed to get maximum zoom value...setting max zoom to zero
V/QualcommCameraHardware( 142): setParameters: E params = 0x20ac0
V/QualcommCameraHardware( 142): requested preview size 320 x 240
V/QualcommCameraHardware( 142): requested picture size 2560 x 1920
V/QualcommCameraHardware( 142): native_set_ext_config E (cmd 24, param1 0 param2 0)
V/QualcommCameraHardware( 142): requested jpeg thumbnail size 320 x 240
V/QualcommCameraHardware( 142): native_set_ext_config E (cmd 46, param1 0 param2 0)
E/QualcommCameraHardware( 142): Set zoom=0 mZoom=-1
V/QualcommCameraHardware( 142): native_set_ext_config E (cmd 11, param1 0 param2 0)
V/QualcommCameraHardware( 142): native_set_ext_config E (cmd 1, param1 0 param2 1)
V/QualcommCameraHardware( 142): setMode, mMode : 0
V/QualcommCameraHardware( 142): requested preview frame rate is 31
V/QualcommCameraHardware( 142): native_set_ext_config E (cmd 12, param1 31 param2 0)
V/QualcommCameraHardware( 142): setPreviewFrameRateMode: frame-rate-auto
V/QualcommCameraHardware( 142): native_set_ext_config E (cmd 13, param1 0 param2 0)
V/QualcommCameraHardware( 142): native_set_ext_config E (cmd 13, param1 31 param2 0)
I/Process ( 218): Sending signal. PID: 914 SIG: 3
I/dalvikvm( 914): threadid=3: reacting to signal 3
V/QualcommCameraHardware( 142): setParameters str: auto, value: 0
V/QualcommCameraHardware( 142): new brightness value : 0
V/QualcommCameraHardware( 142): native_set_ext_config E (cmd 10, param1 0 param2 0)
V/QualcommCameraHardware( 142): setting sharpness 2
V/QualcommCameraHardware( 142): native_set_ext_config E (cmd 4, param1 2 param2 0)
V/QualcommCameraHardware( 142): setting contrast 2
V/QualcommCameraHardware( 142): native_set_ext_config E (cmd 9, param1 2 param2 0)
V/QualcommCameraHardware( 142): Setting saturation 2
V/QualcommCameraHardware( 142): native_set_ext_config E (cmd 6, param1 2 param2 0)
V/QualcommCameraHardware( 142): setParameters: X
V/QualcommCameraHardware( 142): Using Overlay : YES
I/QualcommCameraHardware( 142): initDefaultParameters X
I/QualcommCameraHardware( 142): createInstance: X
I/CameraHAL( 142): camera_device_open---ok rv 0
I/CameraHAL( 142): camera_set_callbacks+++,device 0x1c7c8
I/CameraHAL( 142): camera_set_callbacks---
I/CameraHAL( 142): camera_enable_msg_type+++: type 13 device 0x1c7c8
I/CameraHAL( 142): camera_enable_msg_type: CAMERA_MSG_ERROR
I/CameraHAL( 142): camera_enable_msg_type: CAMERA_MSG_FOCUS
I/CameraHAL( 142): camera_enable_msg_type: CAMERA_MSG_ZOOM
I/CameraHAL( 142): camera_enable_msg_type---
I/AwesomePlayer( 142): setDataSource_l('/system/media/audio/ui/camera_click.ogg')
I/dalvikvm( 914): Wrote stack traces to '/data/anr/traces.txt'
E/OMXCodec( 142): Attempting to allocate OMX node 'OMX.google.vorbis.decoder'
E/OMXCodec( 142): Successfully allocated OMX node 'OMX.google.vorbis.decoder'
I/AwesomePlayer( 142): setDataSource_l('/system/media/audio/ui/VideoRecord.ogg')
E/OMXCodec( 142): Attempting to allocate OMX node 'OMX.google.vorbis.decoder'
E/OMXCodec( 142): Successfully allocated OMX node 'OMX.google.vorbis.decoder'
I/CameraHAL( 142): camera_get_parameters+++: device 0x1c7c8

Dmesg:

<4>[ 41.224487] [CAMDRV] config_camera_on_gpios
<4>[ 41.326721] [S5K4ECGX]Camera Sensor Power ON
<4>[ 41.395843] [S5K4ECGX]s5k4ecgx_I2C_client :dfc03560
<4>[ 41.395843] [S5K4ECGX]s5k4ecgx_probe_init_sensor()
<4>[ 41.486358] [CAMDRV/S5K4ECGX] s5k4ecgx_sensor_burst_write : s5k4ecgx_init_reg1(size:4)
<6>[ 41.546752] msm_enqueue: queue event new max is 1
<6>[ 41.546813] msm_enqueue: queue control new max is 1
<4>[ 41.551818] [CAMDRV/S5K4ECGX] s5k4ecgx_sensor_ext_config is skipped,sensor is initialinzing.(24 0 0)
<4>[ 41.551849] [CAMDRV/S5K4ECGX] s5k4ecgx_sensor_ext_config 24 0 0
<4>[ 41.552337] [CAMDRV/S5K4ECGX] s5k4ecgx_sensor_ext_config is skipped,sensor is initialinzing.(46 0 0)
<4>[ 41.552368] [CAMDRV/S5K4ECGX] s5k4ecgx_sensor_ext_config 46 0 0
<4>[ 41.552368] [S5K4ECGX]Unexpected mode on sensor_rough_control : 46
<4>[ 41.552947] [CAMDRV/S5K4ECGX] s5k4ecgx_sensor_ext_config is skipped,sensor is initialinzing.(11 0 0)
<4>[ 41.552978] [CAMDRV/S5K4ECGX] s5k4ecgx_sensor_ext_config 11 0 0
<4>[ 41.553039] [CAMDRV/S5K4ECGX] s5k4ecgx_sensor_ext_config is skipped,sensor is initialinzing.(1 0 1)
<4>[ 41.553070] [CAMDRV/S5K4ECGX] s5k4ecgx_sensor_ext_config 1 0 1
<4>[ 41.553100] [CAMDRV/S5K4ECGX] EXT_CFG_SET_FLASH_MODE: cmd=1, value_1=0, value_2=1
<4>[ 41.553131] [CAMDRV/S5K4ECGX] s5k4ecgx_set_flash, flash set is 0
<4>[ 41.557189] [CAMDRV/S5K4ECGX] s5k4ecgx_sensor_burst_write : s5k4ecgx_Pre_Flash_Off(size:3)
<4>[ 41.559020] [CAMDRV/S5K4ECGX] s5k4ecgx_sensor_ext_config is skipped,sensor is initialinzing.(12 31 0)
<4>[ 41.559051] [CAMDRV/S5K4ECGX] s5k4ecgx_sensor_ext_config 12 31 0
<4>[ 41.559234] [CAMDRV/S5K4ECGX] s5k4ecgx_sensor_ext_config is skipped,sensor is initialinzing.(13 0 0)
<4>[ 41.559265] [CAMDRV/S5K4ECGX] s5k4ecgx_sensor_ext_config 13 0 0
<4>[ 41.559295] [S5K4ECGX]Unexpected mode on sensor_rough_control : 13
<4>[ 41.560089] [CAMDRV/S5K4ECGX] s5k4ecgx_sensor_ext_config is skipped,sensor is initialinzing.(13 31 0)
<4>[ 41.560119] [CAMDRV/S5K4ECGX] s5k4ecgx_sensor_ext_config 13 31 0
<4>[ 41.560150] [S5K4ECGX]Unexpected mode on sensor_rough_control : 13
<4>[ 41.576446] [CAMDRV/S5K4ECGX] s5k4ecgx_sensor_ext_config is skipped,sensor is initialinzing.(10 0 0)
<4>[ 41.576477] [CAMDRV/S5K4ECGX] s5k4ecgx_sensor_ext_config 10 0 0
<4>[ 41.576538] [CAMDRV/S5K4ECGX] s5k4ecgx_sensor_burst_write : s5k4ecgx_ae_unlock(size:3)
<4>[ 41.593139] [CAMDRV/S5K4ECGX] s5k4ecgx_sensor_ext_config is skipped,sensor is initialinzing.(4 2 0)
<4>[ 41.593170] [CAMDRV/S5K4ECGX] s5k4ecgx_sensor_ext_config 4 2 0
<4>[ 41.593597] [CAMDRV/S5K4ECGX] s5k4ecgx_sensor_ext_config is skipped,sensor is initialinzing.(9 2 0)
<4>[ 41.593627] [CAMDRV/S5K4ECGX] s5k4ecgx_sensor_ext_config 9 2 0
<4>[ 41.593872] [CAMDRV/S5K4ECGX] s5k4ecgx_sensor_ext_config is skipped,sensor is initialinzing.(6 2 0)
<4>[ 41.593902] [CAMDRV/S5K4ECGX] s5k4ecgx_sensor_ext_config 6 2 0

But now HAL hangs on camera_get_parameters.

It can be because HAL or some mismatch in framework.