diff options
author | Jean-François Moine <moinejf@free.fr> | 2010-11-11 10:20:42 +0100 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2010-12-29 11:16:40 +0100 |
commit | d65174c06f2bf4ff73d1c71960be317b89561c06 (patch) | |
tree | 1af417af6221dfaaca05fad7ae59cf55bc8e3583 /drivers/media/video/gspca/w996Xcf.c | |
parent | [media] gspca - ov519: Handle the snapshot on capture stop when CONFIG_INPUT=m (diff) | |
download | linux-d65174c06f2bf4ff73d1c71960be317b89561c06.tar.xz linux-d65174c06f2bf4ff73d1c71960be317b89561c06.zip |
[media] gspca - ov519: Don't do USB exchanges after disconnection
Signed-off-by: Jean-François Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video/gspca/w996Xcf.c')
-rw-r--r-- | drivers/media/video/gspca/w996Xcf.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/media/video/gspca/w996Xcf.c b/drivers/media/video/gspca/w996Xcf.c index 4066ac8c45a0..b5a93e379570 100644 --- a/drivers/media/video/gspca/w996Xcf.c +++ b/drivers/media/video/gspca/w996Xcf.c @@ -549,10 +549,8 @@ static int w9968cf_mode_init_regs(struct sd *sd) static void w9968cf_stop0(struct sd *sd) { - if (sd->gspca_dev.present) { - reg_w(sd, 0x39, 0x0000); /* disable JPEG encoder */ - reg_w(sd, 0x16, 0x0000); /* stop video capture */ - } + reg_w(sd, 0x39, 0x0000); /* disable JPEG encoder */ + reg_w(sd, 0x16, 0x0000); /* stop video capture */ } /* The w9968cf docs say that a 0 sized packet means EOF (and also SOF |