video: black_threshold valid when vscale_skip=8 && hscale_skip=1 [1/1]

PD#TV-6827

Problem:
when input source is 4k and output axis's height <228, screen blank

Solution:
1. need set echo 20 250 > /sys/class/video/black_threshold,
when video scaler can't process, disable video
2. black_threshold valid when vscale_skip_count=8 && hscale_skip_count=1

Verify:
t972

Change-Id: I4459c9989adf4c8acb6061756393384cee6f438f
Signed-off-by: Pengcheng Chen <pengcheng.chen@amlogic.com>
This commit is contained in:
Pengcheng Chen
2019-06-19 17:47:20 +08:00
committed by Tao Zeng
parent bb43d62012
commit 6eebad0acf

View File

@@ -6375,8 +6375,12 @@ static bool black_threshold_check(u8 id)
return ret;
if ((layer->layer_width <= black_threshold_width)
|| (layer->layer_height <= black_threshold_height))
ret = true;
|| (layer->layer_height <= black_threshold_height)) {
if (cur_frame_par &&
(cur_frame_par->vscale_skip_count == 8) &&
(cur_frame_par->hscale_skip_count == 1))
ret = true;
}
return ret;
}