OSDN Git Service

Camera: Fix camera problem when reboot
authorjuntingwang <Junting.Wang@windriver.com>
Mon, 7 Jan 2013 10:22:57 +0000 (18:22 +0800)
committerChih-Wei Huang <cwhuang@linux.org.tw>
Sat, 13 Dec 2014 17:06:43 +0000 (01:06 +0800)
commit14a59b29cf63bf9b0540c59bfce1d590a5f61335
treefa132812b9375eb16349806d5f57e400248c79b5
parent2b853d45c72bee80252f1cfe77694f09e58045fc
Camera: Fix camera problem when reboot

Fix problem camera led remains active after reboot

The camera is an USB camera. When system reboot the usb
bus is not powered off, so camera remains active. Camera
led will be closed untill the system init and reset devices.

To resolve this bug, we need to register a reboot notifier
in camera driver, so that camera can receive "restart" notifier
when system reboot, it will call notifier callback function
to close the camera led.

Issue: AXIA-1417
Change-Id: Ia6cc19d645419f7dfea9e3fa4ebb67b583eaddda
Signed-off-by: juntingwang <Junting.Wang@windriver.com>
drivers/media/usb/uvc/uvc_driver.c
drivers/media/usb/uvc/uvc_video.c
drivers/media/usb/uvc/uvcvideo.h