feeder.c (164614) | feeder.c (165835) |
---|---|
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 --- 14 unchanged lines hidden (view full) --- 23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24 * SUCH DAMAGE. 25 */ 26 27#include <dev/sound/pcm/sound.h> 28 29#include "feeder_if.h" 30 | 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 --- 14 unchanged lines hidden (view full) --- 23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24 * SUCH DAMAGE. 25 */ 26 27#include <dev/sound/pcm/sound.h> 28 29#include "feeder_if.h" 30 |
31SND_DECLARE_FILE("$FreeBSD: head/sys/dev/sound/pcm/feeder.c 164614 2006-11-26 12:24:06Z ariff $"); | 31SND_DECLARE_FILE("$FreeBSD: head/sys/dev/sound/pcm/feeder.c 165835 2007-01-06 19:11:48Z netchild $"); |
32 33MALLOC_DEFINE(M_FEEDER, "feeder", "pcm feeder"); 34 35#define MAXFEEDERS 256 36#undef FEEDER_DEBUG 37 38int feeder_buffersize = FEEDBUFSZ; 39TUNABLE_INT("hw.snd.feeder_buffersize", &feeder_buffersize); --- 659 unchanged lines hidden (view full) --- 699 to[1] == 0 && from[1] == 0) { 700 max = 0; 701 best = from[0]; 702 c->feeder->desc->out = best; 703 do { 704 try = feeder_fmtchain(to, c->feeder, stop, max); 705 DEB(if (try != NULL) { 706 printf("%s: 0x%08x -> 0x%08x (maxdepth: %d)\n", | 32 33MALLOC_DEFINE(M_FEEDER, "feeder", "pcm feeder"); 34 35#define MAXFEEDERS 256 36#undef FEEDER_DEBUG 37 38int feeder_buffersize = FEEDBUFSZ; 39TUNABLE_INT("hw.snd.feeder_buffersize", &feeder_buffersize); --- 659 unchanged lines hidden (view full) --- 699 to[1] == 0 && from[1] == 0) { 700 max = 0; 701 best = from[0]; 702 c->feeder->desc->out = best; 703 do { 704 try = feeder_fmtchain(to, c->feeder, stop, max); 705 DEB(if (try != NULL) { 706 printf("%s: 0x%08x -> 0x%08x (maxdepth: %d)\n", |
707 __func__, from[0], to[0], max) | 707 __func__, from[0], to[0], max); |
708 }); 709 } while (try == NULL && max++ < FEEDER_FMTCHAIN_MAXDEPTH); 710 } else { 711 printf("%s: Using the old-way format chaining!\n", __func__); 712 i = 0; 713 best = 0; 714 bestmax = 100; 715 while (from[i] != 0) { --- 171 unchanged lines hidden --- | 708 }); 709 } while (try == NULL && max++ < FEEDER_FMTCHAIN_MAXDEPTH); 710 } else { 711 printf("%s: Using the old-way format chaining!\n", __func__); 712 i = 0; 713 best = 0; 714 bestmax = 100; 715 while (from[i] != 0) { --- 171 unchanged lines hidden --- |