media: rockchip: hdmirx: modify timing criteria

The hsync of some timings maybe bigger than 300.
If get hsync error, it could be very large, so we
think that is error if it's bigger than 500.

Signed-off-by: Chen Shunqing <csq@rock-chips.com>
Change-Id: I57e8b462c3a224ba402d8ab1c20fd2c4c0f77a2c
This commit is contained in:
Chen Shunqing
2022-07-29 01:58:13 +00:00
committed by Tao Huang
parent e31f1b672c
commit 37c7780120

View File

@@ -671,7 +671,7 @@ static bool hdmirx_check_timing_valid(struct v4l2_bt_timings *bt)
bt->height < 100 || bt->height > 5000)
return false;
if (bt->hsync == 0 || bt->hsync > 200 ||
if (bt->hsync == 0 || bt->hsync > 500 ||
bt->vsync == 0 || bt->vsync > 100)
return false;