Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 226193
b: refs/heads/master
c: 614d069
h: refs/heads/master
i:
  226191: d85be88
v: v3
  • Loading branch information
Hans de Goede authored and Mauro Carvalho Chehab committed Dec 29, 2010
1 parent 2f059e0 commit 09d7326
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: e0657be5615f666f261206ed62c3f0dc2527956e
refs/heads/master: 614d06917de2823d598a4b231256d08074044235
10 changes: 9 additions & 1 deletion trunk/drivers/media/video/gspca/ov519.c
Original file line number Diff line number Diff line change
Expand Up @@ -3912,7 +3912,6 @@ static int sd_start(struct gspca_dev *gspca_dev)
pressed while we weren't streaming */
sd->snapshot_needs_reset = 1;
sd_reset_snapshot(gspca_dev);
sd->snapshot_pressed = 0;

sd->first_frame = 3;

Expand Down Expand Up @@ -3940,6 +3939,15 @@ static void sd_stop0(struct gspca_dev *gspca_dev)

if (sd->bridge == BRIDGE_W9968CF)
w9968cf_stop0(sd);

#ifdef CONFIG_INPUT
/* If the last button state is pressed, release it now! */
if (sd->snapshot_pressed) {
input_report_key(gspca_dev->input_dev, KEY_CAMERA, 0);
input_sync(gspca_dev->input_dev);
sd->snapshot_pressed = 0;
}
#endif
}

static void ov51x_handle_button(struct gspca_dev *gspca_dev, u8 state)
Expand Down

0 comments on commit 09d7326

Please sign in to comment.