-
Notifications
You must be signed in to change notification settings - Fork 5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
IRS1125 camera kernel driver outputs unvalid data since 5.4.51 #3793
Comments
IRS1125 was contributed by @Coimbra1984. I don't even have hardware to test with. 5.4.51 was the first "stable" release of our 5.4 branch. Until there that point the branch was being rebased, so we don't have the history to diff between 5.4.49 and 5.4.51. I'm not aware of any significant changes. Do you receive any data? What configuration mode is the Unicam peripheral in? I'm assuming it's not having to unpack or pack the data seeing as it isn't straight image data. Can you describe how the data is wrong? |
Hi @6by9,
into
|
So it sounds like commit e047cfe#diff-5a62c2c8d1e6f6475c3825cc14977cca is causing you the grief. Both formats will be advertised, and it is up to the application/user to choose between the two. The default is the packed format. eg on imx477
So you can choose between 10 and 12 bit modes (different resolutions are offered by each), and whether they are packed or unpacked. Use
where fd is the file handle to your open V4L2 node. I've just checked IMX477 with both packed and unpacked modes. Whilst my unpacked image is dark as I haven't got the ISP dealing with the shift correctly, the images are fine. |
Cool, we were missing this line in our userspace application:
I added it and now it works. |
Glad to hear that. Making assumptions over the format is always a bit risky, so best to be explicit over these things. |
Could you close the issue if you're happy that it's resolved? |
@bjajoh will test also on his hardware and than resolves the issue. |
I'll close that issue once I validated that everything is working fine in the next few days. :) Thanks for your help! |
Everthing is working as before, thanks for your help! |
Hi,
In Kernel 5.4.49 the IRS1125 imager was merged and working. 5.4.49 and 5.4.50 worked just fine as expected.
However without changes to the code since then, it is not working anymore since 5.4.51 More specifically the received data in wrong.
Do you know what happend there?
The text was updated successfully, but these errors were encountered: