Deleted Added
full compact
feeder.c (167644) feeder.c (170161)
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 167644 2007-03-16 17:15:33Z ariff $");
31SND_DECLARE_FILE("$FreeBSD: head/sys/dev/sound/pcm/feeder.c 170161 2007-05-31 18:43:33Z ariff $");
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);

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

106 fte->feederclass = fc;
107 fte->desc = NULL;
108 fte->idx = feedercnt;
109 SLIST_INSERT_HEAD(&feedertab, fte, link);
110 feedercnt++;
111
112 /* initialize global variables */
113
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);

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

106 fte->feederclass = fc;
107 fte->desc = NULL;
108 fte->idx = feedercnt;
109 SLIST_INSERT_HEAD(&feedertab, fte, link);
110 feedercnt++;
111
112 /* initialize global variables */
113
114 if (snd_verbose < 0 || snd_verbose > 3)
114 if (snd_verbose < 0 || snd_verbose > 4)
115 snd_verbose = 1;
116
115 snd_verbose = 1;
116
117 if (snd_unit < 0 || snd_unit > PCMMAXDEV)
117 /* initialize unit numbering */
118 snd_unit_init();
119 if (snd_unit < 0 || snd_unit > PCMMAXUNIT)
118 snd_unit = 0;
119
120 if (snd_maxautovchans < 0 ||
121 snd_maxautovchans > SND_MAXVCHANS)
122 snd_maxautovchans = 0;
123
124 if (chn_latency < CHN_LATENCY_MIN ||
125 chn_latency > CHN_LATENCY_MAX)

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

339 visited[idx] |= mask;
340 test = test->source;
341 }
342
343 return 1;
344}
345
346/*
120 snd_unit = 0;
121
122 if (snd_maxautovchans < 0 ||
123 snd_maxautovchans > SND_MAXVCHANS)
124 snd_maxautovchans = 0;
125
126 if (chn_latency < CHN_LATENCY_MIN ||
127 chn_latency > CHN_LATENCY_MAX)

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

341 visited[idx] |= mask;
342 test = test->source;
343 }
344
345 return 1;
346}
347
348/*
347 * See feeder_fmtchain() for the mumbo-jumbo ridiculous explaination
349 * See feeder_fmtchain() for the mumbo-jumbo ridiculous explanation
348 * of what the heck is this FMT_Q_*
349 */
350#define FMT_Q_UP 1
351#define FMT_Q_DOWN 2
352#define FMT_Q_EQ 3
353#define FMT_Q_MULTI 4
354
355/*

--- 560 unchanged lines hidden ---
350 * of what the heck is this FMT_Q_*
351 */
352#define FMT_Q_UP 1
353#define FMT_Q_DOWN 2
354#define FMT_Q_EQ 3
355#define FMT_Q_MULTI 4
356
357/*

--- 560 unchanged lines hidden ---