41#define SND_CLONE_DEADLINE_DEFAULT 750
46#define SND_CLONE_MAXUNIT 0xffffff
64#define SND_CLONE_ENABLE 0x00000001
65#define SND_CLONE_GC_ENABLE 0x00000002
66#define SND_CLONE_GC_UNREF 0x00000004
67#define SND_CLONE_GC_LASTREF 0x00000008
68#define SND_CLONE_GC_EXPIRED 0x00000010
69#define SND_CLONE_GC_REVOKE 0x00000020
70#define SND_CLONE_WAITOK 0x80000000
72#define SND_CLONE_GC_MASK (SND_CLONE_GC_ENABLE | \
73 SND_CLONE_GC_UNREF | \
74 SND_CLONE_GC_LASTREF | \
75 SND_CLONE_GC_EXPIRED | \
78#define SND_CLONE_MASK (SND_CLONE_ENABLE | SND_CLONE_GC_MASK | \
90#define SND_CLONE_NEW 0x00000001
91#define SND_CLONE_INVOKE 0x00000002
92#define SND_CLONE_BUSY 0x00000004
97#define SND_CLONE_ALLOC (SND_CLONE_NEW | SND_CLONE_INVOKE | \
100#define SND_CLONE_DEVMASK SND_CLONE_ALLOC
125#define snd_clone_enabled(x) ((x) != NULL && \
126 (snd_clone_getflags(x) & SND_CLONE_ENABLE))
127#define snd_clone_disabled(x) (!snd_clone_enabled(x))
uint32_t snd_clone_setdevflags(struct cdev *, uint32_t)
int snd_clone_acquire(struct cdev *)
void snd_clone_destroy(struct snd_clone *)
int snd_clone_getdeadline(struct snd_clone *)
int snd_clone_getmaxunit(struct snd_clone *)
struct snd_clone_entry * snd_clone_alloc(struct snd_clone *, struct cdev **, int *, int)
int snd_clone_disable(struct snd_clone *)
int snd_clone_ref(struct cdev *)
int snd_clone_release(struct cdev *)
uint32_t snd_clone_getdevflags(struct cdev *)
int snd_clone_setmaxunit(struct snd_clone *, int)
int snd_clone_enable(struct snd_clone *)
int snd_clone_unref(struct cdev *)
uint32_t snd_clone_setflags(struct snd_clone *, uint32_t)
uint32_t snd_clone_getflags(struct snd_clone *)
int snd_clone_busy(struct snd_clone *)
int snd_clone_gc(struct snd_clone *)
int snd_clone_setdeadline(struct snd_clone *, int)
void snd_clone_register(struct snd_clone_entry *, struct cdev *)
struct snd_clone * snd_clone_create(int, int, int, uint32_t)
int snd_clone_getsize(struct snd_clone *)