hi, team:
I need to read yuv422p data from a sensor, i have edit device tree mode node which i have get raw data ok:
‘’‘’
mode_type = “yuv”;
pixel_phase = “uyvy”;
csi_pixel_bit_depth = “16”;
‘’‘’‘’
when i insmod ok,i can query driver info:
eyecloud@eyecloud-desktop:/mnt/duke/nvidia/ecfg/i2c_test_json$ v4l2-ctl --list-formats-ext --device /dev/video0
ioctl: VIDIOC_ENUM_FMT
Type: Video Capture
[0]: 'UYVY' (UYVY 4:2:2)
Size: Discrete 1920x1536
Interval: Discrete 0.048s (21.000 fps)
[1]: 'NV16' (Y/CbCr 4:2:2)
Size: Discrete 1920x1536
Interval: Discrete 0.048s (21.000 fps)
[2]: 'UYVY' (UYVY 4:2:2)
Size: Discrete 1920x1536
Interval: Discrete 0.048s (21.000 fps)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
but when i caputre frame with v4l2-ctl, I can't got image.
v4l2-ctl -d /dev/video0 --set-fmt-video=width=1920,height=1536,pixelformat=NV16 --set-ctrl bypass_mode=0 --set-ctrl sensor_mode=0 --stream-mmap --stream-to=frame.yuv --stream-count=2
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
so i check kernel log about vi,it show:
[ 404.985596] t194-nvcsi 13e40000.host1x:nvcsi@15a00000: csi5_stream_close: Error in closing stream_id=0, csi_port=0
[ 404.996253] ===csi5_start_streaming: csi_pt=0, st_id=0, vc_id=0, pg_mode=0x0 num_lanes = 4
[ 404.996256] (NULL device *): vi_capture_control_message: NULL VI channel received
[ 405.003959] t194-nvcsi 13e40000.host1x:nvcsi@15a00000: csi5_stream_open: VI channel not found for stream- 0 vc- 0
[ 405.014803] tegra-camrtc-capture-vi tegra-capture-vi: err_rec: successfully reset the capture channel
[ 407.774460] tegra-camrtc-capture-vi tegra-capture-vi: uncorr_err: request timed out after 2500 ms
[ 407.783608] tegra-camrtc-capture-vi tegra-capture-vi: err_rec: attempting to reset the capture channel
[ 407.794073] (NULL device *): vi_capture_control_message: NULL VI channel received
[ 407.801799] t194-nvcsi 13e40000.host1x:nvcsi@15a00000: csi5_stream_close: Error in closing stream_id=0, csi_port=0
[ 407.812457] ===csi5_start_streaming: csi_pt=0, st_id=0, vc_id=0, pg_mode=0x0 num_lanes = 4
[ 407.812461] (NULL device *): vi_capture_control_message: NULL VI channel received
[ 407.820173] t194-nvcsi 13e40000.host1x:nvcsi@15a00000: csi5_stream_open: VI channel not found for stream- 0 vc- 0
[ 407.831013] tegra-camrtc-capture-vi tegra-capture-vi: err_rec: successfully reset the capture channel
[ 410.366447] tegra-camrtc-capture-vi tegra-capture-vi: uncorr_err: request timed out after 2500 ms
[ 410.375592] tegra-camrtc-capture-vi tegra-capture-vi: err_rec: attempting to reset the capture channel
[ 410.386046] (NULL device *): vi_capture_control_message: NULL VI channel received
[ 410.393764] t194-nvcsi 13e40000.host1x:nvcsi@15a00000: csi5_stream_close: Error in closing stream_id=0, csi_port=0
[ 410.404423] ===csi5_start_streaming: csi_pt=0, st_id=0, vc_id=0, pg_mode=0x0 num_lanes = 4
[ 410.404426] (NULL device *): vi_capture_control_message: NULL VI channel received
[ 410.412135] t194-nvcsi 13e40000.host1x:nvcsi@15a00000: csi5_stream_open: VI channel not found for stream- 0 vc- 0
[ 410.422963] tegra-camrtc-capture-vi tegra-capture-vi: err_rec: successfully reset the capture channel
[ 410.432730] zl------/home/eyecloud/duke/nvidia/Linux_for_Tegra/source/public/kernel/nvidia/drivers/media/i2c/nv_imx219.c::698 imx219_stop_streaming
Is it mipi driver error? Any help with this issue would be greatly appreciated.