V4L2: Get device/input status

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I have plugged in usb digital camera (it has one input pin - 0).

I check input status every 5 seconds via structure: v4l2_input (here
is the example: http://pastebin.com/X9Z23DbZ), to process situation if
one of the flags is set (V4L2_IN_ST_NO_POWER or V4L2_IN_ST_NO_SIGNAL
or V4L2_IN_ST_NO_H_LOCK).

The problem is that even i unplug my usb digital camera, the input
status is always 0 (0x00).

Why the driver does not change input status flag when the device is unplugged?

Maybe it is possible to check device status not only input pin? If
yes, then which ioctl request should be set...?


Operating system: Linux 2.6.32-5-amd64 #1 SMP Mon Feb 25 00:26:11 UTC
2013 x86_64 GNU/Linux
--
To unsubscribe from this list: send the line "unsubscribe linux-media" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Input]     [Video for Linux]     [Gstreamer Embedded]     [Mplayer Users]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux