FS-3660: skypopen OSS fake audio driver compilation on linux kernels 3.x
This commit is contained in:
parent
5227d5033a
commit
7f77ae4ea8
|
@ -146,7 +146,11 @@ struct skypopen_listitem {
|
||||||
|
|
||||||
/* The list of devices, and a lock to protect it */
|
/* The list of devices, and a lock to protect it */
|
||||||
static LIST_HEAD(skypopen_c_list);
|
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;
|
static spinlock_t skypopen_c_lock = SPIN_LOCK_UNLOCKED;
|
||||||
|
#endif // WANT_DEFINE_SPINLOCK
|
||||||
|
|
||||||
/* Look for a device or create one if missing */
|
/* Look for a device or create one if missing */
|
||||||
static struct skypopen_dev *skypopen_c_lookfor_device(dev_t key)
|
static struct skypopen_dev *skypopen_c_lookfor_device(dev_t key)
|
||||||
|
|
|
@ -31,6 +31,10 @@
|
||||||
#define WANT_HRTIMER
|
#define WANT_HRTIMER
|
||||||
#endif /* 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_BLK 1920
|
||||||
#define SKYPOPEN_SLEEP 20
|
#define SKYPOPEN_SLEEP 20
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue