MT6735 调试adv7180,N制和P制摄像头切换问题
时间:10-02
整理:3721RD
点击:
各位大神:
现在本人遇到一个棘手的问题,ADV7180接入N制摄像头,输出YUV分辨率是720*240。而P制摄像头接入,输出YUC分辨率是720*288;
看来HAL层代码,每次开机上电就设置好了ISP的解码分辨率,这样的话,N/P摄像头切换的时候 会有问题。
1.当底层设置分辨率是720*240,P制摄像头显示不全
2.当底层设置分辨率是720*288,N制摄像头解码fail
下面是设置720*288,接入N制摄像头的log,图像显示不正常:
D/ImgsensorDrv( 257): [setScenario][setScenario]DevID = 2, m_LineTIMEInus[0] = 31, m_LineTimeInus[1] = 26667 Scenario id = 0, PixelClk = 27000000, PixelInLine = 720
E/ImgSensorDrv( 257): [sendCommand]Err( 2022):[sendCommand] Err-ctrlCode (Bad address)
E/mtkCam/HalSensor( 257): [configure] CMD_SENSOR_GET_SENSOR_ROLLING_SHUTTER(31)(288) (configure){#1151:vendor/mediatek/proprietary/platform/mt6735/hardware/mtkcam/D1/hal/sensor/HalSensor.control.cpp}
D/MtkCam/P1Node( 257): [0:dequeLoop] frame 1670: deque+
D/MtkCam/P1Node( 257): [0:dequeLoop] frame 1670: deque-,1
D/MtkCam/DCNode( 257): [0nNotify] (0x00000080,0x000002FC,0x000002FA)
D/MtkCam/ISC( 257): [getPass1Crop] 0: TS(4),# 0x2FC,IsR(0),ZR(0,100/100),C(0,0,720x240),S(720x240)
D/MtkCam/P1Node( 257): [updateDeque] deq port 0x1010d, buf 0xf383b880, t 1195785121000
D/MtkCam/ISC( 257): [addPass1Info] 0: TS(1),# 0x2FA,VA(0xF383B880),IsR(0),IsNew(1)
D/MtkCam/P2Node( 257): [0:pushBuf] size 1, data 31, buf 0xf383b880
D/MtkCam/P1Node( 257): [0:dequeLoop] frame 1671: deque+
D/MtkCam/P1Node( 257): [0:dequeLoop] frame 1671: deque-,1
D/MtkCam/DCNode( 257): [0:onNotify] (0x00000080,0x3FFFFFFF,0x000002FB)
D/MtkCam/DCNode( 257): [0:onNotify] skip update
D/MtkCam/P1Node( 257): [0:configFrame] skip config frame
D/MtkCam/P1Node( 257): [updateDeque] deq port 0x1010d, buf 0xf383b780, t 1195826240000
D/MtkCam/ISC( 257): [addPass1Info] 0: TS(2),# 0x2FB,VA(0xF383B780),IsR(0),IsNew(1)
D/MtkCam/P1Node( 257): [getBufOp] port 0x1010d pending in ring buf 0xf383b780
D/MtkCam/MtkCamUtils( 257): (PrvCB@ImgBufQue)[dequeProvider] Empty Que
D/MtkCam/ISC( 257): [getPass2Info] 0: ImgBuf(0xF383B880),# 0x2FA,PD(0xF577EDC0/176),ZR(0,0/0),S(720x240),C(0,0,720x240)
D/MtkCam/P2Node( 257): [0:enquePass2] i 0 data 31, buf 0xf383b880, va 0xe999e000, # 0x2FA, type 5 cnt 1668
D/MtkCam/P2Node( 257): [0:enquePass2] data 41, buf 0xf547da80, va 0xeaa25000, tans 0 usg 3
D/MtkCam/P2Node( 257): [0:pushBuf] size 1, data 31, buf 0xf383b780
D/MtkCam/P1Node( 257): [0:dequeLoop] frame 1672: deque+
D/MtkCam/P1Node( 257): [0:dequeLoop] frame 1672: deque-,1
D/MtkCam/DCNode( 257): [0:onNotify] (0x00000080,0x3FFFFFFF,0x000002FB)
D/MtkCam/DCNode( 257): [0:onNotify] skip update
D/MtkCam/P1Node( 257): [0:configFrame] skip config frame
D/MtkCam/P1Node( 257): [updateDeque] deq port 0x1010d, buf 0xf383b800, t 1195865926000
D/MtkCam/ISC( 257): [addPass1Info] 0: TS(3),# 0x2FB,VA(0xF383B800),IsR(0),IsNew(0)
D/MtkCam/P1Node( 257): [getBufOp] port 0x1010d pending in ring buf 0xf383b800
D/MtkCam/P2Node( 257): [0:pushBuf] size 2, data 31, buf 0xf383b800
D/MtkCam/P1Node( 257): [waitForDeque] wait for port 0x1010d enq buf 0xf383b880
D/MtkCam/MtkCamUtils( 257): (PrvCB@ImgBufQue)[dequeProvider] Empty Que
D/MtkCam/ISC( 257): [getPass2Info] 0: ImgBuf(0xF383B780),# 0x2FB,PD(0xF577EE78/176),ZR(0,0/0),S(720x240),C(0,0,720x240)
D/MtkCam/P2Node( 257): [0:enquePass2] i 0 data 31, buf 0xf383b780, va 0xea0ea000, # 0x2FB, type 5 cnt 1669
D/MtkCam/P2Node( 257): [0:enquePass2] data 41, buf 0xf57fe580, va 0xeaa6b000, tans 0 usg 3
D/MtkCam/P2Node( 257): [0:handleP2Done] type 5: cnt 1668 in 1 out 1
D/MtkCam/P1Node( 257): [0:processBufOp] enq port 0x1010d, buf 0xf383b880, va 0xe999e000
D/MtkCam/ISC( 257): [dropPass2Info] Erase # 0x2FA,ImgBuf(0xF383B880),IsR(0)
D/MtkCam/DisplayCLIent( 257): [DisplayClient::enquePrvOps] fps: 0.779141 = 2 / 2566928692 ns
D/MtkCam/MtkCamUtils( 257): (PrvCB@ImgBufQue)[dequeProvider] Empty Que
D/MtkCam/ISC( 257): [getPass2Info] 0: ImgBuf(0xF383B800),# 0x2FB,PD(0xF577EF30/176),ZR(0,0/0),S(720x240),C(0,0,720x240)
D/MtkCam/P2Node( 257): [0:enquePass2] i 0 data 31, buf 0xf383b800, va 0xea01e000, # 0x2FB, type 5 cnt 1670
D/MtkCam/P2Node( 257): [0:enquePass2] data 41, buf 0xf57fe600, va 0xea9df000, tans 0 usg 3
D/MtkCam/P1Node( 257): [0:dequeLoop] frame 1673: deque+
D/MtkCam/P2Node( 257): [0:handleP2Done] type 5: cnt 1669 in 1 out 1
D/MtkCam/P1Node( 257): [0:processBufOp] enq port 0x1010d, buf 0xf383b780, va 0xea0ea000
D/MtkCam/ISC( 257): [dropPass2Info] Erase # 0x2FB,ImgBuf(0xF383B780),IsR(0)
D/MtkCam/P2Node( 257): [0:handleP2Done] type 5: cnt 1670 in 1 out 1
D/MtkCam/P1Node( 257): [0:processBufOp] enq port 0x1010d, buf 0xf383b800, va 0xea01e000
D/MtkCam/ISC( 257): [dropPass2Info] Erase # 0x2FB,ImgBuf(0xF383B800),IsR(0)
D/MtkCam/DCNode( 257): [0:doNotifyCb] 3APROC_FINISH:0x000002FC,0x00000003
.
D/MtkCam/P1Node( 257): [0:dequeLoop] frame 1673: deque-,0
W/MtkCam/P1Node( 257): [0:dequeLoop] CamIO reset cnt(0)
D/MtkCam/HalSensor( 257): [get_boot_mode] Boot Mode 0
D/MtkCam/HalSensor( 257): [destroyInstance] HalSensor destroyInstance count = 4, caller =HWSyncDrv
D/MtkCam/HalSensorList( 257): [closeSensor] closeSensor mpHalSensor : 0xf38353d0, pHalSensor = f38353d0
D/MtkCam/HalSensorList( 257):
D/MtkCam/HalSensor( 257): [powerOff] sensorDev : 2
D/MtkCam/HalSensor( 257):
D/ImgSensorDrv( 257): [uninit][uninit]imgsensor_drv mUsers = 1
D/MtkCam/HalSensor( 257): [setTgPhase] [setTgPhase] Tg1clk: 0, Tg2clk: 27, Tg3clk : 0
D/MtkCam/HalSensor( 257): [setTgPhase] sensorDev = 2, pcEn = 0
D/MtkCam/HalSensor( 257): [setTgPhase] mclk1: 208000, clkCnt1: 7
D/MtkCam/HalSensor( 257): [setTgPhase] [setTgPhase] u4PadPclkInv_1(0),u4PadPclkInv_2(0)
D/MtkCam/HalSensor( 257): [powerOff] - <NormalPipe> PowerRefCount:0 ret:1, meSensorDev = 0x0
D/MtkCam/HalSensor( 257): [powerOn] devinfo_data(0x04000012) Bound(4) CapWidth(0)
D/MtkCam/HalSensor( 257): [powerOn] sensorDev : 2
D/MtkCam/HalSensor( 257):
D/ImgSensorDrv( 257): [init]Warning( 431):sizeof(MUINT16):2,sizeof(MUINT32):4, sizeof(UCHAR):1, sizeof(MUINT64):8sizeof(MUINTPTR):4, sizeof(MUINTPTR *):4, sizeof(MUINT32 *):4, sizeof(UCHAR *):4
D/ImgSensorDrv( 257): [init][init] mUsers = 0
D/ImgSensorDrv( 257): [getResolution][getResolution] ACDK_SENSOR_RESOLUTION_INFO_STRUCT
D/ImgSensorDrv( 257): [getResolution]Warning( 2405):pSensorResolution[0]:0xf5ce4fac, [1]:0xf5ce5018
D/ImgSensorDrv( 257): [init][init]: m_LineTimeInus[1] = 27
D/MtkCam/HalSensor( 257): [setTgPhase] [setTgPhase] Tg1clk: 0, Tg2clk: 27, Tg3clk : 0
D/MtkCam/HalSensor( 257): [setTgPhase] sensorDev = 2, pcEn = 1
D/MtkCam/HalSensor( 257): [setTgPhase] mclk1: 208000, clkCnt1: 7
D/MtkCam/HalSensor( 257): [setTgPhase] [setTgPhase] u4PadPclkInv_1(0),u4PadPclkInv_2(0)
D/MtkCam/HalSensor( 257): [get_boot_mode] Boot Mode 0
D/MtkCam/HalSensorList( 257): [createSensor] createSensor count = 5, caller =HWSyncDrv
D/MtkCam/HalSensorList( 257): [openSensor] openSensor enter
D/MtkCam/HalSensorList( 257): [openSensor] openSensor mpHalSensor : 0xf38353d0
D/MtkCam/HalSensor( 257): [powerOn] - <NormalPipe> PowerRefCount:1 ret:1, meSensorDev = 0x2
D/MtkCam/HalSensor( 257): [configure] SenDev=2, scenario=0, HDR=0, fps=0, twopix=0
D/MtkCam/HalSensor( 257): [configure] configure Scenario=0, FPS=0
I/MtkCam/HalSensor( 257): [pixelModeArrange] Sub cam pixel mode: 0, sensorType: 2
D/MtkCam/HalSensor( 257): [seninfcontrol] seninfControl meSensorDev = 2, currSensorDev = 2, enable = 1, PixelMode=0
D/MtkCam/HalSensor( 257): [seninfControl] sensorPara[0].inSrcTypeSel = 0, sensorPara[1].inSrcTypeSel=3
D/MtkCam/HalSensor( 257): [seninfControl] Sub is not in SENSOR_SCENARIO_ID_SLIM_VIDEO2 mode. Use TG1.
D/ImgSensorDrv( 257): [setScenario][setScenario]DevID = 2, m_LineTimeInus[0] = 31, m_LineTimeInus[1] = 26667 Scenario id = 0, PixelClk = 27000000, PixelInLine = 720
E/ImgSensorDrv( 257): [sendCommand]Err( 2022):[sendCommand] Err-ctrlCode (Bad address)
E/MtkCam/HalSensor( 257): [configure] CMD_SENSOR_GET_SENSOR_ROLLING_SHUTTER(31)(288) (configure){#1151:vendor/mediatek/proprietary/platform/mt6735/hardware/mtkcam/D1/hal/sensor/HalSensor.control.cpp}
D/MtkCam/P1Node( 257): [0:dequeLoop] frame 1673: deque+
D/MtkCam/P1Node( 257): [0:dequeLoop] frame 1673: deque-,1
D/MtkCam/DCNode( 257): [0:onNotify] (0x00000080,0x000002FD,0x000002FB)
D/MtkCam/ISC( 257): [getPass1Crop] 0: TS(4),# 0x2FD,IsR(0),ZR(0,100/100),C(0,0,720x240),S(720x240)
D/MtkCam/P1Node( 257): [updateDeque] deq port 0x1010d, buf 0xf383b880, t 1198305342000
D/MtkCam/ISC( 257): [addPass1Info] 0: TS(1),# 0x2FB,VA(0xF383B880),IsR(0),IsNew(1)
D/MtkCam/P2Node( 257): [0:pushBuf] size 1, data 31, buf 0xf383b880
D/MtkCam/P1Node( 257): [0:dequeLoop] frame 1674: deque+
D/MtkCam/P1Node( 257): [0:dequeLoop] frame 1674: deque-,1
D/MtkCam/DCNode( 257): [0:onNotify] (0x00000080,0x3FFFFFFF,0x000002FC)
D/MtkCam/DCNode( 257): [0:onNotify] skip update
D/MtkCam/P1Node( 257): [0:configFrame] skip config frame
D/MtkCam/P1Node( 257): [updateDeque] deq port 0x1010d, buf 0xf383b780, t 1198381594000
D/MtkCam/ISC( 257): [addPass1Info] 0: TS(2),# 0x2FC,VA(0xF383B780),IsR(0),IsNew(1)
D/MtkCam/P1Node( 257): [getBufOp] port 0x1010d pending in ring buf 0xf383b780
D/MtkCam/MtkCamUtils( 257): (PrvCB@ImgBufQue)[dequeProvider] Empty Que
D/MtkCam/ISC( 257): [getPass2Info] 0: ImgBuf(0xF383B880),# 0x2FB,PD(0xF577EDC0/176),ZR(0,0/0),S(720x240),C(0,0,720x240)
D/MtkCam/P2Node( 257): [0:enquePass2] i 0 data 31, buf 0xf383b880, va 0xe999e000, # 0x2FB, type 5 cnt 1671
D/MtkCam/P2Node( 257): [0:enquePass2] data 41, buf 0xf57fe680, va 0xeab0b000, tans 0 usg 3
D/MtkCam/P2Node( 257): [0:pushBuf] size 1, data 31, buf 0xf383b780
D/MtkCam/P1Node( 257): [0:dequeLoop] frame 1675: deque+
D/MtkCam/P1Node( 257): [0:dequeLoop] frame 1675: deque-,1
D/MtkCam/DCNode( 257): [0:onNotify] (0x00000080,0x3FFFFFFF,0x000002FC)
D/MtkCam/DCNode( 257): [0:onNotify] skip update
D/MtkCam/P1Node( 257): [0:configFrame] skip config frame
D/MtkCam/P1Node( 257): [updateDeque] deq port 0x1010d, buf 0xf383b800, t 1198421277000
D/MtkCam/ISC( 257): [addPass1Info] 0: TS(3),# 0x2FC,VA(0xF383B800),IsR(0),IsNew(0)
D/MtkCam/P1Node( 257): [getBufOp] port 0x1010d pending in ring buf 0xf383b800
D/MtkCam/P2Node( 257): [0:pushBuf] size 2, data 31, buf 0xf383b800
D/MtkCam/P1Node( 257): [waitForDeque] wait for port 0x1010d enq buf 0xf383b880
D/MtkCam/MtkCamUtils( 257): (PrvCB@ImgBufQue)[dequeProvider] Empty Que
D/MtkCam/ISC( 257): [getPass2Info] 0: ImgBuf(0xF383B780),# 0x2FC,PD(0xF577EE78/176),ZR(0,0/0),S(720x240),C(0,0,720x240)
D/MtkCam/P2Node( 257): [0:enquePass2] i 0 data 31, buf 0xf383b780, va 0xea0ea000, # 0x2FC, type 5 cnt 1672
D/MtkCam/P2Node( 257): [0:enquePass2] data 41, buf 0xf57fe700, va 0xe985a000, tans 0 usg 3
D/MtkCam/P2Node( 257): [0:handleP2Done] type 5: cnt 1671 in 1 out 1
D/MtkCam/P1Node( 257): [0:processBufOp] enq port 0x1010d, buf 0xf383b880, va 0xe999e000
D/MtkCam/ISC( 257): [dropPass2Info] Erase # 0x2FB,ImgBuf(0xF383B880),IsR(0)
D/MtkCam/MtkCamUtils( 257): (PrvCB@ImgBufQue)[dequeProvider] Empty Que
D/MtkCam/ISC( 257): [getPass2Info] 0: ImgBuf(0xF383B800),# 0x2FC,PD(0xF577EF30/176),ZR(0,0/0),S(720x240),C(0,0,720x240)
D/MtkCam/P2Node( 257): [0:enquePass2] i 0 data 31, buf 0xf383b800, va 0xea01e000, # 0x2FC, type 5 cnt 1673
D/MtkCam/DisplayClient( 257): [DisplayClient::enquePrvOps] fps: 1.166829 = 3 / 2571071154 ns
D/MtkCam/P2Node( 257): [0:enquePass2] data 41, buf 0xf57fe780, va 0xea0a4000, tans 0 usg 3
D/MtkCam/P2Node( 257): [0:handleP2Done] type 5: cnt 1672 in 1 out 1
D/MtkCam/P1Node( 257): [0:processBufOp] enq port 0x1010d, buf 0xf383b780, va 0xea0ea000
D/MtkCam/ISC( 257): [dropPass2Info] Erase # 0x2FC,ImgBuf(0xF383B780),IsR(0)
D/MtkCam/P2Node( 257): [0:handleP2Done] type 5: cnt 1673 in 1 out 1
D/MtkCam/P1Node( 257): [0:processBufOp] enq port 0x1010d, buf 0xf383b800, va 0xea01e000
D/MtkCam/ISC( 257): [dropPass2Info] Erase # 0x2FC,ImgBuf(0xF383B800),IsR(0)
D/MtkCam/P1Node( 257): [0:dequeLoop] frame 1676: deque+
D/MtkCam/DCNode( 257): [0:doNotifyCb] 3APROC_FINISH:0x000002FD,0x00000003
现在本人遇到一个棘手的问题,ADV7180接入N制摄像头,输出YUV分辨率是720*240。而P制摄像头接入,输出YUC分辨率是720*288;
看来HAL层代码,每次开机上电就设置好了ISP的解码分辨率,这样的话,N/P摄像头切换的时候 会有问题。
1.当底层设置分辨率是720*240,P制摄像头显示不全
2.当底层设置分辨率是720*288,N制摄像头解码fail
下面是设置720*288,接入N制摄像头的log,图像显示不正常:
D/ImgsensorDrv( 257): [setScenario][setScenario]DevID = 2, m_LineTIMEInus[0] = 31, m_LineTimeInus[1] = 26667 Scenario id = 0, PixelClk = 27000000, PixelInLine = 720
E/ImgSensorDrv( 257): [sendCommand]Err( 2022):[sendCommand] Err-ctrlCode (Bad address)
E/mtkCam/HalSensor( 257): [configure] CMD_SENSOR_GET_SENSOR_ROLLING_SHUTTER(31)(288) (configure){#1151:vendor/mediatek/proprietary/platform/mt6735/hardware/mtkcam/D1/hal/sensor/HalSensor.control.cpp}
D/MtkCam/P1Node( 257): [0:dequeLoop] frame 1670: deque+
D/MtkCam/P1Node( 257): [0:dequeLoop] frame 1670: deque-,1
D/MtkCam/DCNode( 257): [0nNotify] (0x00000080,0x000002FC,0x000002FA)
D/MtkCam/ISC( 257): [getPass1Crop] 0: TS(4),# 0x2FC,IsR(0),ZR(0,100/100),C(0,0,720x240),S(720x240)
D/MtkCam/P1Node( 257): [updateDeque] deq port 0x1010d, buf 0xf383b880, t 1195785121000
D/MtkCam/ISC( 257): [addPass1Info] 0: TS(1),# 0x2FA,VA(0xF383B880),IsR(0),IsNew(1)
D/MtkCam/P2Node( 257): [0:pushBuf] size 1, data 31, buf 0xf383b880
D/MtkCam/P1Node( 257): [0:dequeLoop] frame 1671: deque+
D/MtkCam/P1Node( 257): [0:dequeLoop] frame 1671: deque-,1
D/MtkCam/DCNode( 257): [0:onNotify] (0x00000080,0x3FFFFFFF,0x000002FB)
D/MtkCam/DCNode( 257): [0:onNotify] skip update
D/MtkCam/P1Node( 257): [0:configFrame] skip config frame
D/MtkCam/P1Node( 257): [updateDeque] deq port 0x1010d, buf 0xf383b780, t 1195826240000
D/MtkCam/ISC( 257): [addPass1Info] 0: TS(2),# 0x2FB,VA(0xF383B780),IsR(0),IsNew(1)
D/MtkCam/P1Node( 257): [getBufOp] port 0x1010d pending in ring buf 0xf383b780
D/MtkCam/MtkCamUtils( 257): (PrvCB@ImgBufQue)[dequeProvider] Empty Que
D/MtkCam/ISC( 257): [getPass2Info] 0: ImgBuf(0xF383B880),# 0x2FA,PD(0xF577EDC0/176),ZR(0,0/0),S(720x240),C(0,0,720x240)
D/MtkCam/P2Node( 257): [0:enquePass2] i 0 data 31, buf 0xf383b880, va 0xe999e000, # 0x2FA, type 5 cnt 1668
D/MtkCam/P2Node( 257): [0:enquePass2] data 41, buf 0xf547da80, va 0xeaa25000, tans 0 usg 3
D/MtkCam/P2Node( 257): [0:pushBuf] size 1, data 31, buf 0xf383b780
D/MtkCam/P1Node( 257): [0:dequeLoop] frame 1672: deque+
D/MtkCam/P1Node( 257): [0:dequeLoop] frame 1672: deque-,1
D/MtkCam/DCNode( 257): [0:onNotify] (0x00000080,0x3FFFFFFF,0x000002FB)
D/MtkCam/DCNode( 257): [0:onNotify] skip update
D/MtkCam/P1Node( 257): [0:configFrame] skip config frame
D/MtkCam/P1Node( 257): [updateDeque] deq port 0x1010d, buf 0xf383b800, t 1195865926000
D/MtkCam/ISC( 257): [addPass1Info] 0: TS(3),# 0x2FB,VA(0xF383B800),IsR(0),IsNew(0)
D/MtkCam/P1Node( 257): [getBufOp] port 0x1010d pending in ring buf 0xf383b800
D/MtkCam/P2Node( 257): [0:pushBuf] size 2, data 31, buf 0xf383b800
D/MtkCam/P1Node( 257): [waitForDeque] wait for port 0x1010d enq buf 0xf383b880
D/MtkCam/MtkCamUtils( 257): (PrvCB@ImgBufQue)[dequeProvider] Empty Que
D/MtkCam/ISC( 257): [getPass2Info] 0: ImgBuf(0xF383B780),# 0x2FB,PD(0xF577EE78/176),ZR(0,0/0),S(720x240),C(0,0,720x240)
D/MtkCam/P2Node( 257): [0:enquePass2] i 0 data 31, buf 0xf383b780, va 0xea0ea000, # 0x2FB, type 5 cnt 1669
D/MtkCam/P2Node( 257): [0:enquePass2] data 41, buf 0xf57fe580, va 0xeaa6b000, tans 0 usg 3
D/MtkCam/P2Node( 257): [0:handleP2Done] type 5: cnt 1668 in 1 out 1
D/MtkCam/P1Node( 257): [0:processBufOp] enq port 0x1010d, buf 0xf383b880, va 0xe999e000
D/MtkCam/ISC( 257): [dropPass2Info] Erase # 0x2FA,ImgBuf(0xF383B880),IsR(0)
D/MtkCam/DisplayCLIent( 257): [DisplayClient::enquePrvOps] fps: 0.779141 = 2 / 2566928692 ns
D/MtkCam/MtkCamUtils( 257): (PrvCB@ImgBufQue)[dequeProvider] Empty Que
D/MtkCam/ISC( 257): [getPass2Info] 0: ImgBuf(0xF383B800),# 0x2FB,PD(0xF577EF30/176),ZR(0,0/0),S(720x240),C(0,0,720x240)
D/MtkCam/P2Node( 257): [0:enquePass2] i 0 data 31, buf 0xf383b800, va 0xea01e000, # 0x2FB, type 5 cnt 1670
D/MtkCam/P2Node( 257): [0:enquePass2] data 41, buf 0xf57fe600, va 0xea9df000, tans 0 usg 3
D/MtkCam/P1Node( 257): [0:dequeLoop] frame 1673: deque+
D/MtkCam/P2Node( 257): [0:handleP2Done] type 5: cnt 1669 in 1 out 1
D/MtkCam/P1Node( 257): [0:processBufOp] enq port 0x1010d, buf 0xf383b780, va 0xea0ea000
D/MtkCam/ISC( 257): [dropPass2Info] Erase # 0x2FB,ImgBuf(0xF383B780),IsR(0)
D/MtkCam/P2Node( 257): [0:handleP2Done] type 5: cnt 1670 in 1 out 1
D/MtkCam/P1Node( 257): [0:processBufOp] enq port 0x1010d, buf 0xf383b800, va 0xea01e000
D/MtkCam/ISC( 257): [dropPass2Info] Erase # 0x2FB,ImgBuf(0xF383B800),IsR(0)
D/MtkCam/DCNode( 257): [0:doNotifyCb] 3APROC_FINISH:0x000002FC,0x00000003
.
D/MtkCam/P1Node( 257): [0:dequeLoop] frame 1673: deque-,0
W/MtkCam/P1Node( 257): [0:dequeLoop] CamIO reset cnt(0)
D/MtkCam/HalSensor( 257): [get_boot_mode] Boot Mode 0
D/MtkCam/HalSensor( 257): [destroyInstance] HalSensor destroyInstance count = 4, caller =HWSyncDrv
D/MtkCam/HalSensorList( 257): [closeSensor] closeSensor mpHalSensor : 0xf38353d0, pHalSensor = f38353d0
D/MtkCam/HalSensorList( 257):
D/MtkCam/HalSensor( 257): [powerOff] sensorDev : 2
D/MtkCam/HalSensor( 257):
D/ImgSensorDrv( 257): [uninit][uninit]imgsensor_drv mUsers = 1
D/MtkCam/HalSensor( 257): [setTgPhase] [setTgPhase] Tg1clk: 0, Tg2clk: 27, Tg3clk : 0
D/MtkCam/HalSensor( 257): [setTgPhase] sensorDev = 2, pcEn = 0
D/MtkCam/HalSensor( 257): [setTgPhase] mclk1: 208000, clkCnt1: 7
D/MtkCam/HalSensor( 257): [setTgPhase] [setTgPhase] u4PadPclkInv_1(0),u4PadPclkInv_2(0)
D/MtkCam/HalSensor( 257): [powerOff] - <NormalPipe> PowerRefCount:0 ret:1, meSensorDev = 0x0
D/MtkCam/HalSensor( 257): [powerOn] devinfo_data(0x04000012) Bound(4) CapWidth(0)
D/MtkCam/HalSensor( 257): [powerOn] sensorDev : 2
D/MtkCam/HalSensor( 257):
D/ImgSensorDrv( 257): [init]Warning( 431):sizeof(MUINT16):2,sizeof(MUINT32):4, sizeof(UCHAR):1, sizeof(MUINT64):8sizeof(MUINTPTR):4, sizeof(MUINTPTR *):4, sizeof(MUINT32 *):4, sizeof(UCHAR *):4
D/ImgSensorDrv( 257): [init][init] mUsers = 0
D/ImgSensorDrv( 257): [getResolution][getResolution] ACDK_SENSOR_RESOLUTION_INFO_STRUCT
D/ImgSensorDrv( 257): [getResolution]Warning( 2405):pSensorResolution[0]:0xf5ce4fac, [1]:0xf5ce5018
D/ImgSensorDrv( 257): [init][init]: m_LineTimeInus[1] = 27
D/MtkCam/HalSensor( 257): [setTgPhase] [setTgPhase] Tg1clk: 0, Tg2clk: 27, Tg3clk : 0
D/MtkCam/HalSensor( 257): [setTgPhase] sensorDev = 2, pcEn = 1
D/MtkCam/HalSensor( 257): [setTgPhase] mclk1: 208000, clkCnt1: 7
D/MtkCam/HalSensor( 257): [setTgPhase] [setTgPhase] u4PadPclkInv_1(0),u4PadPclkInv_2(0)
D/MtkCam/HalSensor( 257): [get_boot_mode] Boot Mode 0
D/MtkCam/HalSensorList( 257): [createSensor] createSensor count = 5, caller =HWSyncDrv
D/MtkCam/HalSensorList( 257): [openSensor] openSensor enter
D/MtkCam/HalSensorList( 257): [openSensor] openSensor mpHalSensor : 0xf38353d0
D/MtkCam/HalSensor( 257): [powerOn] - <NormalPipe> PowerRefCount:1 ret:1, meSensorDev = 0x2
D/MtkCam/HalSensor( 257): [configure] SenDev=2, scenario=0, HDR=0, fps=0, twopix=0
D/MtkCam/HalSensor( 257): [configure] configure Scenario=0, FPS=0
I/MtkCam/HalSensor( 257): [pixelModeArrange] Sub cam pixel mode: 0, sensorType: 2
D/MtkCam/HalSensor( 257): [seninfcontrol] seninfControl meSensorDev = 2, currSensorDev = 2, enable = 1, PixelMode=0
D/MtkCam/HalSensor( 257): [seninfControl] sensorPara[0].inSrcTypeSel = 0, sensorPara[1].inSrcTypeSel=3
D/MtkCam/HalSensor( 257): [seninfControl] Sub is not in SENSOR_SCENARIO_ID_SLIM_VIDEO2 mode. Use TG1.
D/ImgSensorDrv( 257): [setScenario][setScenario]DevID = 2, m_LineTimeInus[0] = 31, m_LineTimeInus[1] = 26667 Scenario id = 0, PixelClk = 27000000, PixelInLine = 720
E/ImgSensorDrv( 257): [sendCommand]Err( 2022):[sendCommand] Err-ctrlCode (Bad address)
E/MtkCam/HalSensor( 257): [configure] CMD_SENSOR_GET_SENSOR_ROLLING_SHUTTER(31)(288) (configure){#1151:vendor/mediatek/proprietary/platform/mt6735/hardware/mtkcam/D1/hal/sensor/HalSensor.control.cpp}
D/MtkCam/P1Node( 257): [0:dequeLoop] frame 1673: deque+
D/MtkCam/P1Node( 257): [0:dequeLoop] frame 1673: deque-,1
D/MtkCam/DCNode( 257): [0:onNotify] (0x00000080,0x000002FD,0x000002FB)
D/MtkCam/ISC( 257): [getPass1Crop] 0: TS(4),# 0x2FD,IsR(0),ZR(0,100/100),C(0,0,720x240),S(720x240)
D/MtkCam/P1Node( 257): [updateDeque] deq port 0x1010d, buf 0xf383b880, t 1198305342000
D/MtkCam/ISC( 257): [addPass1Info] 0: TS(1),# 0x2FB,VA(0xF383B880),IsR(0),IsNew(1)
D/MtkCam/P2Node( 257): [0:pushBuf] size 1, data 31, buf 0xf383b880
D/MtkCam/P1Node( 257): [0:dequeLoop] frame 1674: deque+
D/MtkCam/P1Node( 257): [0:dequeLoop] frame 1674: deque-,1
D/MtkCam/DCNode( 257): [0:onNotify] (0x00000080,0x3FFFFFFF,0x000002FC)
D/MtkCam/DCNode( 257): [0:onNotify] skip update
D/MtkCam/P1Node( 257): [0:configFrame] skip config frame
D/MtkCam/P1Node( 257): [updateDeque] deq port 0x1010d, buf 0xf383b780, t 1198381594000
D/MtkCam/ISC( 257): [addPass1Info] 0: TS(2),# 0x2FC,VA(0xF383B780),IsR(0),IsNew(1)
D/MtkCam/P1Node( 257): [getBufOp] port 0x1010d pending in ring buf 0xf383b780
D/MtkCam/MtkCamUtils( 257): (PrvCB@ImgBufQue)[dequeProvider] Empty Que
D/MtkCam/ISC( 257): [getPass2Info] 0: ImgBuf(0xF383B880),# 0x2FB,PD(0xF577EDC0/176),ZR(0,0/0),S(720x240),C(0,0,720x240)
D/MtkCam/P2Node( 257): [0:enquePass2] i 0 data 31, buf 0xf383b880, va 0xe999e000, # 0x2FB, type 5 cnt 1671
D/MtkCam/P2Node( 257): [0:enquePass2] data 41, buf 0xf57fe680, va 0xeab0b000, tans 0 usg 3
D/MtkCam/P2Node( 257): [0:pushBuf] size 1, data 31, buf 0xf383b780
D/MtkCam/P1Node( 257): [0:dequeLoop] frame 1675: deque+
D/MtkCam/P1Node( 257): [0:dequeLoop] frame 1675: deque-,1
D/MtkCam/DCNode( 257): [0:onNotify] (0x00000080,0x3FFFFFFF,0x000002FC)
D/MtkCam/DCNode( 257): [0:onNotify] skip update
D/MtkCam/P1Node( 257): [0:configFrame] skip config frame
D/MtkCam/P1Node( 257): [updateDeque] deq port 0x1010d, buf 0xf383b800, t 1198421277000
D/MtkCam/ISC( 257): [addPass1Info] 0: TS(3),# 0x2FC,VA(0xF383B800),IsR(0),IsNew(0)
D/MtkCam/P1Node( 257): [getBufOp] port 0x1010d pending in ring buf 0xf383b800
D/MtkCam/P2Node( 257): [0:pushBuf] size 2, data 31, buf 0xf383b800
D/MtkCam/P1Node( 257): [waitForDeque] wait for port 0x1010d enq buf 0xf383b880
D/MtkCam/MtkCamUtils( 257): (PrvCB@ImgBufQue)[dequeProvider] Empty Que
D/MtkCam/ISC( 257): [getPass2Info] 0: ImgBuf(0xF383B780),# 0x2FC,PD(0xF577EE78/176),ZR(0,0/0),S(720x240),C(0,0,720x240)
D/MtkCam/P2Node( 257): [0:enquePass2] i 0 data 31, buf 0xf383b780, va 0xea0ea000, # 0x2FC, type 5 cnt 1672
D/MtkCam/P2Node( 257): [0:enquePass2] data 41, buf 0xf57fe700, va 0xe985a000, tans 0 usg 3
D/MtkCam/P2Node( 257): [0:handleP2Done] type 5: cnt 1671 in 1 out 1
D/MtkCam/P1Node( 257): [0:processBufOp] enq port 0x1010d, buf 0xf383b880, va 0xe999e000
D/MtkCam/ISC( 257): [dropPass2Info] Erase # 0x2FB,ImgBuf(0xF383B880),IsR(0)
D/MtkCam/MtkCamUtils( 257): (PrvCB@ImgBufQue)[dequeProvider] Empty Que
D/MtkCam/ISC( 257): [getPass2Info] 0: ImgBuf(0xF383B800),# 0x2FC,PD(0xF577EF30/176),ZR(0,0/0),S(720x240),C(0,0,720x240)
D/MtkCam/P2Node( 257): [0:enquePass2] i 0 data 31, buf 0xf383b800, va 0xea01e000, # 0x2FC, type 5 cnt 1673
D/MtkCam/DisplayClient( 257): [DisplayClient::enquePrvOps] fps: 1.166829 = 3 / 2571071154 ns
D/MtkCam/P2Node( 257): [0:enquePass2] data 41, buf 0xf57fe780, va 0xea0a4000, tans 0 usg 3
D/MtkCam/P2Node( 257): [0:handleP2Done] type 5: cnt 1672 in 1 out 1
D/MtkCam/P1Node( 257): [0:processBufOp] enq port 0x1010d, buf 0xf383b780, va 0xea0ea000
D/MtkCam/ISC( 257): [dropPass2Info] Erase # 0x2FC,ImgBuf(0xF383B780),IsR(0)
D/MtkCam/P2Node( 257): [0:handleP2Done] type 5: cnt 1673 in 1 out 1
D/MtkCam/P1Node( 257): [0:processBufOp] enq port 0x1010d, buf 0xf383b800, va 0xea01e000
D/MtkCam/ISC( 257): [dropPass2Info] Erase # 0x2FC,ImgBuf(0xF383B800),IsR(0)
D/MtkCam/P1Node( 257): [0:dequeLoop] frame 1676: deque+
D/MtkCam/DCNode( 257): [0:doNotifyCb] 3APROC_FINISH:0x000002FD,0x00000003
谢谢分享。
问题已经解决,但是速度慢了好多,老板还是不满意,还得继续解MTK遗留的问题
请问下倒车影像会不会有抖动的问题?
还好,CVBS信号都有抖动问题,但是这个客户应该能接受。
抖动这个主要是奇偶场的问题引起的吧。目前CVBS的video 芯片都是将一帧数据分2场输出给基带,mtk又没有将奇偶场数据合并。所以显示的数据,都是讲原来的一帧数据,分2次来显示。