media: TDA1997x: report -ENOLINK after disconnecting HDMI source
authorKrzysztof Hałasa <khalasa@piap.pl>
Mon, 26 Jul 2021 10:49:30 +0000 (12:49 +0200)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Wed, 4 Aug 2021 12:43:52 +0000 (14:43 +0200)
commit5cdd19bbad75f6cf1c44ac494b92a3b8d8826001
treeaff822dabf4378e4dc77254f136d0f151eb6f5f0
parent7dee1030871a48d4f3c5a74227a4b4188463479a
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: Krzysztof Hałasa <khalasa@piap.pl>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/media/i2c/tda1997x.c