Firefly开源社区

标题: firefly primeS+ 摄像头CIF驱动问题 [打印本页]

作者: hzl    时间: 2016-7-4 11:46
标题: firefly primeS+ 摄像头CIF驱动问题
通过在firefly primeS+ 摄像头CIF驱动的中断中的打印信息,发现每秒钟产生的中断为16次,也就是说摄像头的帧率为16帧,对应的代码位置在kernel\drivers\media\video\rk30_camera_pingpong.c。
将rk30_camera_pingpong.c中debug变量进行如下设置。
static int debug = 4

采集的log信息:
589.032636] rk_cam_cif(1186): /$$$$$$$$$$$$$$$$$$$$$$//n Here I am: drivers/media/video/rk30_camera_pingpong.c:1186-------rk_camera_irq() ,reg_intstat 0x20b
[  589.032684] rk_cam_cif(1013): /$$$$$$$$$$$$$$$$$$$$$$//n Here I am: drivers/media/video/rk30_camera_pingpong.c:1013-------rk_camera_cifirq()
[  589.032710] rk_cam_cif(1063): /$$$$$$$$$$$$$$$$$$$$$$//n Here I am: drivers/media/video/rk30_camera_pingpong.c:1063-------rk_camera_dmairq()
[  589.032740] rk_cam_cif(743): /$$$$$$$$$$$$$$$$$$$$$$//n Here I am: drivers/media/video/rk30_camera_pingpong.c:743-------rk_videobuf_capture()
[  589.045576] rk_cam_cif(691): /$$$$$$$$$$$$$$$$$$$$$$//n Here I am: drivers/media/video/rk30_camera_pingpong.c:691-------rk_videobuf_prepare()
[  589.045610] rk_cam_cif(792): /$$$$$$$$$$$$$$$$$$$$$$//n Here I am: drivers/media/video/rk30_camera_pingpong.c:792-------rk_videobuf_queue()
[  589.096525] rk_cam_cif(1186): /$$$$$$$$$$$$$$$$$$$$$$//n Here I am: drivers/media/video/rk30_camera_pingpong.c:1186-------rk_camera_irq() ,reg_intstat 0x20b
[  589.096558] rk_cam_cif(1013): /$$$$$$$$$$$$$$$$$$$$$$//n Here I am: drivers/media/video/rk30_camera_pingpong.c:1013-------rk_camera_cifirq()
[  589.096581] rk_cam_cif(1063): /$$$$$$$$$$$$$$$$$$$$$$//n Here I am: drivers/media/video/rk30_camera_pingpong.c:1063-------rk_camera_dmairq()
[  589.096604] rk_cam_cif(743): /$$$$$$$$$$$$$$$$$$$$$$//n Here I am: drivers/media/video/rk30_camera_pingpong.c:743-------rk_videobuf_capture()
[  589.103651] rk_cam_cif(691): /$$$$$$$$$$$$$$$$$$$$$$//n Here I am: drivers/media/video/rk30_camera_pingpong.c:691-------rk_videobuf_prepare()
[  589.103687] rk_cam_cif(792): /$$$$$$$$$$$$$$$$$$$$$$//n Here I am: drivers/media/video/rk30_camera_pingpong.c:792-------rk_videobuf_queue()
[  589.160425] rk_cam_cif(1186): /$$$$$$$$$$$$$$$$$$$$$$//n Here I am: drivers/media/video/rk30_camera_pingpong.c:1186-------rk_camera_irq() ,reg_intstat 0x20b
[  589.160468] rk_cam_cif(1013): /$$$$$$$$$$$$$$$$$$$$$$//n Here I am: drivers/media/video/rk30_camera_pingpong.c:1013-------rk_camera_cifirq()
[  589.160492] rk_cam_cif(1063): /$$$$$$$$$$$$$$$$$$$$$$//n Here I am: drivers/media/video/rk30_camera_pingpong.c:1063-------rk_camera_dmairq()
[  589.160517] rk_cam_cif(743): /$$$$$$$$$$$$$$$$$$$$$$//n Here I am: drivers/media/video/rk30_camera_pingpong.c:743-------rk_videobuf_capture()
[  589.168165] rk_cam_cif(691): /$$$$$$$$$$$$$$$$$$$$$$//n Here I am: drivers/media/video/rk30_camera_pingpong.c:691-------rk_videobuf_prepare()
[  589.168202] rk_cam_cif(792): /$$$$$$$$$$$$$$$$$$$$$$//n Here I am: drivers/media/video/rk30_camera_pingpong.c:792-------rk_videobuf_queue()
[  589.224318] rk_cam_cif(1186): /$$$$$$$$$$$$$$$$$$$$$$//n Here I am: drivers/media/video/rk30_camera_pingpong.c:1186-------rk_camera_irq() ,reg_intstat 0x20b
[  589.224350] rk_cam_cif(1013): /$$$$$$$$$$$$$$$$$$$$$$//n Here I am: drivers/media/video/rk30_camera_pingpong.c:1013-------rk_camera_cifirq()
[  589.224371] rk_cam_cif(1063): /$$$$$$$$$$$$$$$$$$$$$$//n Here I am: drivers/media/video/rk30_camera_pingpong.c:1063-------rk_camera_dmairq()
[  589.224393] rk_cam_cif(743): /$$$$$$$$$$$$$$$$$$$$$$//n Here I am: drivers/media/video/rk30_camera_pingpong.c:743-------rk_videobuf_capture()
[  589.238905] rk_cam_cif(691): /$$$$$$$$$$$$$$$$$$$$$$//n Here I am: drivers/media/video/rk30_camera_pingpong.c:691-------rk_videobuf_prepare()
[  589.238981] rk_cam_cif(792): /$$$$$$$$$$$$$$$$$$$$$$//n Here I am: drivers/media/video/rk30_camera_pingpong.c:792-------rk_videobuf_queue()
[  589.288229] rk_cam_cif(1186): /$$$$$$$$$$$$$$$$$$$$$$//n Here I am: drivers/media/video/rk30_camera_pingpong.c:1186-------rk_camera_irq() ,reg_intstat 0x20b
[  589.288266] rk_cam_cif(1013): /$$$$$$$$$$$$$$$$$$$$$$//n Here I am: drivers/media/video/rk30_camera_pingpong.c:1013-------rk_camera_cifirq()
[  589.288289] rk_cam_cif(1063): /$$$$$$$$$$$$$$$$$$$$$$//n Here I am: drivers/media/video/rk30_camera_pingpong.c:1063-------rk_camera_dmairq()
[  589.288313] rk_cam_cif(743): /$$$$$$$$$$$$$$$$$$$$$$//n Here I am: drivers/media/video/rk30_camera_pingpong.c:743-------rk_videobuf_capture()
[  589.296585] rk_cam_cif(691): /$$$$$$$$$$$$$$$$$$$$$$//n Here I am: drivers/media/video/rk30_camera_pingpong.c:691-------rk_videobuf_prepare()
[  589.296622] rk_cam_cif(792): /$$$$$$$$$$$$$$$$$$$$$$//n Here I am: drivers/media/video/rk30_camera_pingpong.c:792-------rk_videobuf_queue()
[  589.352119] rk_cam_cif(1186): /$$$$$$$$$$$$$$$$$$$$$$//n Here I am: drivers/media/video/rk30_camera_pingpong.c:1186-------rk_camera_irq() ,reg_intstat 0x20b
[  589.352150] rk_cam_cif(1013): /$$$$$$$$$$$$$$$$$$$$$$//n Here I am: drivers/media/video/rk30_camera_pingpong.c:1013-------rk_camera_cifirq()
[  589.352172] rk_cam_cif(1063): /$$$$$$$$$$$$$$$$$$$$$$//n Here I am: drivers/media/video/rk30_camera_pingpong.c:1063-------rk_camera_dmairq()
[  589.352194] rk_cam_cif(743): /$$$$$$$$$$$$$$$$$$$$$$//n Here I am: drivers/media/video/rk30_camera_pingpong.c:743-------rk_videobuf_capture()
[  589.357967] rk_cam_cif(691): /$$$$$$$$$$$$$$$$$$$$$$//n Here I am: drivers/media/video/rk30_camera_pingpong.c:691-------rk_videobuf_prepare()
[  589.358001] rk_cam_cif(792): /$$$$$$$$$$$$$$$$$$$$$$//n Here I am: drivers/media/video/rk30_camera_pingpong.c:792-------rk_videobuf_queue()
[  589.416017] rk_cam_cif(1186): /$$$$$$$$$$$$$$$$$$$$$$//n Here I am: drivers/media/video/rk30_camera_pingpong.c:1186-------rk_camera_irq() ,reg_intstat 0x20b
[  589.416050] rk_cam_cif(1013): /$$$$$$$$$$$$$$$$$$$$$$//n Here I am: drivers/media/video/rk30_camera_pingpong.c:1013-------rk_camera_cifirq()
[  589.416072] rk_cam_cif(1063): /$$$$$$$$$$$$$$$$$$$$$$//n Here I am: drivers/media/video/rk30_camera_pingpong.c:1063-------rk_camera_dmairq()
[  589.416094] rk_cam_cif(743): /$$$$$$$$$$$$$$$$$$$$$$//n Here I am: drivers/media/video/rk30_camera_pingpong.c:743-------rk_videobuf_capture()
[  589.421823] rk_cam_cif(691): /$$$$$$$$$$$$$$$$$$$$$$//n Here I am: drivers/media/video/rk30_camera_pingpong.c:691-------rk_videobuf_prepare()
[  589.421855] rk_cam_cif(792): /$$$$$$$$$$$$$$$$$$$$$$//n Here I am: drivers/media/video/rk30_camera_pingpong.c:792-------rk_videobuf_queue()
[  589.479920] rk_cam_cif(1186): /$$$$$$$$$$$$$$$$$$$$$$//n Here I am: drivers/media/video/rk30_camera_pingpong.c:1186-------rk_camera_irq() ,reg_intstat 0x20b
[  589.479951] rk_cam_cif(1013): /$$$$$$$$$$$$$$$$$$$$$$//n Here I am: drivers/media/video/rk30_camera_pingpong.c:1013-------rk_camera_cifirq()
[  589.479972] rk_cam_cif(1063): /$$$$$$$$$$$$$$$$$$$$$$//n Here I am: drivers/media/video/rk30_camera_pingpong.c:1063-------rk_camera_dmairq()
[  589.479994] rk_cam_cif(743): /$$$$$$$$$$$$$$$$$$$$$$//n Here I am: drivers/media/video/rk30_camera_pingpong.c:743-------rk_videobuf_capture()
[  589.485783] rk_cam_cif(691): /$$$$$$$$$$$$$$$$$$$$$$//n Here I am: drivers/media/video/rk30_camera_pingpong.c:691-------rk_videobuf_prepare()
[  589.485817] rk_cam_cif(792): /$$$$$$$$$$$$$$$$$$$$$$//n Here I am: drivers/media/video/rk30_camera_pingpong.c:792-------rk_videobuf_queue()
[  589.543818] rk_cam_cif(1186): /$$$$$$$$$$$$$$$$$$$$$$//n Here I am: drivers/media/video/rk30_camera_pingpong.c:1186-------rk_camera_irq() ,reg_intstat 0x20b
[  589.543849] rk_cam_cif(1013): /$$$$$$$$$$$$$$$$$$$$$$//n Here I am: drivers/media/video/rk30_camera_pingpong.c:1013-------rk_camera_cifirq()
[  589.543870] rk_cam_cif(1063): /$$$$$$$$$$$$$$$$$$$$$$//n Here I am: drivers/media/video/rk30_camera_pingpong.c:1063-------rk_camera_dmairq()
[  589.543893] rk_cam_cif(743): /$$$$$$$$$$$$$$$$$$$$$$//n Here I am: drivers/media/video/rk30_camera_pingpong.c:743-------rk_videobuf_capture()
[  589.550246] rk_cam_cif(691): /$$$$$$$$$$$$$$$$$$$$$$//n Here I am: drivers/media/video/rk30_camera_pingpong.c:691-------rk_videobuf_prepare()
[  589.550279] rk_cam_cif(792): /$$$$$$$$$$$$$$$$$$$$$$//n Here I am: drivers/media/video/rk30_camera_pingpong.c:792-------rk_videobuf_queue()
[  589.607715] rk_cam_cif(1186): /$$$$$$$$$$$$$$$$$$$$$$//n Here I am: drivers/media/video/rk30_camera_pingpong.c:1186-------rk_camera_irq() ,reg_intstat 0x20b
[  589.607746] rk_cam_cif(1013): /$$$$$$$$$$$$$$$$$$$$$$//n Here I am: drivers/media/video/rk30_camera_pingpong.c:1013-------rk_camera_cifirq()
[  589.607768] rk_cam_cif(1063): /$$$$$$$$$$$$$$$$$$$$$$//n Here I am: drivers/media/video/rk30_camera_pingpong.c:1063-------rk_camera_dmairq()
[  589.607790] rk_cam_cif(743): /$$$$$$$$$$$$$$$$$$$$$$//n Here I am: drivers/media/video/rk30_camera_pingpong.c:743-------rk_videobuf_capture()
[  589.613500] rk_cam_cif(691): /$$$$$$$$$$$$$$$$$$$$$$//n Here I am: drivers/media/video/rk30_camera_pingpong.c:691-------rk_videobuf_prepare()
[  589.613531] rk_cam_cif(792): /$$$$$$$$$$$$$$$$$$$$$$//n Here I am: drivers/media/video/rk30_camera_pingpong.c:792-------rk_videobuf_queue()
[  589.671619] rk_cam_cif(1186): /$$$$$$$$$$$$$$$$$$$$$$//n Here I am: drivers/media/video/rk30_camera_pingpong.c:1186-------rk_camera_irq() ,reg_intstat 0x20b
[  589.671651] rk_cam_cif(1013): /$$$$$$$$$$$$$$$$$$$$$$//n Here I am: drivers/media/video/rk30_camera_pingpong.c:1013-------rk_camera_cifirq()
[  589.671673] rk_cam_cif(1063): /$$$$$$$$$$$$$$$$$$$$$$//n Here I am: drivers/media/video/rk30_camera_pingpong.c:1063-------rk_camera_dmairq()
[  589.671695] rk_cam_cif(743): /$$$$$$$$$$$$$$$$$$$$$$//n Here I am: drivers/media/video/rk30_camera_pingpong.c:743-------rk_videobuf_capture()
[  589.677435] rk_cam_cif(691): /$$$$$$$$$$$$$$$$$$$$$$//n Here I am: drivers/media/video/rk30_camera_pingpong.c:691-------rk_videobuf_prepare()
[  589.677468] rk_cam_cif(792): /$$$$$$$$$$$$$$$$$$$$$$//n Here I am: drivers/media/video/rk30_camera_pingpong.c:792-------rk_videobuf_queue()
[  589.735519] rk_cam_cif(1186): /$$$$$$$$$$$$$$$$$$$$$$//n Here I am: drivers/media/video/rk30_camera_pingpong.c:1186-------rk_camera_irq() ,reg_intstat 0x20b
[  589.735550] rk_cam_cif(1013): /$$$$$$$$$$$$$$$$$$$$$$//n Here I am: drivers/media/video/rk30_camera_pingpong.c:1013-------rk_camera_cifirq()
[  589.735571] rk_cam_cif(1063): /$$$$$$$$$$$$$$$$$$$$$$//n Here I am: drivers/media/video/rk30_camera_pingpong.c:1063-------rk_camera_dmairq()
[  589.735593] rk_cam_cif(743): /$$$$$$$$$$$$$$$$$$$$$$//n Here I am: drivers/media/video/rk30_camera_pingpong.c:743-------rk_videobuf_capture()
[  589.741455] rk_cam_cif(691): /$$$$$$$$$$$$$$$$$$$$$$//n Here I am: drivers/media/video/rk30_camera_pingpong.c:691-------rk_videobuf_prepare()
[  589.741487] rk_cam_cif(792): /$$$$$$$$$$$$$$$$$$$$$$//n Here I am: drivers/media/video/rk30_camera_pingpong.c:792-------rk_videobuf_queue()
[  589.799418] rk_cam_cif(1186): /$$$$$$$$$$$$$$$$$$$$$$//n Here I am: drivers/media/video/rk30_camera_pingpong.c:1186-------rk_camera_irq() ,reg_intstat 0x20b
[  589.799448] rk_cam_cif(1013): /$$$$$$$$$$$$$$$$$$$$$$//n Here I am: drivers/media/video/rk30_camera_pingpong.c:1013-------rk_camera_cifirq()
[  589.799471] rk_cam_cif(1063): /$$$$$$$$$$$$$$$$$$$$$$//n Here I am: drivers/media/video/rk30_camera_pingpong.c:1063-------rk_camera_dmairq()
[  589.799492] rk_cam_cif(743): /$$$$$$$$$$$$$$$$$$$$$$//n Here I am: drivers/media/video/rk30_camera_pingpong.c:743-------rk_videobuf_capture()
[  589.813176] rk_cam_cif(691): /$$$$$$$$$$$$$$$$$$$$$$//n Here I am: drivers/media/video/rk30_camera_pingpong.c:691-------rk_videobuf_prepare()
[  589.813241] rk_cam_cif(792): /$$$$$$$$$$$$$$$$$$$$$$//n Here I am: drivers/media/video/rk30_camera_pingpong.c:792-------rk_videobuf_queue()
[  589.863321] rk_cam_cif(1186): /$$$$$$$$$$$$$$$$$$$$$$//n Here I am: drivers/media/video/rk30_camera_pingpong.c:1186-------rk_camera_irq() ,reg_intstat 0x20b
[  589.863352] rk_cam_cif(1013): /$$$$$$$$$$$$$$$$$$$$$$//n Here I am: drivers/media/video/rk30_camera_pingpong.c:1013-------rk_camera_cifirq()
[  589.863374] rk_cam_cif(1063): /$$$$$$$$$$$$$$$$$$$$$$//n Here I am: drivers/media/video/rk30_camera_pingpong.c:1063-------rk_camera_dmairq()
[  589.863396] rk_cam_cif(743): /$$$$$$$$$$$$$$$$$$$$$$//n Here I am: drivers/media/video/rk30_camera_pingpong.c:743-------rk_videobuf_capture()
[  589.869157] rk_cam_cif(691): /$$$$$$$$$$$$$$$$$$$$$$//n Here I am: drivers/media/video/rk30_camera_pingpong.c:691-------rk_videobuf_prepare()
[  589.869191] rk_cam_cif(792): /$$$$$$$$$$$$$$$$$$$$$$//n Here I am: drivers/media/video/rk30_camera_pingpong.c:792-------rk_videobuf_queue()
[  589.927221] rk_cam_cif(1186): /$$$$$$$$$$$$$$$$$$$$$$//n Here I am: drivers/media/video/rk30_camera_pingpong.c:1186-------rk_camera_irq() ,reg_intstat 0x20b
[  589.927253] rk_cam_cif(1013): /$$$$$$$$$$$$$$$$$$$$$$//n Here I am: drivers/media/video/rk30_camera_pingpong.c:1013-------rk_camera_cifirq()
[  589.927274] rk_cam_cif(1063): /$$$$$$$$$$$$$$$$$$$$$$//n Here I am: drivers/media/video/rk30_camera_pingpong.c:1063-------rk_camera_dmairq()
[  589.927297] rk_cam_cif(743): /$$$$$$$$$$$$$$$$$$$$$$//n Here I am: drivers/media/video/rk30_camera_pingpong.c:743-------rk_videobuf_capture()
[  589.932979] rk_cam_cif(691): /$$$$$$$$$$$$$$$$$$$$$$//n Here I am: drivers/media/video/rk30_camera_pingpong.c:691-------rk_videobuf_prepare()
[  589.933010] rk_cam_cif(792): /$$$$$$$$$$$$$$$$$$$$$$//n Here I am: drivers/media/video/rk30_camera_pingpong.c:792-------rk_videobuf_queue()
[  589.991122] rk_cam_cif(1186): /$$$$$$$$$$$$$$$$$$$$$$//n Here I am: drivers/media/video/rk30_camera_pingpong.c:1186-------rk_camera_irq() ,reg_intstat 0x20b
[  589.991153] rk_cam_cif(1013): /$$$$$$$$$$$$$$$$$$$$$$//n Here I am: drivers/media/video/rk30_camera_pingpong.c:1013-------rk_camera_cifirq()
[  589.991175] rk_cam_cif(1063): /$$$$$$$$$$$$$$$$$$$$$$//n Here I am: drivers/media/video/rk30_camera_pingpong.c:1063-------rk_camera_dmairq()
[  589.991198] rk_cam_cif(743): /$$$$$$$$$$$$$$$$$$$$$$//n Here I am: drivers/media/video/rk30_camera_pingpong.c:743-------rk_videobuf_capture()
[  589.997092] rk_cam_cif(691): /$$$$$$$$$$$$$$$$$$$$$$//n Here I am: drivers/media/video/rk30_camera_pingpong.c:691-------rk_videobuf_prepare()
[  589.997124] rk_cam_cif(792): /$$$$$$$$$$$$$$$$$$$$$$//n Here I am: drivers/media/video/rk30_camera_pingpong.c:792-------rk_videobuf_queue()


基本上可以读出中断数为16.
想问如何提高cif采集的频率,代码需要在哪里设置。
外部摄像头输入的帧率确认比16帧高很多。

作者: 点缀0001    时间: 2016-7-22 11:43
您好,请问您是在linux下开发吗
作者: carter123456    时间: 2017-7-26 12:22
你好 请问这个问题解决了吗  我现在也是用3128的板子弄cif摄像头  把把帧率提下  现在不知道在哪个地方改




欢迎光临 Firefly开源社区 (https://dev.t-firefly.com/) Powered by Discuz! X3.1