|
rkcif适配完,怎么出图啊,rkcif是怎么接收图像的,那个中断是怎么才能调用
发表于 2020-9-19 17:00:08
浏览:9059
|
回复:1
打印
只看该作者
[复制链接]
楼主
我是rk3326,接了一个dvp摄像头驱动,已经和rkcif正常绑定,但就是不出图,不知道怎么回事
root@ubuntu:~# dmesg
[ 366.396625] fpx8301 2-0040: fpx8301_open:
[ 366.396700] fpx8301 2-0040: fpx8301_get_fmt: 2006 584x584
[ 4462.206933] rkcif: rkcif_soft_reset
[ 4462.206968] rkcif: rkcif_iommu_cleanup
[ 4462.207349] rkcif: rkcif_iommu_init
[ 4462.207961] pwm-backlight backlight: GPIO lookup for consumer enable
[ 4462.207982] pwm-backlight backlight: using device tree for GPIO lookup
[ 4462.208001] of_get_named_gpiod_flags: can't parse 'enable-gpios' property of node '/backlight[0]'
[ 4462.208022] of_get_named_gpiod_flags: can't parse 'enable-gpio' property of node '/backlight[0]'
[ 4462.208036] pwm-backlight backlight: using lookup tables for GPIO lookup
[ 4462.208050] pwm-backlight backlight: lookup for GPIO enable failed
[ 4462.208070] pwm-backlight backlight: Looking up power-supply from device tree
[ 4462.208087] pwm-backlight backlight: Looking up power-supply property in node /backlight failed
[ 4462.208129] backlight supply power not found, using dummy regulator
[ 4462.209037] video0: open (0)
[ 4462.209121] video0: VIDIOC_QUERYCAP: driver=rkcif, card=rkcif, bus=platform:ff490000.cif-new, version=0x000404b9, capabilities=0x84201000, device_caps=0x04201000
[ 4462.209183] video0: VIDIOC_QUERY_EXT_CTRL: id=0x980001, type=6, name=User Controls, min/max=0/0, step=0, default=0, flags=0x00000044, elem_size=4, elems=1, nr_of_dims=0, dims=0,0,0,0
[ 4462.209221] video0: VIDIOC_QUERY_EXT_CTRL: id=0x980001, type=6, name=User Controls, min/max=0/0, step=0, default=0, flags=0x00000044, elem_size=4, elems=1, nr_of_dims=0, dims=0,0,0,0
[ 4462.209270] video0: VIDIOC_QUERY_EXT_CTRL: id=0x980911, type=1, name=Exposure, min/max=1/255, step=1, default=255, flags=0x00000090, elem_size=4, elems=1, nr_of_dims=0, dims=0,0,0,0
[ 4462.209490] video0: VIDIOC_QUERY_EXT_CTRL: id=0x980912, type=2, name=Gain, Automatic, min/max=0/1, step=1, default=1, flags=0x00000008, elem_size=4, elems=1, nr_of_dims=0, dims=0,0,0,0
[ 4462.209547] video0: VIDIOC_QUERY_EXT_CTRL: id=0x980913, type=1, name=Gain, min/max=0/127, step=1, default=64, flags=0x00000090, elem_size=4, elems=1, nr_of_dims=0, dims=0,0,0,0
[ 4462.209612] video0: VIDIOC_QUERY_EXT_CTRL: id=0x9a0001, type=6, name=Camera Controls, min/max=0/0, step=0, default=0, flags=0x00000044, elem_size=4, elems=1, nr_of_dims=0, dims=0,0,0,0
[ 4462.209647] video0: VIDIOC_QUERY_EXT_CTRL: id=0x9a0901, type=3, name=Auto Exposure, min/max=0/1, step=1, default=0, flags=0x00000008, elem_size=4, elems=1, nr_of_dims=0, dims=0,0,0,0
[ 4462.209688] video0: VIDIOC_QUERY_EXT_CTRL: error -22: id=0xc09a0901, type=0, name=, min/max=0/0, step=0, default=0, flags=0x00000000, elem_size=0, elems=0, nr_of_dims=0, dims=0,0,0,0
[ 4462.209746] rkcifcap: rkcif_g_fmt_vid_cap_mplane
[ 4462.209758] video0: VIDIOC_G_FMT: type=vid-cap-mplane, width=584, height=584, format=NV16, field=none, colorspace=0, num_planes=1, flags=0x0, ycbcr_enc=0, quantization=0, xfer_func=0
[ 4462.209865] plane 0: bytesperline=584 sizeimage=682112
[ 4462.209888] video0: VIDIOC_ENUM_FMT: index=0, type=vid-cap-mplane, flags=0x0, pixelformat=NV16, description='Y/CbCr 4:2:2'
[ 4462.209925] rkcif: rkcif_s_fmt_vid_cap_mplane
[ 4462.209935] rkcifcap: rkcif_s_fmt_vid_cap_mplane
[ 4462.209961] fpx8301 2-0040: fpx8301_get_fmt: 2006 584x584
[ 4462.209974] rkcif: remote fmt: mbus code:0x2006, size:584x584, field: 1
[ 4462.209988] rkcif: C-Plane 0 size: 341056, Total imagesize: 341056
[ 4462.210000] rkcif: C-Plane 1 size: 341056, Total imagesize: 682112
[ 4462.210012] rkcif: rkcif_set_fmt: req(584, 584) out(584, 584)
[ 4462.210021] video0: VIDIOC_S_FMT: type=vid-cap-mplane, width=584, height=584, format=NV16, field=none, colorspace=0, num_planes=1, flags=0x0, ycbcr_enc=0, quantization=0, xfer_func=0
[ 4462.210056] plane 0: bytesperline=584 sizeimage=682112
[ 4462.210122] video0: VIDIOC_SUBSCRIBE_EVENT: error -25: type=0x2, id=0x0, flags=0x0
[ 4462.210454] rkcif: vid-cap-mplane count 3, size 682112
[ 4462.212012] vb2: __setup_offsets: buffer 0, plane 0 offset 0x00000000
[ 4462.212039] vb2: __setup_offsets: buffer 1, plane 0 offset 0x000a7000
[ 4462.212050] vb2: __setup_offsets: buffer 2, plane 0 offset 0x0014e000
[ 4462.212060] vb2: __vb2_queue_alloc: allocated 3 buffers, 1 plane(s) each
[ 4462.212072] video0: VIDIOC_REQBUFS: count=3, type=vid-cap-mplane, memory=mmap
[ 4462.212127] video0: VIDIOC_QUERYBUF: 00:00:00.00000000 index=0, type=vid-cap-mplane, flags=0x00002000, field=any, sequence=0, memory=mmap
[ 4462.212165] plane 0: bytesused=0, data_offset=0x00000000, offset/userptr=0x0, length=682112
[ 4462.212178] timecode=00:00:00 type=0, flags=0x00000000, frames=0, userbits=0x00000000
[ 4462.212194] video0: VIDIOC_QUERYBUF: 00:00:00.00000000 index=0, type=vid-cap-mplane, flags=0x00002000, field=any, sequence=0, memory=mmap
[ 4462.212229] plane 0: bytesused=0, data_offset=0x00000000, offset/userptr=0x0, length=682112
[ 4462.212242] timecode=00:00:00 type=0, flags=0x00000000, frames=0, userbits=0x00000000
[ 4462.212434] vb2: vb2_mmap: buffer 0, plane 0 successfully mapped
[ 4462.212448] video0: mmap (0)
[ 4462.212498] vb2: vb2_core_qbuf: qbuf of buffer 0 succeeded
[ 4462.212508] video0: VIDIOC_QBUF: 00:00:00.00000000 index=0, type=vid-cap-mplane, flags=0x00002003, field=any, sequence=0, memory=mmap
[ 4462.212543] plane 0: bytesused=0, data_offset=0x00000000, offset/userptr=0x0, length=682112
[ 4462.212556] timecode=00:00:00 type=0, flags=0x00000000, frames=0, userbits=0x00000000
[ 4462.212574] video0: VIDIOC_QUERYBUF: 00:00:00.00000000 index=1, type=vid-cap-mplane, flags=0x00002000, field=any, sequence=0, memory=mmap
[ 4462.212609] plane 0: bytesused=0, data_offset=0x00000000, offset/userptr=0xa7000, length=682112
[ 4462.212622] timecode=00:00:00 type=0, flags=0x00000000, frames=0, userbits=0x00000000
[ 4462.212747] vb2: vb2_mmap: buffer 1, plane 0 successfully mapped
[ 4462.212759] video0: mmap (0)
[ 4462.212869] vb2: vb2_core_qbuf: qbuf of buffer 1 succeeded
[ 4462.212883] video0: VIDIOC_QBUF: 00:00:00.00000000 index=1, type=vid-cap-mplane, flags=0x00002003, field=any, sequence=0, memory=mmap
[ 4462.212918] plane 0: bytesused=0, data_offset=0x00000000, offset/userptr=0xa7000, length=682112
[ 4462.212931] timecode=00:00:00 type=0, flags=0x00000000, frames=0, userbits=0x00000000
[ 4462.212948] video0: VIDIOC_QUERYBUF: 00:00:00.00000000 index=2, type=vid-cap-mplane, flags=0x00002000, field=any, sequence=0, memory=mmap
[ 4462.212982] plane 0: bytesused=0, data_offset=0x00000000, offset/userptr=0x14e000, length=682112
[ 4462.212995] timecode=00:00:00 type=0, flags=0x00000000, frames=0, userbits=0x00000000
[ 4462.213126] vb2: vb2_mmap: buffer 2, plane 0 successfully mapped
[ 4462.213137] video0: mmap (0)
[ 4462.213160] vb2: vb2_core_qbuf: qbuf of buffer 2 succeeded
[ 4462.213169] video0: VIDIOC_QBUF: 00:00:00.00000000 index=2, type=vid-cap-mplane, flags=0x00002003, field=any, sequence=0, memory=mmap
[ 4462.213204] plane 0: bytesused=0, data_offset=0x00000000, offset/userptr=0x14e000, length=682112
[ 4462.213223] timecode=00:00:00 type=0, flags=0x00000000, frames=0, userbits=0x00000000
[ 4462.213267] fpx8301 2-0040: fpx8301_get_fmt: 2006 584x584
[ 4462.213281] rkcif: remote fmt: mbus code:0x2006, size:584x584, field: 1
[ 4462.213570] rkcif: Allocate dummy buffer, size: 0x00053440
[ 4462.213613] rkcif: rkcif_enable_sys_clk
[ 4462.213631] rkcif: rkcif_pipeline_open
[ 4462.213641] rkcif: __cif_pipeline_prepare
[ 4462.213652] rkcif: __cif_pipeline_s_power
[ 4462.213661] rkcif: __subdev_set_power
[ 4462.213676] fpx8301 2-0040: fpx8301_s_power:
[ 4462.213694] rkcif: rkcif_pipeline_set_stream
[ 4462.213755] fpx8301 2-0040: fpx8301_s_stream: on: 1, 584x584@50
[ 4462.213835] fpx8301 2-0040: fpx8301_s_stream:stream start:1
[ 4462.221283] fpx8301 2-0040: fpx8301_set_streaming: on: 1
[ 4462.266844] rkcif: rkcif_start_streaming successfully!
[ 4462.266874] vb2: vb2_core_streamon: successful
[ 4462.266886] video0: VIDIOC_STREAMON: type=vid-cap-mplane
[ 4462.266984] video0: poll: 00000000
[ 4462.267020] vb2: __vb2_wait_for_done_vb: will sleep waiting for buffers
[ 4469.623421] vb2: __vb2_wait_for_done_vb: sleep was interr
有知道怎么回事的博友吗
|
|