channel.h (193640) | channel.h (193979) |
---|---|
1/*- 2 * Copyright (c) 2005-2009 Ariff Abdullah <ariff@FreeBSD.org> 3 * Portions Copyright (c) Ryan Beasley <ryan.beasley@gmail.com> - GSoC 2006 4 * Copyright (c) 1999 Cameron Grant <cg@FreeBSD.org> 5 * All rights reserved. 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions --- 11 unchanged lines hidden (view full) --- 20 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 21 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 22 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 23 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 24 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 25 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 26 * SUCH DAMAGE. 27 * | 1/*- 2 * Copyright (c) 2005-2009 Ariff Abdullah <ariff@FreeBSD.org> 3 * Portions Copyright (c) Ryan Beasley <ryan.beasley@gmail.com> - GSoC 2006 4 * Copyright (c) 1999 Cameron Grant <cg@FreeBSD.org> 5 * All rights reserved. 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions --- 11 unchanged lines hidden (view full) --- 20 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 21 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 22 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 23 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 24 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 25 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 26 * SUCH DAMAGE. 27 * |
28 * $FreeBSD: head/sys/dev/sound/pcm/channel.h 193640 2009-06-07 19:12:08Z ariff $ | 28 * $FreeBSD: head/sys/dev/sound/pcm/channel.h 193979 2009-06-11 09:06:09Z ariff $ |
29 */ 30 31struct pcmchan_caps { 32 u_int32_t minspeed, maxspeed; 33 u_int32_t *fmtlist; 34 u_int32_t caps; 35}; 36 --- 399 unchanged lines hidden (view full) --- 436 * (which is usually 48kHz * 16bit * stereo = 192000 bytes/sec) 437 */ 438#define CHN_2NDBUFBLKSIZE (2 * 1024) 439/* The total number of blocks per secondary bufhard. */ 440#define CHN_2NDBUFBLKNUM (32) 441/* The size of a whole secondary bufhard. */ 442#define CHN_2NDBUFMAXSIZE (131072) 443 | 29 */ 30 31struct pcmchan_caps { 32 u_int32_t minspeed, maxspeed; 33 u_int32_t *fmtlist; 34 u_int32_t caps; 35}; 36 --- 399 unchanged lines hidden (view full) --- 436 * (which is usually 48kHz * 16bit * stereo = 192000 bytes/sec) 437 */ 438#define CHN_2NDBUFBLKSIZE (2 * 1024) 439/* The total number of blocks per secondary bufhard. */ 440#define CHN_2NDBUFBLKNUM (32) 441/* The size of a whole secondary bufhard. */ 442#define CHN_2NDBUFMAXSIZE (131072) 443 |
444#ifdef SND_DEBUG 445#define CHANNEL_DECLARE(channel) \ 446 static struct kobj_class channel##_class = { \ 447 .name = #channel, \ 448 .methods = channel##_methods, \ 449 .size = sizeof(struct kobj), \ 450 .baseclasses = NULL, \ 451 .refs = 0 \ 452 } 453#else | |
454#define CHANNEL_DECLARE(name) static DEFINE_CLASS(name, name ## _methods, sizeof(struct kobj)) | 444#define CHANNEL_DECLARE(name) static DEFINE_CLASS(name, name ## _methods, sizeof(struct kobj)) |
455#endif | |