[media] tvp5150: Add tvp5151 support
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Thu, 7 Jan 2016 12:46:42 +0000 (10:46 -0200)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Mon, 25 Jan 2016 12:39:44 +0000 (10:39 -0200)
Expand the version detection code to identity the tvp5151.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Javier Martinez Canillas <javier@osg.samsung.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/i2c/tvp5150.c

index f80928156ad7e6822e853c13eee507c1bf13b54e..2816ceb4874aca890fa0d26166618a3f4a126dfc 100644 (file)
@@ -1139,6 +1139,8 @@ static int tvp5150_detect_version(struct tvp5150 *core)
 
                /* ITU-T BT.656.4 timing */
                tvp5150_write(sd, TVP5150_REV_SELECT, 0);
+       } else if (dev_id == 0x5151 && rom_ver == 0x0100) { /* TVP5151 */
+               v4l2_info(sd, "tvp5151 detected.\n");
        } else {
                v4l2_info(sd, "*** unknown tvp%04x chip detected.\n", dev_id);
        }