提交 5cdd19bb 编写于 作者: K Krzysztof Hałasa 提交者: Mauro Carvalho Chehab

media: TDA1997x: report -ENOLINK after disconnecting HDMI source

The TD1997x chip retains vper, hper and hsper register values when the
HDMI source is disconnected. Use a different means of checking if the
link is still valid.
Signed-off-by: NKrzysztof Hałasa <khalasa@piap.pl>
Signed-off-by: NHans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: NMauro Carvalho Chehab <mchehab+huawei@kernel.org>
上级 7dee1030
...@@ -1107,7 +1107,8 @@ tda1997x_detect_std(struct tda1997x_state *state, ...@@ -1107,7 +1107,8 @@ tda1997x_detect_std(struct tda1997x_state *state,
hper = io_read16(sd, REG_H_PER) & MASK_HPER; hper = io_read16(sd, REG_H_PER) & MASK_HPER;
hsper = io_read16(sd, REG_HS_WIDTH) & MASK_HSWIDTH; hsper = io_read16(sd, REG_HS_WIDTH) & MASK_HSWIDTH;
v4l2_dbg(1, debug, sd, "Signal Timings: %u/%u/%u\n", vper, hper, hsper); v4l2_dbg(1, debug, sd, "Signal Timings: %u/%u/%u\n", vper, hper, hsper);
if (!vper || !hper || !hsper)
if (!state->input_detect[0] && !state->input_detect[1])
return -ENOLINK; return -ENOLINK;
for (i = 0; v4l2_dv_timings_presets[i].bt.width; i++) { for (i = 0; v4l2_dv_timings_presets[i].bt.width; i++) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册