Mercurial > vloopback
comparison vloopback.c @ 10:bce647a9dd4b
Some changes to allow working with stock kernel 2.6.27
author | AngelCarpintero |
---|---|
date | Mon, 13 Oct 2008 00:26:10 +0000 |
parents | 80590d10a596 |
children | b904131a3807 |
comparison
equal
deleted
inserted
replaced
9:00bb25bff577 | 10:bce647a9dd4b |
---|---|
143 * video_device struct, added param debug. | 143 * video_device struct, added param debug. |
144 * | 144 * |
145 * 24.08.08 (Angel Carpintero) | 145 * 24.08.08 (Angel Carpintero) |
146 * Added compat_iotcl32 init in fopsl, replace tabs by 4 spaces in source code, | 146 * Added compat_iotcl32 init in fopsl, replace tabs by 4 spaces in source code, |
147 * add number of buffers as module param. | 147 * add number of buffers as module param. |
148 * | |
149 * 13.10.09 (Stephan Berberig & Angel Carpintero) | |
150 * Release to work on 2.6.27 , allow v4l_compat_ioctl32 work in 2.6.27 and a little cleanup | |
151 * in Makefile. | |
148 */ | 152 */ |
149 | 153 |
150 | 154 |
151 #define VLOOPBACK_VERSION "1.2-trunk" | 155 #define VLOOPBACK_VERSION "1.2-trunk" |
152 | 156 |
157 #include <linux/module.h> | 161 #include <linux/module.h> |
158 #include <linux/pagemap.h> | 162 #include <linux/pagemap.h> |
159 | 163 |
160 #if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,18) | 164 #if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,18) |
161 #include <media/v4l2-common.h> | 165 #include <media/v4l2-common.h> |
166 #endif | |
167 | |
168 /* v4l_compat_ioctl32 */ | |
169 #if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,27) | |
170 #include <media/v4l2-ioctl.h> | |
162 #endif | 171 #endif |
163 | 172 |
164 #include <linux/videodev.h> | 173 #include <linux/videodev.h> |
165 #include <linux/vmalloc.h> | 174 #include <linux/vmalloc.h> |
166 #include <linux/wait.h> | 175 #include <linux/wait.h> |