We are trying to get raw frames from a camera using v4l2 but it looks like it is only writing into 1 v4l2 buffer (buffer.index = 0). Other buffers have null/black images. There is also an image tear in the captured frames. Only the first frame is consistently complete. The others that are not null usually has the bottom part of the frame coming from a previous time stamp (buffer.frame has lines that exactly the same as buffer.frame).
argus_camera and nvgstcapture are displaying good video streams. However, we cannot use these because we need to process raw frames from the camera.
qv4l2 (v4l2 test bench GUI) seems to be showing the same problem because the output video stream has alternating black and good frames.
Output from image sensor is parallel then goes through serializer to CSI input of TX1. We are not quite sure whether it is an issue with serializer HW or the driver.
Can anyone suggest any other things to check or possible solutions to this issue?