aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Bugge <marbugge@cisco.com>2013-12-05 09:46:21 -0500
committerMauro Carvalho Chehab <m.chehab@samsung.com>2014-01-07 03:29:54 -0500
commitb38a1c4cf27ca8303b7c15f8df8247c081ba2723 (patch)
tree024e82e49605e9291cb54347a585fb4da8a52271
parent69e9ba6f31e6ff93eecdbf6fbeff8e5320fd2155 (diff)
[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: Martin Bugge <marbugge@cisco.com> Cc: Mats Randgaard <matrandg@cisco.com> Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
-rw-r--r--drivers/media/i2c/adv7842.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/drivers/media/i2c/adv7842.c b/drivers/media/i2c/adv7842.c
index 23f3c1f5f010..8d0edd47b65d 100644
--- a/drivers/media/i2c/adv7842.c
+++ b/drivers/media/i2c/adv7842.c
@@ -716,15 +716,15 @@ static int edid_write_hdmi_segment(struct v4l2_subdev *sd, u8 port)
716 } 716 }
717 rep_write(sd, 0x76, spa_loc); 717 rep_write(sd, 0x76, spa_loc);
718 } else { 718 } else {
719 /* default register values for SPA */ 719 /* Edid values for SPA location */
720 if (port == 0) { 720 if (port == 0) {
721 /* port A SPA */ 721 /* port A */
722 rep_write(sd, 0x72, 0); 722 rep_write(sd, 0x72, val[0xc0]);
723 rep_write(sd, 0x73, 0); 723 rep_write(sd, 0x73, val[0xc1]);
724 } else { 724 } else {
725 /* port B SPA */ 725 /* port B */
726 rep_write(sd, 0x74, 0); 726 rep_write(sd, 0x74, val[0xc0]);
727 rep_write(sd, 0x75, 0); 727 rep_write(sd, 0x75, val[0xc1]);
728 } 728 }
729 rep_write(sd, 0x76, 0xc0); 729 rep_write(sd, 0x76, 0xc0);
730 } 730 }