FS-3660: skypopen OSS fake audio driver compilation on linux kernels 3.x

This commit is contained in:
Giovanni Maruzzelli 2011-12-09 12:01:48 +01:00
parent 5227d5033a
commit 7f77ae4ea8
2 changed files with 8 additions and 0 deletions

View File

@ -146,7 +146,11 @@ struct skypopen_listitem {
/* The list of devices, and a lock to protect it */
static LIST_HEAD(skypopen_c_list);
#ifdef WANT_DEFINE_SPINLOCK
static DEFINE_SPINLOCK(skypopen_c_lock);
#else // WANT_DEFINE_SPINLOCK
static spinlock_t skypopen_c_lock = SPIN_LOCK_UNLOCKED;
#endif // WANT_DEFINE_SPINLOCK
/* Look for a device or create one if missing */
static struct skypopen_dev *skypopen_c_lookfor_device(dev_t key)

View File

@ -31,6 +31,10 @@
#define WANT_HRTIMER
#endif /* HRTIMER */
#if LINUX_VERSION_CODE >= KERNEL_VERSION(3, 0, 0)
#define WANT_DEFINE_SPINLOCK
#endif /* DEFINE_SPINLOCK */
#define SKYPOPEN_BLK 1920
#define SKYPOPEN_SLEEP 20