V4L/DVB (3522): Fixed a trouble with other PAL standards
authorMauro Carvalho Chehab <mchehab@infradead.org>
Thu, 16 Mar 2006 21:44:07 +0000 (18:44 -0300)
committerLinus Torvalds <torvalds@g5.osdl.org>
Tue, 21 Mar 2006 16:53:44 +0000 (08:53 -0800)
V4L2_STD_PAL define is not correct. It specifies only 50Hz PAL standards.
This patch fixes saa7113 color config for other PAL video standards.

Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
drivers/media/video/saa7115.c

index 498d9aaec1e5ce688da697a97484b47eb4d11a33..b184fd00b4e779270f41f0625fe331fa68b5466d 100644 (file)
@@ -725,18 +725,14 @@ static void saa7115_set_v4lstd(struct i2c_client *client, v4l2_std_id std)
        if (state->ident == V4L2_IDENT_SAA7113) {
                u8 reg =  saa7115_read(client, 0x0e) & 0x8f;
 
-               if (std & V4L2_STD_PAL) {
-                       if (std == V4L2_STD_PAL_M) {
-                               reg|=0x30;
-                       } else if (std == V4L2_STD_PAL_N) {
-                               reg|=0x20;
-                       } else if (std == V4L2_STD_PAL_60) {
-                               reg|=0x10;
-                       }
-               } else if (std & V4L2_STD_NTSC) {
-                       if (std == V4L2_STD_NTSC_M_JP) {
-                               reg|=0x40;
-                       }
+               if (std == V4L2_STD_PAL_M) {
+                       reg|=0x30;
+               } else if (std == V4L2_STD_PAL_N) {
+                       reg|=0x20;
+               } else if (std == V4L2_STD_PAL_60) {
+                       reg|=0x10;
+               } else if (std == V4L2_STD_NTSC_M_JP) {
+                       reg|=0x40;
                }
                saa7115_write(client, 0x0e, reg);
        }