提交 c67be3cc 编写于 作者: A Andy Walls 提交者: Mauro Carvalho Chehab

V4L/DVB: gspca_cpia1: Restore QX3 illuminators' state on resume

Turn the lights of the QX3 on (or off) as needed when resuming and at module load.
Signed-off-by: NAndy Walls <awalls@md.metrocast.net>
Signed-off-by: NJean-François Moine <moinejf@free.fr>
Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com>
上级 51513353
......@@ -1756,6 +1756,10 @@ static int sd_init(struct gspca_dev *gspca_dev)
if (ret)
return ret;
/* Ensure the QX3 illuminators' states are restored upon resume */
if (sd->params.qx3.qx3_detected)
command_setlights(gspca_dev);
sd_stopN(gspca_dev);
PDEBUG(D_PROBE, "CPIA Version: %d.%02d (%d.%d)",
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册