monky 发表于 2019-9-22 18:12:58

系统相机调用USB camera提示Camera error,下载的360相机调用没问题

RK3399,Android7.1,
上网查了很多资料,基本没有这种情况,有说是系统相机分辨率的问题,修改了 hardware/rockchip/camera/CameraHal/CameraUSBAdapter.cpp文件里的分辨率,改为1280*720,1920*1080,都不行,打开系统相机还是提示camera error。下面是CameraHAL的log

09-22 16:38:34.091   2482135 D CameraHal: createInstance(1015): open xml file(/etc/cam_board.xml) success
09-22 16:38:34.091   2482135 E CameraHal: cam_board.xml version(v0x0.0x0.0x0) != xml parser version(v0x0.0xf.0x0)
09-22 16:38:34.092   2482135 D CameraHal:
09-22 16:38:34.092   2482135 D CameraHal:
09-22 16:38:34.092   2482135 D CameraHal:
09-22 16:38:34.092   2482135 D CameraHal:Cam_board.xml Version Check:
09-22 16:38:34.092   2482135 D CameraHal:   /etc/cam_board.xml : v0.0xf.0
09-22 16:38:34.092   2482135 D CameraHal:   CameraHal_board_xml_parser: v0x0.0xf.0x0
09-22 16:38:34.092   2482135 D CameraHal: ParserSensorInfo(170): SensorName(OV13850)
09-22 16:38:34.092   2482135 D CameraHal: ParserSensorInfo(176): lensName(50013A1)
09-22 16:38:34.092   2482135 D CameraHal: ParserSensorInfo(178): SensorDevID(CAMSYS_DEVID_SENSOR_1B)
09-22 16:38:34.092   2482135 D CameraHal: ParserSensorInfo(189): SensorDevID(33554432)
09-22 16:38:34.092   2482135 D CameraHal: ParserSensorInfo(191): SensorHostDevID(CAMSYS_DEVID_MARVIN)
09-22 16:38:34.092   2482135 D CameraHal: ParserSensorInfo(206): Sensori2cBusNum(1)
09-22 16:38:34.092   2482135 D CameraHal: ParserSensorInfo(209): SensorI2cAddrByte(2)
09-22 16:38:34.092   2482135 D CameraHal: ParserSensorInfo(212): SensorI2cRate(100000)
09-22 16:38:34.092   2482135 D CameraHal: ParserSensorInfo(220): SensorAvdd(NC) min(28000000) max(28000000)
09-22 16:38:34.092   2482135 D CameraHal: ParserSensorInfo(234): SensorDvdd(NC) min(12000000) max(12000000)
09-22 16:38:34.092   2482135 D CameraHal: ParserSensorInfo(227): SensorDovdd(NC) min(18000000) max(18000000)
09-22 16:38:34.092   2482135 D CameraHal: ParserSensorInfo(215): SensorMclk(24000000)
09-22 16:38:34.092   2482135 D CameraHal: ParserSensorInfo(265): SensorGpioPwen(NC) active(1)
09-22 16:38:34.092   2482135 D CameraHal: ParserSensorInfo(259): SensorGpioRst(RK30_PIN0_PB0) active(0)
09-22 16:38:34.092   2482135 D CameraHal: ParserSensorInfo(241): SensorGpioPwdn(RK30_PIN2_PA1) active(0)
09-22 16:38:34.092   2482135 D CameraHal: ParserSensorInfo(271): SensorFacing(front)
09-22 16:38:34.093   2482135 D CameraHal: ParserSensorInfo(280): SensorInterface(MIPI)
09-22 16:38:34.093   2482135 D CameraHal: ParserSensorInfo(293): SensorMirrorFlip(0)
09-22 16:38:34.093   2482135 D CameraHal: ParserSensorInfo(296): SensorOrientation(180)
09-22 16:38:34.093   2482135 D CameraHal: ParserSensorInfo(415): SensorFovParemeter fov_h(60.0)(60.000000) fov_v(60.0)(60.000000)
09-22 16:38:34.093   2482135 D CameraHal: ParserSensorInfo(418): SensorAWB_Frame_Skip fps(15)
09-22 16:38:34.093   2482135 D CameraHal: ParserSensorInfo(377): SensorGpioPwdn(RK30_PIN2_PA1) active(0)
09-22 16:38:34.093   2482135 D CameraHal: ParserSensorInfo(385): SensorPhy: MIPIlane: 2phyindex: 0fmt: 0x2b
09-22 16:38:34.093   2482135 D CameraHal: ParserVCMInfo(430): VCMDrvName(DW9714)
09-22 16:38:34.093   2482135 D CameraHal: ParserVCMInfo(433): VCMName(HuaYong6505)
09-22 16:38:34.093   2482135 D CameraHal: ParserVCMInfo(436): VCMI2cBusNum(1)
09-22 16:38:34.093   2482135 D CameraHal: ParserVCMInfo(439): VCMI2cAddrByte(0)
09-22 16:38:34.093   2482135 D CameraHal: ParserVCMInfo(442): VCMI2cRate(0)
09-22 16:38:34.093   2482135 D CameraHal: ParserVCMInfo(457): VCMVdd(NC) min(0) max(0)
09-22 16:38:34.093   2482135 D CameraHal: ParserVCMInfo(451): VCMGpioPower(NC) active(0)
09-22 16:38:34.093   2482135 D CameraHal: ParserVCMInfo(445): VCMGpioPwdn(NC) active(0)
09-22 16:38:34.095   2482135 D CameraHal: ParserVCMInfo(470): start current(20) rated current(80) vcm max(100)step mode(13)drv max(100)
09-22 16:38:34.095   2482135 D CameraHal: ParserFlashInfo(489): FlashName(Internal)
09-22 16:38:34.095   2482135 D CameraHal: ParserFlashInfo(492): FlashI2cBusNum(0)
09-22 16:38:34.095   2482135 D CameraHal: ParserFlashInfo(495): FlashI2cAddrByte(0)
09-22 16:38:34.095   2482135 D CameraHal: ParserFlashInfo(498): FlashI2cRate(0)
09-22 16:38:34.095   2482135 D CameraHal: ParserFlashInfo(501): FlashTrigger(NC) active(0)
09-22 16:38:34.095   2482135 D CameraHal: ParserFlashInfo(505): FlashEn(NC) active(0)
09-22 16:38:34.095   2482135 D CameraHal: ParserFlashInfo(512): FlashLuminance(0)
09-22 16:38:34.095   2482135 D CameraHal: ParserFlashInfo(515): FlashColorTemp(0)
09-22 16:38:34.096   2482135 D CameraHal: StartElementHandler(944): HDR(1)!
09-22 16:38:34.096   2482135 D CameraHal: StartElementHandler(948): ZSL(1)!
09-22 16:38:34.096   2482135 D CameraHal: StartElementHandler(952): zoom(1)!
09-22 16:38:34.096   2482135 D CameraHal: StartElementHandler(994): Continue_SnapShot(1)!
09-22 16:38:34.096   2482135 D CameraHal: StartElementHandler(997): InterpolationRes(0)!
09-22 16:38:34.096   2482135 D CameraHal: StartElementHandler(982): PreviewSize(1920x1080)!
09-22 16:38:34.096   2482135 D CameraHal: StartElementHandler(978): face detect config(0),max face num is (1)!
09-22 16:38:34.096   2482135 D CameraHal: ParserDVConfig(782):DV_QCIF(qcif) resolution(176x144) fps(10) support(1)
09-22 16:38:34.096   2482135 D CameraHal: ParserDVConfig(794):DV_QVGA(qvga) resolution(320x240) fps(10) support(1)
09-22 16:38:34.096   2482135 D CameraHal: ParserDVConfig(806):DV_CIF(cif) resolution(352x288) fps(10) support(1)
09-22 16:38:34.096   2482135 D CameraHal: ParserDVConfig(818):DV_VGA(480p) resolution(640x480) fps(10) support(0)
09-22 16:38:34.096   2482135 D CameraHal: ParserDVConfig(830):DV_480P(480p) resolution(720x480) fps(10) support(0)
09-22 16:38:34.096   2482135 D CameraHal: ParserDVConfig(854):DV_720P(720p) resolution(1280x720) fps(10) support(1)
09-22 16:38:34.096   2482135 D CameraHal: ParserDVConfig(866):DV_1080P(1080p) resolution(1920x1080) fps(10) support(1)
09-22 16:38:34.097   2482135 D CameraHal: ParserSensorInfo(170): SensorName(OV13850)
09-22 16:38:34.097   2482135 D CameraHal: ParserSensorInfo(176): lensName(50013A1)
09-22 16:38:34.097   2482135 D CameraHal: ParserSensorInfo(178): SensorDevID(CAMSYS_DEVID_SENSOR_1A)
09-22 16:38:34.097   2482135 D CameraHal: ParserSensorInfo(189): SensorDevID(16777216)
09-22 16:38:34.097   2482135 D CameraHal: ParserSensorInfo(191): SensorHostDevID(CAMSYS_DEVID_MARVIN)
09-22 16:38:34.097   2482135 D CameraHal: ParserSensorInfo(206): Sensori2cBusNum(1)
09-22 16:38:34.097   2482135 D CameraHal: ParserSensorInfo(209): SensorI2cAddrByte(2)
09-22 16:38:34.097   2482135 D CameraHal: ParserSensorInfo(212): SensorI2cRate(100000)
09-22 16:38:34.097   2482135 D CameraHal: ParserSensorInfo(220): SensorAvdd(NC) min(28000000) max(28000000)
09-22 16:38:34.097   2482135 D CameraHal: ParserSensorInfo(234): SensorDvdd(NC) min(12000000) max(12000000)
09-22 16:38:34.097   2482135 D CameraHal: ParserSensorInfo(227): SensorDovdd(NC) min(18000000) max(18000000)
09-22 16:38:34.097   2482135 D CameraHal: ParserSensorInfo(215): SensorMclk(24000000)
09-22 16:38:34.097   2482135 D CameraHal: ParserSensorInfo(265): SensorGpioPwen(NC) active(1)
09-22 16:38:34.097   2482135 D CameraHal: ParserSensorInfo(259): SensorGpioRst(RK30_PIN0_PB0) active(0)
09-22 16:38:34.097   2482135 D CameraHal: ParserSensorInfo(241): SensorGpioPwdn(RK30_PIN2_PA0) active(0)
09-22 16:38:34.097   2482135 D CameraHal: ParserSensorInfo(271): SensorFacing(back)
09-22 16:38:34.097   2482135 D CameraHal: ParserSensorInfo(280): SensorInterface(MIPI)
09-22 16:38:34.097   2482135 D CameraHal: ParserSensorInfo(293): SensorMirrorFlip(0)
09-22 16:38:34.097   2482135 D CameraHal: ParserSensorInfo(296): SensorOrientation(180)
09-22 16:38:34.097   2482135 D CameraHal: ParserSensorInfo(415): SensorFovParemeter fov_h(60.0)(60.000000) fov_v(60.0)(60.000000)
09-22 16:38:34.097   2482135 D CameraHal: ParserSensorInfo(418): SensorAWB_Frame_Skip fps(15)
09-22 16:38:34.097   2482135 E CameraHal: ParserSensorInfo(368): SensorPhy:phyindex: 1,open /dev/camsys_marvin1       
09-22 16:38:34.097   2482135 D CameraHal: ParserSensorInfo(377): SensorGpioPwdn(RK30_PIN2_PA0) active(0)
09-22 16:38:34.097   2482135 D CameraHal: ParserSensorInfo(385): SensorPhy: MIPIlane: 2phyindex: 1fmt: 0x2b
09-22 16:38:34.098   2482135 D CameraHal: ParserVCMInfo(430): VCMDrvName(DW9714)
09-22 16:38:34.098   2482135 D CameraHal: ParserVCMInfo(433): VCMName(HuaYong6505)
09-22 16:38:34.098   2482135 D CameraHal: ParserVCMInfo(436): VCMI2cBusNum(1)
09-22 16:38:34.098   2482135 D CameraHal: ParserVCMInfo(439): VCMI2cAddrByte(0)
09-22 16:38:34.098   2482135 D CameraHal: ParserVCMInfo(442): VCMI2cRate(0)
09-22 16:38:34.098   2482135 D CameraHal: ParserVCMInfo(457): VCMVdd(NC) min(0) max(0)
09-22 16:38:34.098   2482135 D CameraHal: ParserVCMInfo(451): VCMGpioPower(NC) active(0)
09-22 16:38:34.098   2482135 D CameraHal: ParserVCMInfo(445): VCMGpioPwdn(NC) active(0)
09-22 16:38:34.098   2482135 D CameraHal: ParserVCMInfo(470): start current(20) rated current(80) vcm max(100)step mode(13)drv max(100)
09-22 16:38:34.098   2482135 D CameraHal: ParserFlashInfo(489): FlashName(Internal)
09-22 16:38:34.098   2482135 D CameraHal: ParserFlashInfo(492): FlashI2cBusNum(0)
09-22 16:38:34.098   2482135 D CameraHal: ParserFlashInfo(495): FlashI2cAddrByte(0)
09-22 16:38:34.098   2482135 D CameraHal: ParserFlashInfo(498): FlashI2cRate(0)
09-22 16:38:34.098   2482135 D CameraHal: ParserFlashInfo(501): FlashTrigger(NC) active(0)
09-22 16:38:34.098   2482135 D CameraHal: ParserFlashInfo(505): FlashEn(NC) active(0)
09-22 16:38:34.098   2482135 D CameraHal: ParserFlashInfo(512): FlashLuminance(0)
09-22 16:38:34.098   2482135 D CameraHal: ParserFlashInfo(515): FlashColorTemp(0)
09-22 16:38:34.098   2482135 D CameraHal: StartElementHandler(944): HDR(1)!
09-22 16:38:34.098   2482135 D CameraHal: StartElementHandler(948): ZSL(1)!
09-22 16:38:34.098   2482135 D CameraHal: StartElementHandler(952): zoom(1)!
09-22 16:38:34.098   2482135 D CameraHal: StartElementHandler(994): Continue_SnapShot(1)!
09-22 16:38:34.098   2482135 D CameraHal: StartElementHandler(997): InterpolationRes(0)!
09-22 16:38:34.098   2482135 D CameraHal: StartElementHandler(982): PreviewSize(1920x1080)!
09-22 16:38:34.099   2482135 D CameraHal: StartElementHandler(978): face detect config(0),max face num is (1)!
09-22 16:38:34.099   2482135 D CameraHal: ParserDVConfig(782):DV_QCIF(qcif) resolution(176x144) fps(10) support(1)
09-22 16:38:34.099   2482135 D CameraHal: ParserDVConfig(794):DV_QVGA(qvga) resolution(320x240) fps(10) support(1)
09-22 16:38:34.099   2482135 D CameraHal: ParserDVConfig(806):DV_CIF(cif) resolution(352x288) fps(10) support(1)
09-22 16:38:34.099   2482135 D CameraHal: ParserDVConfig(818):DV_VGA(480p) resolution(640x480) fps(10) support(0)
09-22 16:38:34.099   2482135 D CameraHal: ParserDVConfig(830):DV_480P(480p) resolution(720x480) fps(10) support(0)
09-22 16:38:34.099   2482135 D CameraHal: ParserDVConfig(854):DV_720P(720p) resolution(1280x720) fps(10) support(1)
09-22 16:38:34.099   2482135 D CameraHal: ParserDVConfig(866):DV_1080P(1080p) resolution(1920x1080) fps(10) support(1)
09-22 16:38:34.099   2482135 D CameraHal: number of camdevice (2)
09-22 16:38:34.099   2482135 D CameraHal: now DV size(7)
09-22 16:38:34.099   2482135 E CameraHal: camera_get_number_of_cameras(781): board profiles cam num 2
09-22 16:38:34.158   2482135 D CameraHal: camera_get_number_of_cameras(793): Open /dev/video0 success!
09-22 16:38:34.160   2482135 E CameraHal: camera_get_number_of_cameras(789): Open /dev/video1 failed! strr: No such file or directory
09-22 16:38:34.160   2482135 D CameraHal: read cam name from xml(/data/camera/media_profiles.xml)
09-22 16:38:34.160   2482135 D CameraHal: videoname0="UVC Camera" index=2 facing=0 -->
09-22 16:38:34.160   2482135 D CameraHal:
09-22 16:38:34.161   2482135 D CameraHal: find camera count(1) cam1(UVC Camera) cam2()
09-22 16:38:34.161   2482135 E CameraHal: camera_get_number_of_cameras(807): load sensor name(OV13850) connect 0
09-22 16:38:34.161   2482135 E CameraHal: camera_get_number_of_cameras(807): load sensor name(OV13850) connect 0
09-22 16:38:34.161   2482135 D CameraHal: camera_get_number_of_cameras(869): Open /dev/video0 success!
09-22 16:38:34.164   2482135 E CameraHal: camera_get_number_of_cameras(866): Open /dev/video1 failed! strr: No such file or directory
09-22 16:38:34.164   2482135 E CameraHal: camera_get_number_of_cameras(866): Open /dev/video2 failed! strr: No such file or directory
09-22 16:38:34.164   2482135 E CameraHal: camera_get_number_of_cameras(866): Open /dev/video3 failed! strr: No such file or directory
09-22 16:38:34.164   2482135 E CameraHal: camera_get_number_of_cameras(866): Open /dev/video4 failed! strr: No such file or directory
09-22 16:38:34.164   2482135 E CameraHal: camera_get_number_of_cameras(866): Open /dev/video5 failed! strr: No such file or directory
09-22 16:38:34.164   2482135 E CameraHal: camera_get_number_of_cameras(866): Open /dev/video6 failed! strr: No such file or directory
09-22 16:38:34.164   2482135 E CameraHal: camera_get_number_of_cameras(866): Open /dev/video7 failed! strr: No such file or directory
09-22 16:38:34.164   2482135 E CameraHal: camera_get_number_of_cameras(866): Open /dev/video8 failed! strr: No such file or directory
09-22 16:38:34.164   2482135 E CameraHal: camera_get_number_of_cameras(866): Open /dev/video9 failed! strr: No such file or directory
09-22 16:38:34.164   2482135 D CameraHal: judge the media profile xml fileexit = 0
09-22 16:38:34.164   2482135 D CameraHal: (UVC Camera) UVC camera resolution(640x480) is support
09-22 16:38:34.164   2482135 D CameraHal: (UVC Camera) UVC camera resolution(1280x720) is support
09-22 16:38:34.164   2482135 D CameraHal: (UVC Camera) UVC camera resolution(1920x1080) is support
09-22 16:38:34.169   2482135 D CameraHal: find element camid(0) quality(qcif) width(176)
09-22 16:38:34.169   2482135 D CameraHal: XML modify: camID(0) resolution:qcif(176x144) fps(10) isaddmark(1)
09-22 16:38:34.169   2482135 D CameraHal: find element camid(0) quality(qvga) width(320)
09-22 16:38:34.169   2482135 D CameraHal: XML modify: camID(0) resolution:qvga(320x240) fps(30) isaddmark(1)
09-22 16:38:34.170   2482135 D CameraHal: find element camid(0) quality(cif) width(352)
09-22 16:38:34.170   2482135 D CameraHal: XML modify: camID(0) resolution:cif(352x288) fps(10) isaddmark(1)
09-22 16:38:34.170   2482135 D CameraHal: find element camid(0) quality(480p) width(640)
09-22 16:38:34.170   2482135 D CameraHal: XML modify: camID(0) resolution:480p(640x480) fps(60) isaddmark(0)
09-22 16:38:34.171   2482135 D CameraHal: find element camid(0) quality(480p) width(720)
09-22 16:38:34.171   2482135 D CameraHal: XML modify: camID(0) resolution:480p(720x480) fps(10) isaddmark(1)
09-22 16:38:34.172   2482135 D CameraHal: find element camid(0) quality(480p) width(800)
09-22 16:38:34.172   2482135 D CameraHal: XML modify: camID(0) resolution:480p(800x600) fps(10) isaddmark(1)
09-22 16:38:34.172   2482135 D CameraHal: find element camid(0) quality(576p) width(720)
09-22 16:38:34.172   2482135 D CameraHal: WARNING: can't find camID(0) resolution:576p(720x576), addmark!!!
09-22 16:38:34.172   2482135 D CameraHal: find element camid(0) quality(720p) width(1280)
09-22 16:38:34.172   2482135 D CameraHal: XML modify: camID(0) resolution:720p(1280x720) fps(60) isaddmark(0)
09-22 16:38:34.172   2482135 D CameraHal: find element camid(0) quality(1080p) width(1920)
09-22 16:38:34.172   2482135 D CameraHal: XML modify: camID(0) resolution:1080p(1920x1080) fps(60) isaddmark(0)
09-22 16:38:34.172   2482135 D CameraHal: find element camid(0) quality(qcif) width(176)
09-22 16:38:34.172   2482135 D CameraHal: XML modify: camID(0) resolution:qcif(176x144) fps(10) isaddmark(1)
09-22 16:38:34.172   2482135 D CameraHal: find element camid(0) quality(qvga) width(320)
09-22 16:38:34.172   2482135 D CameraHal: XML modify: camID(0) resolution:qvga(320x240) fps(30) isaddmark(1)
09-22 16:38:34.173   2482135 D CameraHal: find element camid(0) quality(cif) width(352)
09-22 16:38:34.173   2482135 D CameraHal: XML modify: camID(0) resolution:cif(352x288) fps(10) isaddmark(1)
09-22 16:38:34.173   2482135 D CameraHal: find element camid(0) quality(480p) width(640)
09-22 16:38:34.173   2482135 D CameraHal: XML modify: camID(0) resolution:480p(640x480) fps(60) isaddmark(0)
09-22 16:38:34.173   2482135 D CameraHal: find element camid(0) quality(480p) width(720)
09-22 16:38:34.173   2482135 D CameraHal: XML modify: camID(0) resolution:480p(720x480) fps(10) isaddmark(1)
09-22 16:38:34.173   2482135 D CameraHal: find element camid(0) quality(480p) width(800)
09-22 16:38:34.173   2482135 D CameraHal: XML modify: camID(0) resolution:480p(800x600) fps(10) isaddmark(1)
09-22 16:38:34.173   2482135 D CameraHal: find element camid(0) quality(480p) width(800)
09-22 16:38:34.173   2482135 D CameraHal: XML modify: camID(0) resolution:480p(800x600) fps(10) isaddmark(1)
09-22 16:38:34.173   2482135 D CameraHal: find element camid(0) quality(576p) width(720)
09-22 16:38:34.173   2482135 D CameraHal: WARNING: can't find camID(0) resolution:576p(720x576), addmark!!!
09-22 16:38:34.174   2482135 D CameraHal: find element camid(0) quality(720p) width(1280)
09-22 16:38:34.174   2482135 D CameraHal: XML modify: camID(0) resolution:720p(1280x720) fps(60) isaddmark(0)
09-22 16:38:34.174   2482135 D CameraHal: find element camid(0) quality(1080p) width(1920)
09-22 16:38:34.174   2482135 D CameraHal: XML modify: camID(0) resolution:1080p(1920x1080) fps(60) isaddmark(0)
09-22 16:38:34.174   2482135 D CameraHal: find element camid(1) quality(qcif) width(176)
09-22 16:38:34.174   2482135 D CameraHal: WARNING: can't find camID(1) resolution:qcif(176x144), addmark!!!
09-22 16:38:34.174   2482135 D CameraHal: find element camid(1) quality(qvga) width(320)
09-22 16:38:34.174   2482135 D CameraHal: WARNING: can't find camID(1) resolution:qvga(320x240), addmark!!!
09-22 16:38:34.174   2482135 D CameraHal: find element camid(1) quality(cif) width(352)
09-22 16:38:34.174   2482135 D CameraHal: WARNING: can't find camID(1) resolution:cif(352x288), addmark!!!
09-22 16:38:34.174   2482135 D CameraHal: find element camid(1) quality(480p) width(640)
09-22 16:38:34.175   2482135 D CameraHal: WARNING: can't find camID(1) resolution:480p(640x480), addmark!!!
09-22 16:38:34.175   2482135 D CameraHal: find element camid(1) quality(480p) width(720)
09-22 16:38:34.175   2482135 D CameraHal: WARNING: can't find camID(1) resolution:480p(720x480), addmark!!!
09-22 16:38:34.175   2482135 D CameraHal: find element camid(1) quality(480p) width(800)
09-22 16:38:34.175   2482135 D CameraHal: WARNING: can't find camID(1) resolution:480p(800x600), addmark!!!
09-22 16:38:34.175   2482135 D CameraHal: find element camid(1) quality(720p) width(1280)
09-22 16:38:34.175   2482135 D CameraHal: WARNING: can't find camID(1) resolution:720p(1280x720), addmark!!!
09-22 16:38:34.175   2482135 D CameraHal: find element camid(1) quality(1080p) width(1920)
09-22 16:38:34.175   2482135 D CameraHal: WARNING: can't find camID(1) resolution:1080p(1920x1080), addmark!!!
09-22 16:38:34.175   2482135 D CameraHal: find element camid(1) quality(qcif) width(176)
09-22 16:38:34.175   2482135 D CameraHal: WARNING: can't find camID(1) resolution:qcif(176x144), addmark!!!
09-22 16:38:34.175   2482135 D CameraHal: find element camid(1) quality(qvga) width(320)
09-22 16:38:34.176   2482135 D CameraHal: WARNING: can't find camID(1) resolution:qvga(320x240), addmark!!!
09-22 16:38:34.176   2482135 D CameraHal: find element camid(1) quality(cif) width(352)
09-22 16:38:34.176   2482135 D CameraHal: WARNING: can't find camID(1) resolution:cif(352x288), addmark!!!
09-22 16:38:34.176   2482135 D CameraHal: find element camid(1) quality(480p) width(640)
09-22 16:38:34.176   2482135 D CameraHal: WARNING: can't find camID(1) resolution:480p(640x480), addmark!!!
09-22 16:38:34.176   2482135 D CameraHal: find element camid(1) quality(480p) width(720)
09-22 16:38:34.176   2482135 D CameraHal: WARNING: can't find camID(1) resolution:480p(720x480), addmark!!!
09-22 16:38:34.176   2482135 D CameraHal: find element camid(1) quality(480p) width(800)
09-22 16:38:34.176   2482135 D CameraHal: WARNING: can't find camID(1) resolution:480p(800x600), addmark!!!
09-22 16:38:34.176   2482135 D CameraHal: find element camid(1) quality(720p) width(1280)
09-22 16:38:34.176   2482135 D CameraHal: WARNING: can't find camID(1) resolution:720p(1280x720), addmark!!!
09-22 16:38:34.176   2482135 D CameraHal: find element camid(1) quality(1080p) width(1920)
09-22 16:38:34.176   2482135 D CameraHal: WARNING: can't find camID(1) resolution:1080p(1920x1080), addmark!!!
09-22 16:38:34.177   2482135 D CameraHal: camera_get_number_of_cameras(1281): camera_get_number_of_cameras(1281): Current board have 1 cameras attached.
09-22 16:38:34.177   2482135 D CameraHal: camera_get_number_of_cameras(1284): meida_profiles_xml_control time (93662)us
09-22 16:38:34.177   2482135 D CameraHal: camera_get_camera_info(1494): camera_get_camera_info(1494): camera_0 facing(1), orientation(2)
09-22 16:38:34.214   2482135 D CameraHal: camera_get_camera_info(1494): camera_get_camera_info(1494): camera_0 facing(1), orientation(2)
09-22 16:38:34.214   2482135 I CameraHal: camera_device_open(567): camera_device open
09-22 16:38:34.214   2482135 D CameraHal: gCameraHalLogLevel: 0
09-22 16:38:34.215   2482135 D CameraHal: CameraHal(124): it is a uvc camera!
09-22 16:38:34.216   2482135 D CameraHal: Calling process is: com.android.camera2
09-22 16:38:34.217   2482135 D CameraHal: Calling process is: com.android.camera2
09-22 16:38:34.274   2482135 D CameraHal: cameraCreate(378): Camera driver: uvcvideo Card Name:KS2A418-2.0 Driver version: 0x4.0x4.0x67CameraHal version: 0x1.0x51.0x1
09-22 16:38:34.275   2482135 D CameraHal: cameraCreate(385): mCamDriverSupportFmt: fmt = 1196444237(Motion-JPEG),index = 0
09-22 16:38:34.275   2482135 D CameraHal: cameraCreate(385): mCamDriverSupportFmt: fmt = 1448695129(YUYV 4:2:2),index = 1
09-22 16:38:34.275   2482135 D CameraHal: cameraCreate(423): cameraCreate(423): mCamDriverPreviewFmt(MJPG) is cameraHal and camera driver is also supported!!
09-22 16:38:34.275   2482135 D CameraHal: cameraCreate(425): mCamDriverPreviewFmt= 1196444237
09-22 16:38:34.275   2482135 D CameraHal: cameraCreate(431): cameraCreate(431): Current driver is uvcvideo, v4l2 memory is V4L2_MEMORY_MMAP
09-22 16:38:34.288   2482135 D CameraHal: initDefaultParameters(500): initDefaultParameters(500): Current driver isn't support fov query, user can update driver to v0.3.0xf
09-22 16:38:34.288   2482135 D CameraHal: initDefaultParameters(570): mIsCtsTest:0 Support video sizes:(null)
09-22 16:38:34.288   2482135 D CameraHal: initDefaultParameters(587): Support Preview format: yuv420sp,yuv420p .. yuv420sp
09-22 16:38:34.288   2482135 D CameraHal: initDefaultParameters(589): Support Preview sizes: 1280x720,640x480,1920x1080   1920x1080
09-22 16:38:34.288   2482135 D CameraHal: initDefaultParameters(590): Support Preview FPS range: (2000,60000)
09-22 16:38:34.288   2482135 D CameraHal: initDefaultParameters(591): Support Preview framerate: 60,30,20,10,5
09-22 16:38:34.288   2482135 D CameraHal: initDefaultParameters(592): Support Picture sizes: 1280x720,640x480,1920x1080
09-22 16:38:34.288   2482135 D CameraHal: initDefaultParameters(594): Support white balance: auto,incandescent,fluorescent,daylight,cloudy-daylight
09-22 16:38:34.288   2482135 D CameraHal: initDefaultParameters(602): Support focus: fixedfocus zone: 0
09-22 16:38:34.288   2482135 D CameraHal: initDefaultParameters(604): Support zoom: true(ratios: 100,105,110,115,120,125,130,135,140,145,150,155,160,165,170,175,180,185,190,195,200,205,210,215,220,225,230,235,240,245,250,255,260,265,270,275,280,285,290,295,300,)
09-22 16:38:34.288   2482135 D CameraHal: initDefaultParameters(608): Support exposure: (-3 -> 3)
09-22 16:38:34.288   2482135 D CameraHal: initDefaultParameters(612): Support anti-banding: off,50hz,60hz,autoanti-banding: off
09-22 16:38:34.288   2482135 D CameraHal: initDefaultParameters(614): Support hardware faces detecte: 2
09-22 16:38:34.288   2482135 D CameraHal: initDefaultParameters(615): Support software faces detecte: 0
09-22 16:38:34.288   2482135 D CameraHal: initDefaultParameters(616): Support video stabilization: false
09-22 16:38:34.288   2482135 D CameraHal: initDefaultParameters(617): Support recording hint: false
09-22 16:38:34.299   2482135 D CameraHal: cameraConfig(749): cameraConfig(749): Set framerate(60 fps) success
09-22 16:38:34.302   2482135 D CameraHal: cameraConfig(792): cameraConfig(792): Set white balance(auto) success
09-22 16:38:34.304   2482135 D CameraHal: cameraConfig(869): cameraConfig(869): Set anti-banding Disabled
09-22 16:38:34.306   2482135 D CameraHal: cameraConfig(950): cameraConfig(950): Set exposure 0        0
09-22 16:38:34.306   2482135 D CameraHal: isNeedToRestartPreview(147): mPreviewFrame2AppW (1920x1080)
09-22 16:38:34.306   2482135 D CameraHal: isNeedToRestartPreview(148): mCamPreviewW (0x0)
09-22 16:38:34.306   2482135 D CameraHal: isNeedToRestartPreview(149): video width (1920x1080)
09-22 16:38:34.307   2482135 D CameraHal: Calling process is: com.android.camera2
09-22 16:38:34.309   2482135 D CameraHal: camera_get_camera_info(1494): camera_get_camera_info(1494): camera_0 facing(1), orientation(2)
09-22 16:38:34.310   2482578 D CameraHal: camera_get_camera_info(1494): camera_get_camera_info(1494): camera_0 facing(1), orientation(2)
09-22 16:38:34.318   2482766 D CameraHal: setParameters(676): suppport focus modes:fixed, expect:fixed
09-22 16:38:34.318   2482766 D CameraHal: isNeedToRestartPreview(147): mPreviewFrame2AppW (1920x1080)
09-22 16:38:34.318   2482766 D CameraHal: isNeedToRestartPreview(148): mCamPreviewW (0x0)
09-22 16:38:34.318   2482766 D CameraHal: isNeedToRestartPreview(149): video width (1920x1080)
09-22 16:38:34.333   2482766 D CameraHal: setParameters(676): suppport focus modes:fixed, expect:fixed
09-22 16:38:34.333   2482766 D CameraHal: isNeedToRestartPreview(147): mPreviewFrame2AppW (1920x1080)
09-22 16:38:34.333   2482766 D CameraHal: isNeedToRestartPreview(148): mCamPreviewW (0x0)
09-22 16:38:34.334   2482766 D CameraHal: isNeedToRestartPreview(149): video width (1920x1080)
09-22 16:38:34.340   2482766 D CameraHal: setParameters(676): suppport focus modes:fixed, expect:fixed
09-22 16:38:34.340   2482766 D CameraHal: isNeedToRestartPreview(147): mPreviewFrame2AppW (1920x1080)
09-22 16:38:34.340   2482766 D CameraHal: isNeedToRestartPreview(148): mCamPreviewW (0x0)
09-22 16:38:34.340   2482766 D CameraHal: isNeedToRestartPreview(149): video width (1920x1080)
09-22 16:38:34.347   2482766 D CameraHal: setParameters(676): suppport focus modes:fixed, expect:fixed
09-22 16:38:34.347   2482766 D CameraHal: isNeedToRestartPreview(147): mPreviewFrame2AppW (1920x1080)
09-22 16:38:34.347   2482766 D CameraHal: isNeedToRestartPreview(148): mCamPreviewW (0x0)
09-22 16:38:34.347   2482766 D CameraHal: isNeedToRestartPreview(149): video width (1920x1080)
09-22 16:38:34.352   2482766 D CameraHal: setParameters(676): suppport focus modes:fixed, expect:fixed
09-22 16:38:34.352   2482766 D CameraHal: isNeedToRestartPreview(147): mPreviewFrame2AppW (1920x1080)
09-22 16:38:34.352   2482766 D CameraHal: isNeedToRestartPreview(148): mCamPreviewW (0x0)
09-22 16:38:34.352   2482766 D CameraHal: isNeedToRestartPreview(149): video width (1920x1080)
09-22 16:38:34.362   2482766 D CameraHal: setParameters(676): suppport focus modes:fixed, expect:fixed
09-22 16:38:34.362   2482766 D CameraHal: isNeedToRestartPreview(147): mPreviewFrame2AppW (1920x1080)
09-22 16:38:34.363   2482766 D CameraHal: isNeedToRestartPreview(148): mCamPreviewW (0x0)
09-22 16:38:34.363   2482766 D CameraHal: isNeedToRestartPreview(149): video width (1920x1080)
09-22 16:38:34.367   2482766 D CameraHal: setParameters(676): suppport focus modes:fixed, expect:fixed
09-22 16:38:34.367   2482766 D CameraHal: isNeedToRestartPreview(147): mPreviewFrame2AppW (1920x1080)
09-22 16:38:34.367   2482766 D CameraHal: isNeedToRestartPreview(148): mCamPreviewW (0x0)
09-22 16:38:34.367   2482766 D CameraHal: isNeedToRestartPreview(149): video width (1920x1080)
09-22 16:38:34.374   2482766 D CameraHal: setParameters(676): suppport focus modes:fixed, expect:fixed
09-22 16:38:34.375   2482766 D CameraHal: isNeedToRestartPreview(147): mPreviewFrame2AppW (1920x1080)
09-22 16:38:34.375   2482766 D CameraHal: isNeedToRestartPreview(148): mCamPreviewW (0x0)
09-22 16:38:34.375   2482766 D CameraHal: isNeedToRestartPreview(149): video width (1920x1080)
09-22 16:38:34.381   2482766 D CameraHal: setParameters(676): suppport focus modes:fixed, expect:fixed
09-22 16:38:34.381   2482766 D CameraHal: isNeedToRestartPreview(147): mPreviewFrame2AppW (1920x1080)
09-22 16:38:34.382   2482766 D CameraHal: isNeedToRestartPreview(148): mCamPreviewW (0x0)
09-22 16:38:34.382   2482766 D CameraHal: isNeedToRestartPreview(149): video width (1920x1080)
09-22 16:38:34.396   2482766 D CameraHal: setParameters(676): suppport focus modes:fixed, expect:fixed
09-22 16:38:34.398   2482766 D CameraHal: cameraConfig(869): cameraConfig(869): Set anti-banding Disabled
09-22 16:38:34.398   2482766 D CameraHal: isNeedToRestartPreview(147): mPreviewFrame2AppW (1920x1080)
09-22 16:38:34.398   2482766 D CameraHal: isNeedToRestartPreview(148): mCamPreviewW (0x0)
09-22 16:38:34.398   2482766 D CameraHal: isNeedToRestartPreview(149): video width (1920x1080)
09-22 16:38:34.402   2482766 D CameraHal: commandThread(1064): commandThread(1064): receive CMD_PREVIEW_CAPTURE_CANCEL
09-22 16:38:34.402   2482766 D CameraHal: setParameters(676): suppport focus modes:fixed, expect:fixed
09-22 16:38:34.402   2482766 D CameraHal: isNeedToRestartPreview(147): mPreviewFrame2AppW (1920x1080)
09-22 16:38:34.402   2482766 D CameraHal: isNeedToRestartPreview(148): mCamPreviewW (0x0)
09-22 16:38:34.402   2482766 D CameraHal: isNeedToRestartPreview(149): video width (1920x1080)
09-22 16:38:34.403   2482766 D CameraHal: commandThread(1072): commandThread(1072): CMD_PREVIEW_CAPTURE_CANCEL out
09-22 16:38:34.403   2482578 D CameraHal: cancelPicture(637): cancel picture OK.
09-22 16:38:34.403   2482766 D CameraHal: commandThread(992): commandThread(992):receive CMD_PREVIEW_STOP
09-22 16:38:34.403   2482766 D CameraHal: stopPreview(239): stopPreview(239):IN
09-22 16:38:34.403   2482766 D CameraHal: stopPreview(259): stopPreview(259):OUT
09-22 16:38:34.403   2482766 D CameraHal: commandThread(1013): commandThread(1013): CMD_PREVIEW_STOP out
09-22 16:38:34.403   2482578 D CameraHal: stopPreview(437): stop preview OK.
09-22 16:38:34.405   2482766 D CameraHal: commandThread(1064): commandThread(1064): receive CMD_PREVIEW_CAPTURE_CANCEL
09-22 16:38:34.407   2482766 D CameraHal: setParameters(676): suppport focus modes:fixed, expect:fixed
09-22 16:38:34.407   2482766 D CameraHal: isNeedToRestartPreview(147): mPreviewFrame2AppW (1920x1080)
09-22 16:38:34.407   2482766 D CameraHal: isNeedToRestartPreview(148): mCamPreviewW (0x0)
09-22 16:38:34.407   2482766 D CameraHal: isNeedToRestartPreview(149): video width (1920x1080)
09-22 16:38:34.407   2482766 D CameraHal: commandThread(1072): commandThread(1072): CMD_PREVIEW_CAPTURE_CANCEL out
09-22 16:38:34.407   2482578 D CameraHal: cancelPicture(637): cancel picture OK.
09-22 16:38:34.407   2482578 D CameraHal: camera_device_close(455): camera_device_close
09-22 16:38:34.407   2482578 D CameraHal: ~SensorListener(110): Kill looper thread
09-22 16:38:34.408   2482578 D CameraHal: ~SensorListener(122): Kill looper
09-22 16:38:34.408   2482578 D CameraHal: ~SensorListener(128): SensorListener destroyed
09-22 16:38:34.408   2482760 D CameraHal: displayThread(657): displayThread(657): receive CMD_DISPLAY_STOP
09-22 16:38:34.408   2482760 D CameraHal: cameraDisplayBufferDestory(421): cameraDisplayBufferDestory(421): mANativeWindow is NULL, destory is ignore
09-22 16:38:34.408   2482762 D CameraHal: encProcessThread(2233): encProcessThread(2233): receive CMD_ENCPROCESS_EXIT
09-22 16:38:34.409   2482765 D CameraHal: autofocusThread(853): wait out
09-22 16:38:34.411   2482766 D CameraHal: commandThread(1177): commandThread(1177): receive CMD_EXIT
09-22 16:38:34.412   2482578 D CameraHal: ~CameraHal(350): CameraHal destory success
09-22 16:38:34.418   2482578 D CameraHal: createInstance(1015): open xml file(/etc/cam_board.xml) success
09-22 16:38:34.418   2482578 E CameraHal: cam_board.xml version(v0x0.0x0.0x0) != xml parser version(v0x0.0xf.0x0)
09-22 16:38:34.418   2482578 D CameraHal:
09-22 16:38:34.418   2482578 D CameraHal:
09-22 16:38:34.418   2482578 D CameraHal:
09-22 16:38:34.418   2482578 D CameraHal:Cam_board.xml Version Check:
09-22 16:38:34.418   2482578 D CameraHal:   /etc/cam_board.xml : v0.0xf.0
09-22 16:38:34.418   2482578 D CameraHal:   CameraHal_board_xml_parser: v0x0.0xf.0x0
09-22 16:38:34.418   2482578 D CameraHal: ParserSensorInfo(170): SensorName(OV13850)
09-22 16:38:34.418   2482578 D CameraHal: ParserSensorInfo(176): lensName(50013A1)
09-22 16:38:34.418   2482578 D CameraHal: ParserSensorInfo(178): SensorDevID(CAMSYS_DEVID_SENSOR_1B)
09-22 16:38:34.418   2482578 D CameraHal: ParserSensorInfo(189): SensorDevID(33554432)
09-22 16:38:34.418   2482578 D CameraHal: ParserSensorInfo(191): SensorHostDevID(CAMSYS_DEVID_MARVIN)
09-22 16:38:34.418   2482578 D CameraHal: ParserSensorInfo(206): Sensori2cBusNum(1)
09-22 16:38:34.418   2482578 D CameraHal: ParserSensorInfo(209): SensorI2cAddrByte(2)
09-22 16:38:34.418   2482578 D CameraHal: ParserSensorInfo(212): SensorI2cRate(100000)
09-22 16:38:34.418   2482578 D CameraHal: ParserSensorInfo(220): SensorAvdd(NC) min(28000000) max(28000000)
09-22 16:38:34.418   2482578 D CameraHal: ParserSensorInfo(234): SensorDvdd(NC) min(12000000) max(12000000)
09-22 16:38:34.418   2482578 D CameraHal: ParserSensorInfo(227): SensorDovdd(NC) min(18000000) max(18000000)
09-22 16:38:34.418   2482578 D CameraHal: ParserSensorInfo(215): SensorMclk(24000000)
09-22 16:38:34.418   2482578 D CameraHal: ParserSensorInfo(265): SensorGpioPwen(NC) active(1)
09-22 16:38:34.418   2482578 D CameraHal: ParserSensorInfo(259): SensorGpioRst(RK30_PIN0_PB0) active(0)
09-22 16:38:34.419   2482578 D CameraHal: ParserSensorInfo(241): SensorGpioPwdn(RK30_PIN2_PA1) active(0)
09-22 16:38:34.419   2482578 D CameraHal: ParserSensorInfo(271): SensorFacing(front)
09-22 16:38:34.419   2482578 D CameraHal: ParserSensorInfo(280): SensorInterface(MIPI)
09-22 16:38:34.419   2482578 D CameraHal: ParserSensorInfo(293): SensorMirrorFlip(0)
09-22 16:38:34.419   2482578 D CameraHal: ParserSensorInfo(296): SensorOrientation(180)
09-22 16:38:34.419   2482578 D CameraHal: ParserSensorInfo(415): SensorFovParemeter fov_h(60.0)(60.000000) fov_v(60.0)(60.000000)
09-22 16:38:34.419   2482578 D CameraHal: ParserSensorInfo(418): SensorAWB_Frame_Skip fps(15)
09-22 16:38:34.419   2482578 D CameraHal: ParserSensorInfo(377): SensorGpioPwdn(RK30_PIN2_PA1) active(0)
09-22 16:38:34.419   2482578 D CameraHal: ParserSensorInfo(385): SensorPhy: MIPIlane: 2phyindex: 0fmt: 0x2b
09-22 16:38:34.419   2482578 D CameraHal: ParserVCMInfo(430): VCMDrvName(DW9714)
09-22 16:38:34.419   2482578 D CameraHal: ParserVCMInfo(433): VCMName(HuaYong6505)
09-22 16:38:34.419   2482578 D CameraHal: ParserVCMInfo(436): VCMI2cBusNum(1)
09-22 16:38:34.419   2482578 D CameraHal: ParserVCMInfo(439): VCMI2cAddrByte(0)
09-22 16:38:34.419   2482578 D CameraHal: ParserVCMInfo(442): VCMI2cRate(0)
09-22 16:38:34.419   2482578 D CameraHal: ParserVCMInfo(457): VCMVdd(NC) min(0) max(0)
09-22 16:38:34.419   2482578 D CameraHal: ParserVCMInfo(451): VCMGpioPower(NC) active(0)
09-22 16:38:34.419   2482578 D CameraHal: ParserVCMInfo(445): VCMGpioPwdn(NC) active(0)
09-22 16:38:34.419   2482578 D CameraHal: ParserVCMInfo(470): start current(20) rated current(80) vcm max(100)step mode(13)drv max(100)
09-22 16:38:34.419   2482578 D CameraHal: ParserFlashInfo(489): FlashName(Internal)
09-22 16:38:34.419   2482578 D CameraHal: ParserFlashInfo(492): FlashI2cBusNum(0)
09-22 16:38:34.419   2482578 D CameraHal: ParserFlashInfo(495): FlashI2cAddrByte(0)
09-22 16:38:34.419   2482578 D CameraHal: ParserFlashInfo(498): FlashI2cRate(0)
09-22 16:38:34.420   2482578 D CameraHal: ParserFlashInfo(501): FlashTrigger(NC) active(0)
09-22 16:38:34.420   2482578 D CameraHal: ParserFlashInfo(505): FlashEn(NC) active(0)
09-22 16:38:34.420   2482578 D CameraHal: ParserFlashInfo(512): FlashLuminance(0)
09-22 16:38:34.420   2482578 D CameraHal: ParserFlashInfo(515): FlashColorTemp(0)
09-22 16:38:34.420   2482578 D CameraHal: StartElementHandler(944): HDR(1)!
09-22 16:38:34.420   2482578 D CameraHal: StartElementHandler(948): ZSL(1)!
09-22 16:38:34.421   2482578 D CameraHal: StartElementHandler(952): zoom(1)!
09-22 16:38:34.421   2482578 D CameraHal: StartElementHandler(994): Continue_SnapShot(1)!
09-22 16:38:34.421   2482578 D CameraHal: StartElementHandler(997): InterpolationRes(0)!
09-22 16:38:34.421   2482578 D CameraHal: StartElementHandler(982): PreviewSize(1920x1080)!
09-22 16:38:34.421   2482578 D CameraHal: StartElementHandler(978): face detect config(0),max face num is (1)!
09-22 16:38:34.422   2482578 D CameraHal: ParserDVConfig(782):DV_QCIF(qcif) resolution(176x144) fps(10) support(1)
09-22 16:38:34.422   2482578 D CameraHal: ParserDVConfig(794):DV_QVGA(qvga) resolution(320x240) fps(10) support(1)
09-22 16:38:34.422   2482578 D CameraHal: ParserDVConfig(806):DV_CIF(cif) resolution(352x288) fps(10) support(1)
09-22 16:38:34.422   2482578 D CameraHal: ParserDVConfig(818):DV_VGA(480p) resolution(640x480) fps(10) support(0)
09-22 16:38:34.422   2482578 D CameraHal: ParserDVConfig(830):DV_480P(480p) resolution(720x480) fps(10) support(0)
09-22 16:38:34.422   2482578 D CameraHal: ParserDVConfig(854):DV_720P(720p) resolution(1280x720) fps(10) support(1)
09-22 16:38:34.422   2482578 D CameraHal: ParserDVConfig(866):DV_1080P(1080p) resolution(1920x1080) fps(10) support(1)
09-22 16:38:34.422   2482578 D CameraHal: ParserSensorInfo(170): SensorName(OV13850)
09-22 16:38:34.422   2482578 D CameraHal: ParserSensorInfo(176): lensName(50013A1)
09-22 16:38:34.422   2482578 D CameraHal: ParserSensorInfo(178): SensorDevID(CAMSYS_DEVID_SENSOR_1A)
09-22 16:38:34.422   2482578 D CameraHal: ParserSensorInfo(189): SensorDevID(16777216)
09-22 16:38:34.422   2482578 D CameraHal: ParserSensorInfo(191): SensorHostDevID(CAMSYS_DEVID_MARVIN)
09-22 16:38:34.422   2482578 D CameraHal: ParserSensorInfo(206): Sensori2cBusNum(1)
09-22 16:38:34.422   2482578 D CameraHal: ParserSensorInfo(209): SensorI2cAddrByte(2)
09-22 16:38:34.422   2482578 D CameraHal: ParserSensorInfo(212): SensorI2cRate(100000)
09-22 16:38:34.422   2482578 D CameraHal: ParserSensorInfo(220): SensorAvdd(NC) min(28000000) max(28000000)
09-22 16:38:34.422   2482578 D CameraHal: ParserSensorInfo(234): SensorDvdd(NC) min(12000000) max(12000000)
09-22 16:38:34.422   2482578 D CameraHal: ParserSensorInfo(227): SensorDovdd(NC) min(18000000) max(18000000)
09-22 16:38:34.422   2482578 D CameraHal: ParserSensorInfo(215): SensorMclk(24000000)
09-22 16:38:34.422   2482578 D CameraHal: ParserSensorInfo(265): SensorGpioPwen(NC) active(1)
09-22 16:38:34.422   2482578 D CameraHal: ParserSensorInfo(259): SensorGpioRst(RK30_PIN0_PB0) active(0)
09-22 16:38:34.423   2482578 D CameraHal: ParserSensorInfo(241): SensorGpioPwdn(RK30_PIN2_PA0) active(0)
09-22 16:38:34.423   2482578 D CameraHal: ParserSensorInfo(271): SensorFacing(back)
09-22 16:38:34.423   2482578 D CameraHal: ParserSensorInfo(280): SensorInterface(MIPI)
09-22 16:38:34.423   2482578 D CameraHal: ParserSensorInfo(293): SensorMirrorFlip(0)
09-22 16:38:34.423   2482578 D CameraHal: ParserSensorInfo(296): SensorOrientation(180)
09-22 16:38:34.423   2482578 D CameraHal: ParserSensorInfo(415): SensorFovParemeter fov_h(60.0)(60.000000) fov_v(60.0)(60.000000)
09-22 16:38:34.423   2482578 D CameraHal: ParserSensorInfo(418): SensorAWB_Frame_Skip fps(15)
09-22 16:38:34.423   2482578 E CameraHal: ParserSensorInfo(368): SensorPhy:phyindex: 1,open /dev/camsys_marvin1       
09-22 16:38:34.423   2482578 D CameraHal: ParserSensorInfo(377): SensorGpioPwdn(RK30_PIN2_PA0) active(0)
09-22 16:38:34.423   2482578 D CameraHal: ParserSensorInfo(385): SensorPhy: MIPIlane: 2phyindex: 1fmt: 0x2b
09-22 16:38:34.423   2482578 D CameraHal: ParserVCMInfo(430): VCMDrvName(DW9714)
09-22 16:38:34.423   2482578 D CameraHal: ParserVCMInfo(433): VCMName(HuaYong6505)
09-22 16:38:34.423   2482578 D CameraHal: ParserVCMInfo(436): VCMI2cBusNum(1)
09-22 16:38:34.423   2482578 D CameraHal: ParserVCMInfo(439): VCMI2cAddrByte(0)
09-22 16:38:34.423   2482578 D CameraHal: ParserVCMInfo(442): VCMI2cRate(0)
09-22 16:38:34.423   2482578 D CameraHal: ParserVCMInfo(457): VCMVdd(NC) min(0) max(0)
09-22 16:38:34.423   2482578 D CameraHal: ParserVCMInfo(451): VCMGpioPower(NC) active(0)
09-22 16:38:34.423   2482578 D CameraHal: ParserVCMInfo(445): VCMGpioPwdn(NC) active(0)
09-22 16:38:34.423   2482578 D CameraHal: ParserVCMInfo(470): start current(20) rated current(80) vcm max(100)step mode(13)drv max(100)
09-22 16:38:34.423   2482578 D CameraHal: ParserFlashInfo(489): FlashName(Internal)
09-22 16:38:34.423   2482578 D CameraHal: ParserFlashInfo(492): FlashI2cBusNum(0)
09-22 16:38:34.424   2482578 D CameraHal: ParserFlashInfo(495): FlashI2cAddrByte(0)
09-22 16:38:34.424   2482578 D CameraHal: ParserFlashInfo(498): FlashI2cRate(0)
09-22 16:38:34.424   2482578 D CameraHal: ParserFlashInfo(501): FlashTrigger(NC) active(0)
09-22 16:38:34.424   2482578 D CameraHal: ParserFlashInfo(505): FlashEn(NC) active(0)
09-22 16:38:34.424   2482578 D CameraHal: ParserFlashInfo(512): FlashLuminance(0)
09-22 16:38:34.424   2482578 D CameraHal: ParserFlashInfo(515): FlashColorTemp(0)
09-22 16:38:34.424   2482578 D CameraHal: StartElementHandler(944): HDR(1)!
09-22 16:38:34.424   2482578 D CameraHal: StartElementHandler(948): ZSL(1)!
09-22 16:38:34.424   2482578 D CameraHal: StartElementHandler(952): zoom(1)!
09-22 16:38:34.424   2482578 D CameraHal: StartElementHandler(994): Continue_SnapShot(1)!
09-22 16:38:34.425   2482578 D CameraHal: StartElementHandler(997): InterpolationRes(0)!
09-22 16:38:34.425   2482578 D CameraHal: StartElementHandler(982): PreviewSize(1920x1080)!
09-22 16:38:34.425   2482578 D CameraHal: StartElementHandler(978): face detect config(0),max face num is (1)!
09-22 16:38:34.425   2482578 D CameraHal: ParserDVConfig(782):DV_QCIF(qcif) resolution(176x144) fps(10) support(1)
09-22 16:38:34.425   2482578 D CameraHal: ParserDVConfig(794):DV_QVGA(qvga) resolution(320x240) fps(10) support(1)
09-22 16:38:34.425   2482578 D CameraHal: ParserDVConfig(806):DV_CIF(cif) resolution(352x288) fps(10) support(1)
09-22 16:38:34.425   2482578 D CameraHal: ParserDVConfig(818):DV_VGA(480p) resolution(640x480) fps(10) support(0)
09-22 16:38:34.425   2482578 D CameraHal: ParserDVConfig(830):DV_480P(480p) resolution(720x480) fps(10) support(0)
09-22 16:38:34.425   2482578 D CameraHal: ParserDVConfig(854):DV_720P(720p) resolution(1280x720) fps(10) support(1)
09-22 16:38:34.425   2482578 D CameraHal: ParserDVConfig(866):DV_1080P(1080p) resolution(1920x1080) fps(10) support(1)
09-22 16:38:34.425   2482578 D CameraHal: number of camdevice (2)
09-22 16:38:34.425   2482578 D CameraHal: now DV size(7)
09-22 16:38:34.425   2482578 E CameraHal: camera_get_number_of_cameras(781): board profiles cam num 2
09-22 16:38:34.426   2482578 D CameraHal: camera_get_number_of_cameras(793): Open /dev/video0 success!
09-22 16:38:34.428   2482578 E CameraHal: camera_get_number_of_cameras(789): Open /dev/video1 failed! strr: No such file or directory
09-22 16:38:34.428   2482578 D CameraHal: read cam name from xml(/data/camera/media_profiles.xml)
09-22 16:38:34.428   2482578 D CameraHal: videoname0="UVC Camera" index=2 facing=0 -->
09-22 16:38:34.428   2482578 D CameraHal:
09-22 16:38:34.429   2482578 D CameraHal: find camera count(1) cam1(UVC Camera) cam2()
09-22 16:38:34.429   2482578 E CameraHal: camera_get_number_of_cameras(807): load sensor name(OV13850) connect 0
09-22 16:38:34.429   2482578 E CameraHal: camera_get_number_of_cameras(807): load sensor name(OV13850) connect 0
09-22 16:38:34.429   2482578 D CameraHal: camera_get_number_of_cameras(869): Open /dev/video0 success!
09-22 16:38:34.432   2482578 E CameraHal: camera_get_number_of_cameras(866): Open /dev/video1 failed! strr: No such file or directory
09-22 16:38:34.432   2482578 E CameraHal: camera_get_number_of_cameras(866): Open /dev/video2 failed! strr: No such file or directory
09-22 16:38:34.432   2482578 E CameraHal: camera_get_number_of_cameras(866): Open /dev/video3 failed! strr: No such file or directory
09-22 16:38:34.432   2482578 E CameraHal: camera_get_number_of_cameras(866): Open /dev/video4 failed! strr: No such file or directory
09-22 16:38:34.432   2482578 E CameraHal: camera_get_number_of_cameras(866): Open /dev/video5 failed! strr: No such file or directory
09-22 16:38:34.432   2482578 E CameraHal: camera_get_number_of_cameras(866): Open /dev/video6 failed! strr: No such file or directory
09-22 16:38:34.432   2482578 E CameraHal: camera_get_number_of_cameras(866): Open /dev/video7 failed! strr: No such file or directory
09-22 16:38:34.432   2482578 E CameraHal: camera_get_number_of_cameras(866): Open /dev/video8 failed! strr: No such file or directory
09-22 16:38:34.432   2482578 E CameraHal: camera_get_number_of_cameras(866): Open /dev/video9 failed! strr: No such file or directory
09-22 16:38:34.432   2482578 D CameraHal: judge the media profile xml fileexit = 0
09-22 16:38:34.432   2482578 D CameraHal: (UVC Camera) UVC camera resolution(640x480) is support
09-22 16:38:34.432   2482578 D CameraHal: (UVC Camera) UVC camera resolution(1280x720) is support
09-22 16:38:34.432   2482578 D CameraHal: (UVC Camera) UVC camera resolution(1920x1080) is support
09-22 16:38:34.440   2482578 D CameraHal: find element camid(0) quality(qcif) width(176)
09-22 16:38:34.441   2482578 D CameraHal: XML modify: camID(0) resolution:qcif(176x144) fps(10) isaddmark(1)
09-22 16:38:34.441   2482578 D CameraHal: find element camid(0) quality(qvga) width(320)
09-22 16:38:34.441   2482578 D CameraHal: XML modify: camID(0) resolution:qvga(320x240) fps(30) isaddmark(1)
09-22 16:38:34.441   2482578 D CameraHal: find element camid(0) quality(cif) width(352)
09-22 16:38:34.441   2482578 D CameraHal: XML modify: camID(0) resolution:cif(352x288) fps(10) isaddmark(1)
09-22 16:38:34.441   2482578 D CameraHal: find element camid(0) quality(480p) width(640)
09-22 16:38:34.441   2482578 D CameraHal: XML modify: camID(0) resolution:480p(640x480) fps(60) isaddmark(0)
09-22 16:38:34.442   2482578 D CameraHal: find element camid(0) quality(480p) width(720)
09-22 16:38:34.442   2482578 D CameraHal: XML modify: camID(0) resolution:480p(720x480) fps(10) isaddmark(1)
09-22 16:38:34.442   2482578 D CameraHal: find element camid(0) quality(480p) width(800)
09-22 16:38:34.442   2482578 D CameraHal: XML modify: camID(0) resolution:480p(800x600) fps(10) isaddmark(1)
09-22 16:38:34.442   2482578 D CameraHal: find element camid(0) quality(576p) width(720)
09-22 16:38:34.442   2482578 D CameraHal: WARNING: can't find camID(0) resolution:576p(720x576), addmark!!!
09-22 16:38:34.443   2482578 D CameraHal: find element camid(0) quality(720p) width(1280)
09-22 16:38:34.443   2482578 D CameraHal: XML modify: camID(0) resolution:720p(1280x720) fps(60) isaddmark(0)
09-22 16:38:34.443   2482578 D CameraHal: find element camid(0) quality(1080p) width(1920)
09-22 16:38:34.443   2482578 D CameraHal: XML modify: camID(0) resolution:1080p(1920x1080) fps(60) isaddmark(0)
09-22 16:38:34.443   2482578 D CameraHal: find element camid(0) quality(qcif) width(176)
09-22 16:38:34.443   2482578 D CameraHal: XML modify: camID(0) resolution:qcif(176x144) fps(10) isaddmark(1)
09-22 16:38:34.443   2482578 D CameraHal: find element camid(0) quality(qvga) width(320)
09-22 16:38:34.443   2482578 D CameraHal: XML modify: camID(0) resolution:qvga(320x240) fps(30) isaddmark(1)
09-22 16:38:34.443   2482578 D CameraHal: find element camid(0) quality(cif) width(352)
09-22 16:38:34.443   2482578 D CameraHal: XML modify: camID(0) resolution:cif(352x288) fps(10) isaddmark(1)
09-22 16:38:34.443   2482578 D CameraHal: find element camid(0) quality(480p) width(640)
09-22 16:38:34.443   2482578 D CameraHal: XML modify: camID(0) resolution:480p(640x480) fps(60) isaddmark(0)
09-22 16:38:34.443   2482578 D CameraHal: find element camid(0) quality(480p) width(720)
09-22 16:38:34.443   2482578 D CameraHal: XML modify: camID(0) resolution:480p(720x480) fps(10) isaddmark(1)
09-22 16:38:34.444   2482578 D CameraHal: find element camid(0) quality(480p) width(800)
09-22 16:38:34.444   2482578 D CameraHal: XML modify: camID(0) resolution:480p(800x600) fps(10) isaddmark(1)
09-22 16:38:34.445   2482578 D CameraHal: find element camid(0) quality(480p) width(800)
09-22 16:38:34.445   2482578 D CameraHal: XML modify: camID(0) resolution:480p(800x600) fps(10) isaddmark(1)
09-22 16:38:34.445   2482578 D CameraHal: find element camid(0) quality(576p) width(720)
09-22 16:38:34.445   2482578 D CameraHal: WARNING: can't find camID(0) resolution:576p(720x576), addmark!!!
09-22 16:38:34.445   2482578 D CameraHal: find element camid(0) quality(720p) width(1280)
09-22 16:38:34.445   2482578 D CameraHal: XML modify: camID(0) resolution:720p(1280x720) fps(60) isaddmark(0)
09-22 16:38:34.445   2482578 D CameraHal: find element camid(0) quality(1080p) width(1920)
09-22 16:38:34.445   2482578 D CameraHal: XML modify: camID(0) resolution:1080p(1920x1080) fps(60) isaddmark(0)
09-22 16:38:34.445   2482578 D CameraHal: find element camid(1) quality(qcif) width(176)
09-22 16:38:34.445   2482578 D CameraHal: WARNING: can't find camID(1) resolution:qcif(176x144), addmark!!!
09-22 16:38:34.445   2482578 D CameraHal: find element camid(1) quality(qvga) width(320)
09-22 16:38:34.445   2482578 D CameraHal: WARNING: can't find camID(1) resolution:qvga(320x240), addmark!!!
09-22 16:38:34.446   2482578 D CameraHal: find element camid(1) quality(cif) width(352)
09-22 16:38:34.446   2482578 D CameraHal: WARNING: can't find camID(1) resolution:cif(352x288), addmark!!!
09-22 16:38:34.446   2482578 D CameraHal: find element camid(1) quality(480p) width(640)
09-22 16:38:34.446   2482578 D CameraHal: WARNING: can't find camID(1) resolution:480p(640x480), addmark!!!
09-22 16:38:34.446   2482578 D CameraHal: find element camid(1) quality(480p) width(720)
09-22 16:38:34.446   2482578 D CameraHal: WARNING: can't find camID(1) resolution:480p(720x480), addmark!!!
09-22 16:38:34.446   2482578 D CameraHal: find element camid(1) quality(480p) width(800)
09-22 16:38:34.446   2482578 D CameraHal: WARNING: can't find camID(1) resolution:480p(800x600), addmark!!!
09-22 16:38:34.446   2482578 D CameraHal: find element camid(1) quality(720p) width(1280)
09-22 16:38:34.446   2482578 D CameraHal: WARNING: can't find camID(1) resolution:720p(1280x720), addmark!!!
09-22 16:38:34.446   2482578 D CameraHal: find element camid(1) quality(1080p) width(1920)
09-22 16:38:34.446   2482578 D CameraHal: WARNING: can't find camID(1) resolution:1080p(1920x1080), addmark!!!
09-22 16:38:34.446   2482578 D CameraHal: find element camid(1) quality(qcif) width(176)
09-22 16:38:34.446   2482578 D CameraHal: WARNING: can't find camID(1) resolution:qcif(176x144), addmark!!!
09-22 16:38:34.447   2482578 D CameraHal: find element camid(1) quality(qvga) width(320)
09-22 16:38:34.447   2482578 D CameraHal: WARNING: can't find camID(1) resolution:qvga(320x240), addmark!!!
09-22 16:38:34.447   2482578 D CameraHal: find element camid(1) quality(cif) width(352)
09-22 16:38:34.447   2482578 D CameraHal: WARNING: can't find camID(1) resolution:cif(352x288), addmark!!!
09-22 16:38:34.447   2482578 D CameraHal: find element camid(1) quality(480p) width(640)
09-22 16:38:34.447   2482578 D CameraHal: WARNING: can't find camID(1) resolution:480p(640x480), addmark!!!
09-22 16:38:34.447   2482578 D CameraHal: find element camid(1) quality(480p) width(720)
09-22 16:38:34.447   2482578 D CameraHal: WARNING: can't find camID(1) resolution:480p(720x480), addmark!!!
09-22 16:38:34.447   2482578 D CameraHal: find element camid(1) quality(480p) width(800)
09-22 16:38:34.447   2482578 D CameraHal: WARNING: can't find camID(1) resolution:480p(800x600), addmark!!!
09-22 16:38:34.447   2482578 D CameraHal: find element camid(1) quality(720p) width(1280)
09-22 16:38:34.447   2482578 D CameraHal: WARNING: can't find camID(1) resolution:720p(1280x720), addmark!!!
09-22 16:38:34.447   2482578 D CameraHal: find element camid(1) quality(1080p) width(1920)
09-22 16:38:34.448   2482578 D CameraHal: WARNING: can't find camID(1) resolution:1080p(1920x1080), addmark!!!
09-22 16:38:34.448   2482578 D CameraHal: camera_get_number_of_cameras(1281): camera_get_number_of_cameras(1281): Current board have 1 cameras attached.
09-22 16:38:34.448   2482578 D CameraHal: camera_get_number_of_cameras(1284): meida_profiles_xml_control time (33632)us
net_os_enable_packet_filter: val = 0
net_os_rxfilter_add_remove: add_remove = 0, num = 2
net_os_enable_packet_filter: val = 1

这个是系统相机调用失败的日志,360相机调用成功的日志我也看了看,用 Beyond Compare比较了一下,我不太清楚图片怎么传,不一样的地方如下:

camera_get_camera_info(1494): camera_get_camera_info(1494): camera_0 facing(1), orientation(2)
09-22 16:36:34.719   2482702 D CameraHal: setParameters(636): setParameters(636): Set preview size 1280x720
09-22 16:36:34.719   2482702 D CameraHal: setParameters(676): suppport focus modes:fixed, expect:fixed
09-22 16:36:34.719   2482702 D CameraHal: isNeedToRestartPreview(147): mPreviewFrame2AppW (1280x720)
09-22 16:36:34.719   2482702 D CameraHal: isNeedToRestartPreview(148): mCamPreviewW (0x0)
09-22 16:36:34.719   2482702 D CameraHal: isNeedToRestartPreview(149): video width (1280x720)
09-22 16:36:34.741   2482702 D CameraHal: setParameters(676): suppport focus modes:fixed, expect:fixed
09-22 16:36:34.742   2482702 D CameraHal: cameraConfig(869): cameraConfig(869): Set anti-banding Disabled
09-22 16:36:34.742   2482702 D CameraHal: isNeedToRestartPreview(147): mPreviewFrame2AppW (1280x720)
09-22 16:36:34.742   2482702 D CameraHal: isNeedToRestartPreview(148): mCamPreviewW (0x0)
09-22 16:36:34.742   2482702 D CameraHal: isNeedToRestartPreview(149): video width (1280x720)

红色字体的是360相机多出来的两行。
有没有碰到相同问题的,怎样配置才能让系统相机正常打开USB的Camera嘞

jpchen 发表于 2019-9-24 10:26:03

可以试一下,删除/data/camera/camera_xx 这个文件

monky 发表于 2019-9-26 09:25:44

目前我这有三款摄像头,有一款可以直接显示视频,有一款无法显示视频,修改分辨率后,三款摄像头系统相机都可以正常显示视频。删除/data/camera/camera_xx我还没有试,抽空试一下。    不过还有个问题,就是我设置的相机分辨率,设置成640*480,明明相机支持该分辨率,但是就是打不开,没有视频,很奇怪,必须修改分辨率才可以。      修改摄像头分辨率的文件在: hardware/rockchip/camera/CameraHal/CameraUSBAdapter.cpp

monky 发表于 2020-1-14 15:21:59

移植的MIPI摄像头OV5648也出现了同样的问题,刚开始是可以出图像的,用了一段时间,改进了一版电路板,后来又出了同样的问题,使用360相机可以打开,但是使用系统自带的相机就无法打开。通过示波器排除了reset,powerdown,Mclk,I2C等问题,通过logcat -s CameraHal 查看调试信息,出现 “camsys_marvin has been opened”的错误信息,在驱动中找到相关文件,kernel/drivers/media/video/rk_camsys/camsys_drv.c下找到camsys_open()函数,临时屏蔽该条异常判断,升级kernel再次测试,系统相机可以调用OV5648,多次测试都可以出图像,说明系统相机调用摄像头时,一直提示被占用,实际没有占用,相机没有做处理,而360相机可能是做了一些处理。目前暂时还没有找到相关处理办法。
页: [1]
查看完整版本: 系统相机调用USB camera提示Camera error,下载的360相机调用没问题