@Loic @robertfoss
I am able to get Snapshot and live preview working on qcomlt-5.15 kernel 820 SoM. With the default ov5640 driver itself I was able to get these things working fine. I used below configs:
sudo media-ctl -d /dev/media0 -l ‘“msm_csiphy0”:1->“msm_csid0”:0[1],“msm_csid0”:1->“msm_ispif0”:0[1],“msm_ispif0”:1->“msm_vfe0_rdi0”:0[1]’
sudo media-ctl -d /dev/media0 -V ‘“ov5640 4-003b”:0[fmt:UYVY8_2X8/1920x1080 field:none],“msm_csiphy0”:0[fmt:UYVY8_2X8/1920x1080 field:none],“msm_csid0”:0[fmt:UYVY8_2X8/1920x1080 field:none],“msm_ispif0”:0[fmt:UYVY8_2X8/1920x1080 field:none],“msm_vfe0_rdi0”:0[fmt:UYVY8_2X8/1920x1080 field:none]’
Currently I am trying to use msm_vfe0_pix instead of msm_vfe0_rdi0. But I am facing below error’s
362.287714] qcom-camss a34000.camss: VFE0 pix0 overflow
[ 362.321047] qcom-camss a34000.camss: VFE0 pix0 overflow
[ 367.054373] ispif_isr_8x96: 141 callbacks suppressed
[ 367.054394] qcom-camss a34000.camss: VFE0 pix0 overflow
[ 367.087713] qcom-camss a34000.camss: VFE0 pix0 overflow
[ 367.121047] qcom-camss a34000.camss: VFE0 pix0 overflow
[ 367.154380] qcom-camss a34000.camss: VFE0 pix0 overflow
[ 367.187715] qcom-camss a34000.camss: VFE0 pix0 overflow
[ 367.221047] qcom-camss a34000.camss: VFE0 pix0 overflow
[ 367.254381] qcom-camss a34000.camss: VFE0 pix0 overflow
[ 367.287713] qcom-camss a34000.camss: VFE0 pix0 overflow
[ 367.321048] qcom-camss a34000.camss: VFE0 pix0 overflow
[ 367.354380] qcom-camss a34000.camss: VFE0 pix0 overflow
[ 370.508726] qcom-camss a34000.camss: VFE sof timeout
[ 371.020622] qcom-camss a34000.camss: VFE reg update timeout
[ 372.021732] qcom-camss a34000.camss: vfe_camif_wait_for_stop: camif stop timeout
Below command’s I am trying for Snapshot:
sudo media-ctl -v -d /dev/media0 -l ‘“msm_csiphy0”:1->“msm_csid0”:0[1],“msm_csid0”:1->“msm_ispif0”:0[1],“msm_ispif0”:1->“msm_vfe0_pix”:0[1]’
sudo media-ctl -v -d /dev/media0 -V ‘“ov5640 4-003b”:0[fmt:UYVY8_2X8/1920x1080 field:none],“msm_csiphy0”:0[fmt:UYVY8_2X8/1920x1080 field:none],“msm_csid0”:0[fmt:UYVY8_2X8/1920x1080 field:none],“msm_ispif0”:0[fmt:UYVY8_2X8/1920x1080 field:none],“msm_vfe0_pix”:0[fmt:UYVY8_2X8/1920x1080 field:none],“msm_vfe0_pix”:1[fmt:UYVY8_1_5X8/1920x1080 field:none]’
gst-launch-1.0 v4l2src device=/dev/video5 num-buffers=1 ! ‘video/x-raw,format=NV12,width=1920,height=1080,framerate=30/1’ ! jpegenc ! filesink location=image02.jpg