dect
/
linux-2.6
Archived
13
0
Fork 0

[media] gspca - ov519: Handle the snapshot on capture stop when CONFIG_INPUT=m

Signed-off-by: Jean-François Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
This commit is contained in:
Jean-François Moine 2010-11-11 06:17:01 -03:00 committed by Mauro Carvalho Chehab
parent c0b33bdc5b
commit 14653e64e9
1 changed files with 1 additions and 1 deletions

View File

@ -3940,7 +3940,7 @@ static void sd_stop0(struct gspca_dev *gspca_dev)
if (sd->bridge == BRIDGE_W9968CF)
w9968cf_stop0(sd);
#ifdef CONFIG_INPUT
#if defined(CONFIG_INPUT) || defined(CONFIG_INPUT_MODULE)
/* If the last button state is pressed, release it now! */
if (sd->snapshot_pressed) {
input_report_key(gspca_dev->input_dev, KEY_CAMERA, 0);