]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commitdiff
media: TDA1997x: enable EDID support
authorKrzysztof Hałasa <khalasa@piap.pl>
Wed, 16 Jun 2021 05:13:55 +0000 (07:13 +0200)
committerStefan Bader <stefan.bader@canonical.com>
Fri, 15 Oct 2021 09:26:38 +0000 (11:26 +0200)
BugLink: https://bugs.launchpad.net/bugs/1946788
[ Upstream commit ea3e1c36e38810427485f06c2becc1f29e54521d ]

Without this patch, the TDA19971 chip's EDID is inactive.
EDID never worked with this driver, it was all tested with HDMI signal
sources which don't need EDID support.

Signed-off-by: Krzysztof Halasa <khalasa@piap.pl>
Fixes: 9ac0038db9a7 ("media: i2c: Add TDA1997x HDMI receiver driver")
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Kelsey Skunberg <kelsey.skunberg@canonical.com>
drivers/media/i2c/tda1997x.c

index 89bb7e6dc7a428e571ce8fe1e432e18d3c92c409..9554c8348c0203d5df056f7bf28b26b9cef4429b 100644 (file)
@@ -2233,6 +2233,7 @@ static int tda1997x_core_init(struct v4l2_subdev *sd)
        /* get initial HDMI status */
        state->hdmi_status = io_read(sd, REG_HDMI_FLAGS);
 
+       io_write(sd, REG_EDID_ENABLE, EDID_ENABLE_A_EN | EDID_ENABLE_B_EN);
        return 0;
 }