summaryrefslogtreecommitdiff
path: root/linux/drivers
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@redhat.com>2009-08-10 10:53:00 -0300
committerMauro Carvalho Chehab <mchehab@redhat.com>2009-08-10 10:53:00 -0300
commita4fd422232350c268306a54f169e5b1fe3655f8f (patch)
tree0568850f26573c4a7848a081ef774d8cb9a0ccd8 /linux/drivers
parent3c6dcb306a9773419a04a1f47bfa00ed856b5517 (diff)
downloadmediapointer-dvb-s2-a4fd422232350c268306a54f169e5b1fe3655f8f.tar.gz
mediapointer-dvb-s2-a4fd422232350c268306a54f169e5b1fe3655f8f.tar.bz2
em28xx: fix: avoid having a bad colored image with webcams
From: Mauro Carvalho Chehab <mchehab@redhat.com> Register 0x13 seems to be a sort of image control, maybe gamma. Lower values produce better images, while higher values increases the contrast and shifts colors to green. 0xff produces a black image. If this register is left alone, a random value can be found at the register, producing weird results. This register doesn't seem to affect tv streams. Priority: normal Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'linux/drivers')
-rw-r--r--linux/drivers/media/video/em28xx/em28xx-core.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/linux/drivers/media/video/em28xx/em28xx-core.c b/linux/drivers/media/video/em28xx/em28xx-core.c
index 10da3ad82..46cb13182 100644
--- a/linux/drivers/media/video/em28xx/em28xx-core.c
+++ b/linux/drivers/media/video/em28xx/em28xx-core.c
@@ -632,6 +632,9 @@ int em28xx_capture_start(struct em28xx *dev, int start)
return rc;
}
+ if (dev->board.is_webcam)
+ rc = em28xx_write_reg(dev, 0x13, 0x0c);
+
/* enable video capture */
rc = em28xx_write_reg(dev, 0x48, 0x00);