genlock: backport from CAF @dc6023bfefe994703

Signed-off-by: garwedgess <garethwilliams21@gmail.com>