Commit b38a1c4c authored by Martin Bugge's avatar Martin Bugge Committed by Mauro Carvalho Chehab

[media] adv7842: set defaults spa-location

For edid with no Source Physical Address (spa), set
spa-location to default and use correct values from edid.
Signed-off-by: default avatarMartin Bugge <marbugge@cisco.com>
Cc: Mats Randgaard <matrandg@cisco.com>
Signed-off-by: default avatarHans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: default avatarMauro Carvalho Chehab <m.chehab@samsung.com>
parent 69e9ba6f
...@@ -716,15 +716,15 @@ static int edid_write_hdmi_segment(struct v4l2_subdev *sd, u8 port) ...@@ -716,15 +716,15 @@ static int edid_write_hdmi_segment(struct v4l2_subdev *sd, u8 port)
} }
rep_write(sd, 0x76, spa_loc); rep_write(sd, 0x76, spa_loc);
} else { } else {
/* default register values for SPA */ /* Edid values for SPA location */
if (port == 0) { if (port == 0) {
/* port A SPA */ /* port A */
rep_write(sd, 0x72, 0); rep_write(sd, 0x72, val[0xc0]);
rep_write(sd, 0x73, 0); rep_write(sd, 0x73, val[0xc1]);
} else { } else {
/* port B SPA */ /* port B */
rep_write(sd, 0x74, 0); rep_write(sd, 0x74, val[0xc0]);
rep_write(sd, 0x75, 0); rep_write(sd, 0x75, val[0xc1]);
} }
rep_write(sd, 0x76, 0xc0); rep_write(sd, 0x76, 0xc0);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment