Hallo there,
I am trying to implement a webcam gadget through usb0 port. It creates a /dev/video0 device.
Though opening the device as below fails most of the times. Any ideas why this happens? Can autosuspend have to do anything with this?
const char* devname = "/dev/video0";
fd = open(devname, O_RDWR | O_NONBLOCK);
if (fd == -1) {
printf("open %s failed: %s (%d)\n", devname, strerror(errno), errno);
The error message is:
open /dev/video4 failed: No such device (19)
Dm816x is configured with usb0 as device and usb1 as host according to http://processors.wiki.ti.com/index.php/Usbgeneralpage#One_port_as_host_and_other_port_as_Gadget_.28for_DM81XX.29
It is running linux 2.6.37.
Thanks,
Georgios