FreeBSD kernel sound device code
unit.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define SND_UNIT_UMIN   16
 
#define SND_UNIT_UMAX   2048
 
#define SND_U_MASK   (snd_u2unit(snd_max_u()))
 
#define SND_D_MASK   (snd_d2unit(snd_max_d()))
 
#define SND_C_MASK   (snd_c2unit(snd_max_c()))
 

Functions

int snd_max_u (void)
 
int snd_max_d (void)
 
int snd_max_c (void)
 
int snd_unit2u (int)
 
int snd_unit2d (int)
 
int snd_unit2c (int)
 
int snd_u2unit (int)
 
int snd_d2unit (int)
 
int snd_c2unit (int)
 
int snd_mkunit (int, int, int)
 
void snd_unit_init (void)
 

Macro Definition Documentation

◆ SND_C_MASK

#define SND_C_MASK   (snd_c2unit(snd_max_c()))

Definition at line 52 of file unit.h.

◆ SND_D_MASK

#define SND_D_MASK   (snd_d2unit(snd_max_d()))

Definition at line 51 of file unit.h.

◆ SND_U_MASK

#define SND_U_MASK   (snd_u2unit(snd_max_u()))

Definition at line 50 of file unit.h.

◆ SND_UNIT_UMAX

#define SND_UNIT_UMAX   2048

Definition at line 35 of file unit.h.

◆ SND_UNIT_UMIN

#define SND_UNIT_UMIN   16

Definition at line 34 of file unit.h.

Function Documentation

◆ snd_c2unit()

int snd_c2unit ( int  c)

Definition at line 148 of file unit.c.

References c, MKMASK, and SND_UNIT_ASSERT.

Referenced by dsp_clone().

Here is the caller graph for this function:

◆ snd_d2unit()

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().

Here is the caller graph for this function:

◆ snd_max_c()

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().

Here is the caller graph for this function:

◆ snd_max_d()

int snd_max_d ( void  )

Definition at line 92 of file unit.c.

References MKMASK, and SND_UNIT_ASSERT.

Referenced by snd_unit_init().

Here is the caller graph for this function:

◆ snd_max_u()

int snd_max_u ( void  )

Definition at line 84 of file unit.c.

References MKMASK, and SND_UNIT_ASSERT.

Referenced by snd_unit_init().

Here is the caller graph for this function:

◆ snd_mkunit()

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().

Here is the caller graph for this function:

◆ snd_u2unit()

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().

Here is the caller graph for this function:

◆ snd_unit2c()

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().

Here is the caller graph for this function:

◆ snd_unit2d()

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().

Here is the caller graph for this function:

◆ snd_unit2u()

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().

Here is the caller graph for this function:

◆ snd_unit_init()

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().

Here is the call graph for this function:
Here is the caller graph for this function: