HiI see, so userspace will notice when the camera is disabled. Since the camera disappears from
thanks for your help.
> Is there a way to determine the current state of the camera switch
without having
> to wait for an WMI event?
There is no other way to detemine the current state of the camera
switch without
a WMI event.
> If its not possible to determine the current state of the camera
switch, then your
> driver has to defer the initialization of the input device until it
knows the current
> state of the camera switch. Otherwise the initial switch state
reported by the
> input device might be wrong.
> In this case, that means your driver must initialize the input
device when receiving
> a valid WMI event for the first time.
> Basically when your driver receives a WMI event, it has to check if
the input device
> is already initialized. If this is not the case, then the input
device is initialized.
> Please protect this check and the input device initialization with a
mutex, since WMI
> event handling is multithreaded.
This Camera is a UVC device, and the Carema device is already
initialized before the WMI
event . Whether the camera switch is on or off, we can used lsusb to
check the Camera.
This wmi-camera driver only need to report the current state of the
camera switch.
Thanks.
Ai Chao