Hello,
I was getting a compile error
microdia-sysfs.c: In function ‘store_autoexposure’:
microdia-sysfs.c:733: error: ‘V4L2_EXPOSURE_AUTO’ undeclared (first
use in this function)
microdia-sysfs.c:733: error: (Each undeclared identifier is reported
only once
microdia-sysfs.c:733: error: for each function it appears in.)
microdia-sysfs.c:735: error: ‘V4L2_EXPOSURE_MANUAL’ undeclared (first
use in this function)
with today git-cloned microdia source and 2.6.23 linux kernel.
I discovered that there no such definitions in my linux/include/.
Then I created defs.h (and included it into microdia-dev.c, microdia-
sysfs.c, micron.c, omnivision.c).
defs.h:
#ifndef DEFS_H
#define DEFS_H
#define V4L2_CID_EXPOSURE_AUTO (V4L2_CID_CAMERA_CLASS_BASE+1)
enum v4l2_exposure_auto_type {
V4L2_EXPOSURE_AUTO = 0,
V4L2_EXPOSURE_MANUAL = 1,
V4L2_EXPOSURE_SHUTTER_PRIORITY = 2,
V4L2_EXPOSURE_APERTURE_PRIORITY = 3
};
#endif /* DEFS_H */
The contents are copypasted from google.
Now it compiles and works for me. Where am I wrong?
--~--~---------~--~----~------------~-------~--~----~
Lets make microdia webcams plug'n play, (currently plug'n pray)
To post to this group, send email to [email protected]
Visit us online https://groups.google.com/group/microdia
-~----------~----~----~----~------~----~------~--~---