Tx2 camera with no data check

Hi, all:

We are doing camera related development. We found that when the set size is different from the actual data size, the kernel will report an error and will not output image data.

We want to modify this mechanism. When the set size is different from the actual data size, the kernel outputs information and image data output to the application. After the application gets the image data,we will modify the actual data according to the needs: If the actual data is less than the set data, it will be filled with 0. If the actual data is larger than the set data, discard the redundant data.

Could you tell me how to modify the kernel code let the image data output then the data size is error.

Thanks.

I don’t think that could be easy work.
How do you know the actual sensor output size are correct?

All of the camera kernel driver are locate /kernel/nvidia/driver/platform/camera