[media] adv7604: fix SPA register location for ADV7612
authorUlrich Hecht <ulrich.hecht+renesas@gmail.com>
Wed, 17 Feb 2016 14:57:56 +0000 (12:57 -0200)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Thu, 3 Mar 2016 10:32:20 +0000 (07:32 -0300)
SPA location LSB register is at 0x70.

Signed-off-by: Ulrich Hecht <ulrich.hecht+renesas@gmail.com>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/i2c/adv7604.c

index befb07d..41a1bfc 100644 (file)
@@ -2095,7 +2095,8 @@ static int adv76xx_set_edid(struct v4l2_subdev *sd, struct v4l2_edid *edid)
                rep_write(sd, 0x76, spa_loc & 0xff);
                rep_write_clr_set(sd, 0x77, 0x40, (spa_loc & 0x100) >> 2);
        } else {
-               /* FIXME: Where is the SPA location LSB register ? */
+               /* ADV7612 Software Manual Rev. A, p. 15 */
+               rep_write(sd, 0x70, spa_loc & 0xff);
                rep_write_clr_set(sd, 0x71, 0x01, (spa_loc & 0x100) >> 8);
        }