UYVY : ov5640


#1

hi,

i am trying ov5640 camera in linux, to support UYVY , any changes required in the v4l2

tried changing the
->fmt.code = MEDIA_BUS_FMT_UYVY8_2X8;
to
->fmt.code = MEDIA_BUS_FMT_YUYV8_2X8;

after boot

#sudo media-ctl -d /dev/media1 -p
entity 8: ov5640 3-0078 (1 pad, 1 link)
type V4L2 subdev subtype Unknown flags 0
device node name /dev/v4l-subdev6
pad0: Source
[fmt:YUYV2X8/1920x1080 field:none
crop:(0,0)/0x0]
-> “msm_csiphy0”:0 [ENABLED,IMMUTABLE]

#sudo media-ctl -d /dev/media1 -l ‘“msm_csiphy0”:1->“msm_csid0”:0[1],“msm_csid0”:1->“msm_ispif”:0[1]’
#sudo media-ctl -d /dev/media1 -V ‘“ov5640 3-0078”:0[fmt:YUYV2X8/1920x1080],“msm_csiphy0”:0[fmt:YUYV2X8/1920x1080],“msm_csid0”:0[fmt:YUYV2X8/1920x1080]’

#gst-launch-1.0 v4l2src device=/dev/video0 num-buffers=1 ! ‘video/x-raw,format=YUYV,width=1920,height=1080,framerate=30/1’ ! jpegenc ! filesink location=/home/linaro/image02.jpg

after this it hangs, do we need to change anything in v4l userspace. Any suggestions?

regards,
vinaysimha