FreeBSD kernel sound device code
|
Go to the source code of this file.
Macros | |
#define | SND_UNIT_ASSERT() |
#define | MKMASK(x) ((1 << snd_##x##_shift) - 1) |
Functions | |
int | snd_max_u (void) |
int | snd_max_d (void) |
int | snd_max_c (void) |
int | snd_unit2u (int unit) |
int | snd_unit2d (int unit) |
int | snd_unit2c (int unit) |
int | snd_u2unit (int u) |
int | snd_d2unit (int d) |
int | snd_c2unit (int c) |
int | snd_mkunit (int u, int d, int c) |
void | snd_unit_init (void) |
Variables | |
static int | snd_u_shift = 9 |
static int | snd_d_shift = 5 |
static int | snd_c_shift = 10 |
static int | snd_unit_initialized = 0 |
#define SND_UNIT_ASSERT | ( | ) |
int snd_c2unit | ( | int | c | ) |
Definition at line 148 of file unit.c.
References c, MKMASK, and SND_UNIT_ASSERT.
Referenced by dsp_clone().
int snd_d2unit | ( | int | d | ) |
Definition at line 140 of file unit.c.
References MKMASK, snd_c_shift, and SND_UNIT_ASSERT.
Referenced by dsp_clone().
int snd_max_c | ( | void | ) |
Definition at line 100 of file unit.c.
References c, MKMASK, and SND_UNIT_ASSERT.
Referenced by snd_unit_init().
int snd_max_d | ( | void | ) |
Definition at line 92 of file unit.c.
References MKMASK, and SND_UNIT_ASSERT.
Referenced by snd_unit_init().
int snd_max_u | ( | void | ) |
Definition at line 84 of file unit.c.
References MKMASK, and SND_UNIT_ASSERT.
Referenced by snd_unit_init().
int snd_mkunit | ( | int | u, |
int | d, | ||
int | c | ||
) |
Definition at line 156 of file unit.c.
References c, MKMASK, snd_c_shift, snd_d_shift, and SND_UNIT_ASSERT.
Referenced by mixer_init(), and pcm_chn_create().
int snd_u2unit | ( | int | u | ) |
Definition at line 132 of file unit.c.
References MKMASK, snd_c_shift, snd_d_shift, and SND_UNIT_ASSERT.
Referenced by dsp_clone().
int snd_unit2c | ( | int | unit | ) |
Definition at line 124 of file unit.c.
References c, MKMASK, and SND_UNIT_ASSERT.
Referenced by dsp_unit2name(), and pcm_chnalloc().
int snd_unit2d | ( | int | unit | ) |
Definition at line 116 of file unit.c.
References MKMASK, snd_c_shift, and SND_UNIT_ASSERT.
Referenced by dsp_unit2name(), and pcm_chnalloc().
int snd_unit2u | ( | int | unit | ) |
Definition at line 108 of file unit.c.
References MKMASK, snd_c_shift, snd_d_shift, and SND_UNIT_ASSERT.
Referenced by dsp_unit2name().
void snd_unit_init | ( | void | ) |
Definition at line 168 of file unit.c.
References SND_C_MASK, snd_c_shift, SND_D_MASK, snd_d_shift, snd_max_c(), snd_max_d(), snd_max_u(), SND_U_MASK, snd_u_shift, snd_unit_initialized, SND_UNIT_UMAX, and SND_UNIT_UMIN.
Referenced by dsp_sysinit(), and SLIST_HEAD().
|
static |
Definition at line 64 of file unit.c.
Referenced by snd_d2unit(), snd_mkunit(), snd_u2unit(), snd_unit2d(), snd_unit2u(), and snd_unit_init().
|
static |
Definition at line 63 of file unit.c.
Referenced by snd_mkunit(), snd_u2unit(), snd_unit2u(), and snd_unit_init().
|
static |
Definition at line 62 of file unit.c.
Referenced by snd_unit_init().
|
static |
Definition at line 68 of file unit.c.
Referenced by snd_unit_init().