Lines 1410-1415
static inline short dahdi_txtone_nextsample(struct dahdi_chan *ss)
Link Here
|
1410 |
/*! Maximum audio mask */ |
1410 |
/*! Maximum audio mask */ |
1411 |
#define DAHDI_FORMAT_AUDIO_MASK ((1 << 16) - 1) |
1411 |
#define DAHDI_FORMAT_AUDIO_MASK ((1 << 16) - 1) |
1412 |
|
1412 |
|
|
|
1413 |
#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 11, 0) |
1414 |
#define refcount_read atomic_read |
1413 |
#if LINUX_VERSION_CODE < KERNEL_VERSION(3, 16, 0) |
1415 |
#if LINUX_VERSION_CODE < KERNEL_VERSION(3, 16, 0) |
1414 |
|
1416 |
|
1415 |
/* DAHDI only was using the xxx_clear_bit variants. */ |
1417 |
/* DAHDI only was using the xxx_clear_bit variants. */ |
Lines 1539-1544
static inline int strcasecmp(const char *s1, const char *s2)
Link Here
|
1539 |
#endif /* 2.6.31 */ |
1541 |
#endif /* 2.6.31 */ |
1540 |
#endif /* 3.10.0 */ |
1542 |
#endif /* 3.10.0 */ |
1541 |
#endif /* 3.16.0 */ |
1543 |
#endif /* 3.16.0 */ |
|
|
1544 |
#endif /* 4.11.0 */ |
1542 |
|
1545 |
|
1543 |
#ifndef DEFINE_SPINLOCK |
1546 |
#ifndef DEFINE_SPINLOCK |
1544 |
#define DEFINE_SPINLOCK(x) spinlock_t x = SPIN_LOCK_UNLOCKED |
1547 |
#define DEFINE_SPINLOCK(x) spinlock_t x = SPIN_LOCK_UNLOCKED |
1545 |
- |
|
|