For debugging purposes, I am interested in modifying the VI_CH_LINE_TIMER_0 register specified in the TX2 TRM. Actually, I want to count the number of lines per frame, so I’ve seen in this post that it is possible by modifying the aforementioned register, so I will receive events every X specified line numbers. How can I do it?
Have a check the …/kernel/nvidia/drivers/media/platform/tegra/camera/vi/vi4_fops.c
But how are the TRIPLINE, PERIODIC and ENABLE values modified? I cannot see them in the file
javascript:void();
So I guess than could be done in the same driver right? So in the camera_open() function for example, I can modify those values and therefore get more messages in the trace.
Yes, it can be done in the same driver. And should be get the log from the trace.