aodzip / sun6i-mipi-csi

SUN6I-CSI driver with MIPI-CSI2 support for V3s / S3 / S3L
51 stars 34 forks source link

MEDIA_BUS_FMT_Y10_1X10 support #2

Closed martin-jansen closed 3 years ago

martin-jansen commented 3 years ago

I am trying to connect an OV7251 to my S3 board. The OV7251 uses MEDIA_BUS_FMT_Y10_1X10 and because there is no support in the mipi csi driver I have tried to add this. mipi_csi2_y10.zip

The communication with the camera module is working. Only the output is what I am expecting to receive. I think I have added the Y10 correct but obviously I have made an error along the way. If you have some time to look at my patch I would really appreciate it.

martin-jansen commented 3 years ago

The patch is working I made a mistake in the device tree.

alenwp commented 1 year ago

I am trying to connect an OV7251 to my S3 board. The OV7251 uses MEDIA_BUS_FMT_Y10_1X10 and because there is no support in the mipi csi driver I have tried to add this. mipi_csi2_y10.zip

The communication with the camera module is working. Only the output is what I am expecting to receive. I think I have added the Y10 correct but obviously I have made an error along the way. If you have some time to look at my patch I would really appreciate it.

hi martin, i use your patch, but i cannot get the Y10 picture(i can get yuyv picture), and got the error The pixelformat 'Y10' is invalid , the following is my cmd. do you know how to solve this problem? or how to get the right picture ? Look forward to your reply. # v4l2-ctl --set-fmt-video=width=640,height=480,pixelformat=Y10 --stream-mmap --stream-count=1 --stream-to=out.raw

martin-jansen commented 1 year ago

You will need a little bit more code to make the Y10 work. Can you try the attached patch as well. ​​

From: alenwp @.> Sent: Monday, October 17, 2022 4:51 AM To: aodzip/sun6i-mipi-csi @.> Cc: Martin Jansen @.>; State change @.> Subject: Re: [aodzip/sun6i-mipi-csi] MEDIA_BUS_FMT_Y10_1X10 support (#2)

I am trying to connect an OV7251 to my S3 board. The OV7251 uses MEDIA_BUS_FMT_Y10_1X10 and because there is no support in the mipi csi driver I have tried to add this. mipi_csi2_y10.ziphttps://github.com/aodzip/sun6i-mipi-csi/files/5439501/mipi_csi2_y10.zip

The communication with the camera module is working. Only the output is what I am expecting to receive. I think I have added the Y10 correct but obviously I have made an error along the way. If you have some time to look at my patch I would really appreciate it.

hi martin, i use your patch, but i cannot get the Y10 picture(i can get yuyv picture), and got the error The pixelformat 'Y10' is invalid , the following is my cmd. do you know how to solve this problem? or how to get the right picture ? Look forward to your reply.

v4l2-ctl --set-fmt-video=width=640,height=480,pixelformat=Y10 --stream-mmap --stream-count=1 --stream-to=out.raw The pixelformat 'Y10' is invalid

— Reply to this email directly, view it on GitHubhttps://github.com/aodzip/sun6i-mipi-csi/issues/2#issuecomment-1280204732, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ARQUMSYIPGZR47V4RTEFIZTWDS5KFANCNFSM4S7PXMEQ. You are receiving this because you modified the open/close state.Message ID: @.**@.>>

alenwp commented 1 year ago

Thanks for your reply. I try the attached patch you gived well, but i cannot get the Y10 picture(i can get yuyv picture), and got the error The pixelformat 'Y10' is invalid.

alenwp commented 1 year ago

I am trying to connect an OV7251 to my S3 board. The OV7251 uses MEDIA_BUS_FMT_Y10_1X10 and because there is no support in the mipi csi driver I have tried to add this. mipi_csi2_y10.zip The communication with the camera module is working. Only the output is what I am expecting to receive. I think I have added the Y10 correct but obviously I have made an error along the way. If you have some time to look at my patch I would really appreciate it.

hi martin, i use your patch, but i cannot get the Y10 picture(i can get yuyv picture), and got the error The pixelformat 'Y10' is invalid , the following is my cmd. do you know how to solve this problem? or how to get the right picture ? Look forward to your reply. # v4l2-ctl --set-fmt-video=width=640,height=480,pixelformat=Y10 --stream-mmap --stream-count=1 --stream-to=out.raw

i use the wrong cmd. Thank Martin for his help. the right cmd is
# v4l2-ctl --set-fmt-video=width=640,height=480,pixelformat='Y10 ' --stream-mmap --stream-count=1 --stream-to=out.raw