[Ekiga-list] V4L2 camera



Hi all,

I'm using  camera with spca5xx driver, Logitech for Notebooks Deluxe,
with kernel 2.6.17.6. When I run the configuration druid it is
detected at /dev/v4l/video0 but the the Test Settings return:
Failed to open device:
Error while opening /dev/v4l/video0

Any ideas what might be the problem?

I can run this without problems:
#include <stdio.h>
#include <stdlib.h>
#include <sys/file.h>

int main(void) {

 int fd = -1;

 //v4l init
 if ((fd = open ("/dev/v4l/video0", O_RDWR)) == -1) {
   perror ("ERROR opening V4L interface \n");
   exit (1);
 }

 printf("Opened OK!\n");

 close(fd);

 printf("Closing!\n");

 return 0;

}

$ ./v4l-open
Opened OK!
Closing!

--
Paulo Jorge Matos - pocm at soton.ac.uk
University of Southampton, UK



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