r5u870

Ricoh R5U870 Linux Driver
git clone https://logand.com/git/r5u870.git/
Log | Files | Refs | README | LICENSE

commit 688baaea9d28288087d293170df9388b61dcdd14
parent 3b2bad807d7a5fed87980550e48bb2f32b407a94
Author: alex <alex@022568fa-442e-4ef8-a3e8-54dcafdb011a>
Date:   Fri, 18 Apr 2008 05:04:24 +0000

Add support for r2.6.25 kernels. Thanks to Naresh and Stefano.
Closes issue2.


git-svn-id: http://svn.mediati.org/svn/r5u870/trunk@78 022568fa-442e-4ef8-a3e8-54dcafdb011a

Diffstat:
Musbcam/usbcam_buf.c | 15+++++++++++++++
1 file changed, 15 insertions(+), 0 deletions(-)

diff --git a/usbcam/usbcam_buf.c b/usbcam/usbcam_buf.c @@ -35,6 +35,21 @@ static int fixed_fbsize = 1024 * 1024; module_param(fixed_fbsize, int, S_IRUGO|S_IWUSR); MODULE_PARM_DESC(fixed_fbsize, "Size in bytes of fixed-length framebuffers"); +/* + * naresh <cyan_00391@yahoo.co.in> + * Define the various codes to permit compilation of this on + * 2.6.25 and higher kernels, we use gcc preprocessors for backward + * compatibility + * CREDITS: Thanks to stefano.brivio for his patch. + * Refer bug @ http://bugs.mediati.org/r5u870/issue2 + */ +#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,25) + #define STATE_ACTIVE VIDEOBUF_ACTIVE + #define STATE_DONE VIDEOBUF_DONE + #define STATE_ERROR VIDEOBUF_ERROR + #define STATE_NEEDS_INIT VIDEOBUF_NEEDS_INIT + #define STATE_PREPARED VIDEOBUF_PREPARED +#endif /* * Frame capture handling helpers follow