From: Luiz Carlos Ramos Date: Tue, 9 Aug 2011 17:36:57 +0000 (-0300) Subject: [media] gspca - sonixj: Fix wrong register mask for sensor om6802 X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=313c68e644326e88731f03371baa8b5f3d68ef11;p=openwrt%2Fstaging%2Fblogic.git [media] gspca - sonixj: Fix wrong register mask for sensor om6802 The bug was introduced by git commit 0e4d413af1a9d, giving very dark images. Signed-off-by: Luiz Carlos Ramos Signed-off-by: Jean-François Moine Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/media/video/gspca/sonixj.c b/drivers/media/video/gspca/sonixj.c index 81b8a600783b..2ad757dc2e1c 100644 --- a/drivers/media/video/gspca/sonixj.c +++ b/drivers/media/video/gspca/sonixj.c @@ -2386,7 +2386,7 @@ static int sd_start(struct gspca_dev *gspca_dev) reg_w1(gspca_dev, 0x01, 0x22); msleep(100); reg01 = SCL_SEL_OD | S_PDN_INV; - reg17 &= MCK_SIZE_MASK; + reg17 &= ~MCK_SIZE_MASK; reg17 |= 0x04; /* clock / 4 */ break; }