Skip to contentSkip to conversation

em28xx: Fix em2828x PAL TV colours

PATCH New Bradford Love 1 participant 2 messages Aug 25

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

cover em28xx: Fix em2828x PAL TV colours

I missed a register in the setup for analog TV on PAL, causing red and blue chroma channels to be swapped.

Bradford Love (1):
em28xx: Fix PAL analog TV colours

 drivers/media/usb/em28xx/em28xx-video.c | 1 +
 1 file changed, 1 insertion(+)
Signature · 1 line
2.35.1
#1 lore raw

PATCH 1/1 em28xx: Fix PAL analog TV colours

Red/Blue chroma are swapped on PAL analog TV due to register 0x7A07 missing in the configuration block for PAL. Copying in the setting for composite fixes the issue and everything decodes properly.

---
 drivers/media/usb/em28xx/em28xx-video.c | 1 +
 1 file changed, 1 insertion(+)
drivers/media/usb/em28xx/em28xx-video.c +1 -0
index c418add65bb5..864bab86ef69 100644
@@ -431,6 +431,7 @@ static void em2828X_decoder_set_std(struct em28xx *dev, v4l2_std_id norm)
 		} else if (INPUT(dev->ctl_input)->vmux == EM2828X_TELEVISION) {
 			em28xx_write_reg(dev, 0x7A00, 0x32);
 			em28xx_write_reg(dev, 0x7A03, 0x09);
+			em28xx_write_reg(dev, 0x7A07, 0x2f);
 			em28xx_write_reg(dev, 0x7A30, 0x2a);
 			em28xx_write_reg(dev, 0x7A80, 0x03);
 			em28xx_write_reg(dev, 0x7A20, 0x35);
Signature · 1 line
2.35.1