Skip to contentSkip to conversation

saa7111.c: fix VIDEO_MODE_SECAM

PATCH New Russell King 1 participant 1 message Oct 30, 2004 Media (V4L/DVB)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 saa7111.c: fix VIDEO_MODE_SECAM

(untested since I do not have any SECAM tv sources.)

VIDEO_MODE_SECAM was incorrectly writing the contents of cached register 14 back to hardware register 8, rather than using cached register 8.

drivers/media/video/saa7111.c +1 -1
diff -up -x BitKeeper -x ChangeSet -x SCCS -x _xlk -x *.orig -x *.rej orig/drivers/media/video/saa7111.c linux/drivers/media/video/saa7111.c
@@ -342,7 +342,7 @@ saa7111_command (struct i2c_client *clie
 
 		case VIDEO_MODE_SECAM:
 			saa7111_write(client, 0x08,
-				      (decoder->reg[0x0e] & 0x3f) | 0x00);
+				      (decoder->reg[0x08] & 0x3f) | 0x00);
 			saa7111_write(client, 0x0e,
 				      (decoder->reg[0x0e] & 0x8f) | 0x50);
 			break;
Signature · 4 lines
Russell King
 Linux kernel    2.6 ARM Linux   - http://www.arm.linux.org.uk/
 maintainer of:  2.6 PCMCIA      - http://pcmcia.arm.linux.org.uk/
                 2.6 Serial core