From: Martin Bugge Date: Thu, 5 Dec 2013 14:46:21 +0000 (-0300) Subject: upstream: [media] adv7842: set defaults spa-location X-Git-Tag: submit/tizen/20141121.110247~1190 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=bbca433151ee304adcd26b8808ee628efaa77c3e;p=platform%2Fkernel%2Flinux-3.10.git upstream: [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 Cc: Mats Randgaard Signed-off-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/media/i2c/adv7842.c b/drivers/media/i2c/adv7842.c index 0ec2f89..d6e54fd 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) } rep_write(sd, 0x76, spa_loc); } else { - /* default register values for SPA */ + /* Edid values for SPA location */ if (port == 0) { - /* port A SPA */ - rep_write(sd, 0x72, 0); - rep_write(sd, 0x73, 0); + /* port A */ + rep_write(sd, 0x72, val[0xc0]); + rep_write(sd, 0x73, val[0xc1]); } else { - /* port B SPA */ - rep_write(sd, 0x74, 0); - rep_write(sd, 0x75, 0); + /* port B */ + rep_write(sd, 0x74, val[0xc0]); + rep_write(sd, 0x75, val[0xc1]); } rep_write(sd, 0x76, 0xc0); }