Skip to content

Commit

Permalink
[media] drivers/media/video/stk-webcam.c: webcam LED bug fix
Browse files Browse the repository at this point in the history
The probem was on my DC-1125 webcam chip from Syntek. Whenever the webcam turns
on, the LED light on it is turn on also and never turns off again unless system
is shut downed or restarted.

This patch will fix this issue - the LED will be turned off whenever the device
is released.

Signed-off-by: Arvydas Sidorenko <asido4@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
  • Loading branch information
Arvydas Sidorenko authored and Mauro Carvalho Chehab committed Sep 18, 2011
1 parent e27412f commit 47a7e6f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/media/video/stk-webcam.c
Original file line number Diff line number Diff line change
Expand Up @@ -574,6 +574,8 @@ static int v4l_stk_release(struct file *fp)
if (dev->owner == fp) {
stk_stop_stream(dev);
stk_free_buffers(dev);
stk_camera_write_reg(dev, 0x0, 0x48); /* turn off the LED */
unset_initialised(dev);
dev->owner = NULL;
}

Expand Down

0 comments on commit 47a7e6f

Please sign in to comment.