提交 51ae23df 编写于 作者: H Hans de Goede 提交者: Mauro Carvalho Chehab

[media] gspca_pac7311: Make sure exposure changes get applied immediately

It turns out that the flush to sensor command needs to be done per register
bank. We were missing one such flush in set_exposure, causing exposure changes
to only show up when another setting in the same bank also got changed.
Signed-off-by: NHans de Goede <hdegoede@redhat.com>
Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com>
上级 b053c1d0
...@@ -439,6 +439,9 @@ static void setexposure(struct gspca_dev *gspca_dev) ...@@ -439,6 +439,9 @@ static void setexposure(struct gspca_dev *gspca_dev)
reg_w(gspca_dev, 0xff, 0x04); /* page 4 */ reg_w(gspca_dev, 0xff, 0x04); /* page 4 */
reg_w(gspca_dev, 0x02, reg); reg_w(gspca_dev, 0x02, reg);
/* load registers to sensor (Bit 0, auto clear) */
reg_w(gspca_dev, 0x11, 0x01);
/* Page 1 register 8 must always be 0x08 except when not in /* Page 1 register 8 must always be 0x08 except when not in
640x480 mode and page 4 reg 2 <= 3 then it must be 9 */ 640x480 mode and page 4 reg 2 <= 3 then it must be 9 */
reg_w(gspca_dev, 0xff, 0x01); reg_w(gspca_dev, 0xff, 0x01);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册