ov3640_write_reg:write reg error:reg=3012,val=80 VIDIOC_S_FMT error 22, Invalid argument

cancel
Showing results for 
Search instead for 
Did you mean: 

ov3640_write_reg:write reg error:reg=3012,val=80 VIDIOC_S_FMT error 22, Invalid argument

866 Views
anasdeshmukh
Contributor I

Hello everyone,

i am using arm imx6s - quad core with freescale controller.

cant able to capture image using HDF-3640.

getting following err : ov3640_write_reg:write reg error:reg=3012,val=80 VIDIOC_S_FMT error 22, Invalid argument

Labels (2)
0 Kudos
3 Replies

171 Views
igorpadykov
NXP TechSupport
NXP TechSupport

Hi anas

please look at below discussion and ov3640 patch

https://community.freescale.com/thread/308487

https://git.congatec.com/arm/qmx6_kernel/commit/30d567d66580ee25f8fb9757d5e79f13065022d3

Best regards

igor

-----------------------------------------------------------------------------------------------------------------------

Note: If this post answers your question, please click the Correct Answer button. Thank you!

-----------------------------------------------------------------------------------------------------------------------

0 Kudos

171 Views
anasdeshmukh
Contributor I

hi igorpadykov

thanks for u repl. but the problem didnt solve yet .

as per mention on this link

https://git.congatec.com/arm/qmx6_kernel/commit/30d567d66580ee25f8fb9757d5e79f13065022d3

m unable to use patch file properly,, i dont know ,, but m surely doin somthing wrong at the time of patching,, m glad if ur guide me to patch these files.

along with refering this https://community.freescale.com/thread/336125

hope this info help u to get my situation.

root@freescale ~$ dmesg | grep V4L2

mxc_v4l2_output mxc_v4l2_output.0: V4L2 device registered as video16

mxc_v4l2_output mxc_v4l2_output.0: V4L2 device registered as video17

mxc_v4l2_output mxc_v4l2_output.0: V4L2 device registered as video18

mxc_v4l2_output mxc_v4l2_output.0: V4L2 device registered as video19

root@freescale ~$

root@freescale ~$  dmesg | grep MIPI

mxc_mipi_csi2 mxc_mipi_csi2: i.MX MIPI CSI2 driver probed

mxc_mipi_csi2 mxc_mipi_csi2: i.MX MIPI CSI2 dphy version is 0x3130302a

MIPI CSI2 driver module loaded

mxc_mipi_dsi mxc_mipi_dsi: i.MX MIPI DSI driver probed

MIPI DSI driver module loaded

root@freescale ~$

root@freescale ~$  dmesg | grep ov36

ov3640 probe start!ov3640 probe end!ov3640 init!

root@freescale ~$

root@freescale ~$ dmesg | grep i2c

i2c-core: driver [max17135] using legacy suspend method

i2c-core: driver [max17135] using legacy resume method

input: gslX680 as /devices/platform/imx-i2c.0/i2c-0/0-0040/input/input1

i2c-core: driver [gslX680] using legacy suspend method

i2c-core: driver [gslX680] using legacy resume method

i2c-core: driver [isl29023] using legacy suspend method

i2c-core: driver [isl29023] using legacy resume method

i2c /dev entries driver

i2c-core: driver [mag3110] using legacy suspend method

i2c-core: driver [mag3110] using legacy resume method

root@freescale ~$

root@freescale ~$ cat /sys/module/ov3640_camera/version

1.0

root@freescale ~$

root@freescale /unit_tests$ ./mxc_v4l2_capture.out

in_width = 176, in_height = 144

out_width = 176, out_height = 144

top = 0, left = 0

ov3640_write_reg:write reg error:reg=3012,val=80

sensor chip is ov3640_cameraov3640_write_reg:write reg error:reg=3012,val=80

sensor supported frame size:

mxc_v4l2_s_param: vidioc_int_s_parm returned an error -1

640x480

320x240

720x480

720x576

1280x720

1920x1080

1024x768

2048x1536

sensor frame format: UYVY

sensor frame format: UYVY

sensor frame format: UYVY

sensor frame format: UYVY

sensor frame format: UYVY

sensor frame format: UYVY

sensor frame format: UYVY

sensor frame format: UYVY

VIDIOC_S_PARM failed

Unable to create y frame recording file

root@freescale /unit_tests$

0 Kudos

171 Views
igorpadykov
NXP TechSupport
NXP TechSupport

I think these patches are for OV3640 parallel (DVP)

interface

~igor

0 Kudos