media: cx25840: describe standard for 0b1100 value in AFD_FMT_STAT bits
authorMaciej S. Szmigiero <mail@maciej.szmigiero.name>
Tue, 10 Oct 2017 21:34:58 +0000 (17:34 -0400)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Mon, 11 Dec 2017 18:04:32 +0000 (13:04 -0500)
A 0b1100 value in 4 LSBs of "General Status 1" register (AFD_FMT_STAT) has
known meaning for CX2584x-series chips - it means that a SECAM signal is
currently detected by the chip.

Use this opportunity to also fix wrong binary values that were present
as comments attached to some entries in an array where
chip register -> V4L2 standard mappings are stored.

Signed-off-by: Maciej S. Szmigiero <mail@maciej.szmigiero.name>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/i2c/cx25840/cx25840-core.c

index f38bf819d80549b5c43ad3ed1883c0c36cfe26be..ec0e91369853eb40a5d93f89dc06b31b9c8fd0b8 100644 (file)
@@ -1757,11 +1757,11 @@ static int cx25840_g_std(struct v4l2_subdev *sd, v4l2_std_id *std)
                /* 0111 */ V4L2_STD_PAL_Nc,
                /* 1000 */ V4L2_STD_PAL_60,
 
-               /* 1001 */ V4L2_STD_UNKNOWN,
-               /* 1010 */ V4L2_STD_UNKNOWN,
                /* 1001 */ V4L2_STD_UNKNOWN,
                /* 1010 */ V4L2_STD_UNKNOWN,
                /* 1011 */ V4L2_STD_UNKNOWN,
+               /* 1100 */ V4L2_STD_SECAM,
+               /* 1101 */ V4L2_STD_UNKNOWN,
                /* 1110 */ V4L2_STD_UNKNOWN,
                /* 1111 */ V4L2_STD_UNKNOWN
        };