Hi,
So I'm trying to use ADV7180A to digitise an inherently unstable and noisy analog video. The source is CVBS, input network is as specified in the data sheet (24 and 51 Ohm resistor and 100 mF capacitor). I'm using the built-it linux driver (kernel version 6.12.25) with custom patch that is attached at the end (though I tried to change a few things over the course of experimentation). One major issue I'm constantly facing is all pixels pretty much becoming black or white sometimes. It happens precisely when the ADV7180 loses sync and the issue often goes away the same way. On the attached video you can see black-and-white content changed by a more rich picture after lock is lost and regained.
As you can see in the patch I return some information about the state of the chip and it shows that the automatic luma gain is more or less the same for the black-and white and the richer grayscale picture. So it's probably not AGC. Also was pretty important to disable peak white algorithm as it often darkened the picture significantly. So my only guess is something goes wrong with clamping? But there aren't many toggles to play with and you can't read the restored dc value so it feels like I'm stuck. Any help would be appreciated
Patch in question:
Best regards,
Dima
Edit Notes
removed video[edited by: dtt at 7:44 AM (GMT -5) on 22 Feb 2026]

