channel.h (e4e61333ffa4e90360de2dd1e4e0146f7cbf0afb) channel.h (eabe30fc9c3f2d6a3bc2fdcce18a0b9543b6c96e)
1/*-
2 * Copyright (c) 1999 Cameron Grant <cg@freebsd.org>
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 244 unchanged lines hidden (view full) ---

253int chn_getrates(struct pcm_channel *c, int **rates);
254int chn_syncdestroy(struct pcm_channel *c);
255
256#ifdef OSSV4_EXPERIMENT
257int chn_getpeaks(struct pcm_channel *c, int *lpeak, int *rpeak);
258#endif
259
260#ifdef USING_MUTEX
1/*-
2 * Copyright (c) 1999 Cameron Grant <cg@freebsd.org>
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 244 unchanged lines hidden (view full) ---

253int chn_getrates(struct pcm_channel *c, int **rates);
254int chn_syncdestroy(struct pcm_channel *c);
255
256#ifdef OSSV4_EXPERIMENT
257int chn_getpeaks(struct pcm_channel *c, int *lpeak, int *rpeak);
258#endif
259
260#ifdef USING_MUTEX
261#define CHN_LOCK_OWNED(c) mtx_owned((struct mtx *)((c)->lock))
261#define CHN_LOCK(c) mtx_lock((struct mtx *)((c)->lock))
262#define CHN_UNLOCK(c) mtx_unlock((struct mtx *)((c)->lock))
263#define CHN_TRYLOCK(c) mtx_trylock((struct mtx *)((c)->lock))
264#define CHN_LOCKASSERT(c) mtx_assert((struct mtx *)((c)->lock), MA_OWNED)
265#else
262#define CHN_LOCK(c) mtx_lock((struct mtx *)((c)->lock))
263#define CHN_UNLOCK(c) mtx_unlock((struct mtx *)((c)->lock))
264#define CHN_TRYLOCK(c) mtx_trylock((struct mtx *)((c)->lock))
265#define CHN_LOCKASSERT(c) mtx_assert((struct mtx *)((c)->lock), MA_OWNED)
266#else
267#define CHN_LOCK_OWNED(c) 0
266#define CHN_LOCK(c)
267#define CHN_UNLOCK(c)
268#define CHN_TRYLOCK(c)
269#define CHN_LOCKASSERT(c)
270#endif
271
272int fmtvalid(u_int32_t fmt, u_int32_t *fmtlist);
273

--- 103 unchanged lines hidden ---
268#define CHN_LOCK(c)
269#define CHN_UNLOCK(c)
270#define CHN_TRYLOCK(c)
271#define CHN_LOCKASSERT(c)
272#endif
273
274int fmtvalid(u_int32_t fmt, u_int32_t *fmtlist);
275

--- 103 unchanged lines hidden ---