FreeBSD kernel sound device code
|
#include <dev/sound/pcm/sound.h>
#include <dev/sound/chip.h>
#include <dev/sound/usb/uaudio.h>
#include "mixer_if.h"
Go to the source code of this file.
Functions | |
static void * | ua_chan_init (kobj_t obj, void *devinfo, struct snd_dbuf *b, struct pcm_channel *c, int dir) |
static int | ua_chan_free (kobj_t obj, void *data) |
static int | ua_chan_setformat (kobj_t obj, void *data, uint32_t format) |
static uint32_t | ua_chan_setspeed (kobj_t obj, void *data, uint32_t speed) |
static uint32_t | ua_chan_setblocksize (kobj_t obj, void *data, uint32_t blocksize) |
static int | ua_chan_setfragments (kobj_t obj, void *data, uint32_t blocksize, uint32_t blockcount) |
static int | ua_chan_trigger (kobj_t obj, void *data, int go) |
static uint32_t | ua_chan_getptr (kobj_t obj, void *data) |
static struct pcmchan_caps * | ua_chan_getcaps (kobj_t obj, void *data) |
static struct pcmchan_matrix * | ua_chan_getmatrix (kobj_t obj, void *data, uint32_t format) |
CHANNEL_DECLARE (ua_chan) | |
static int | ua_mixer_init (struct snd_mixer *m) |
static int | ua_mixer_set (struct snd_mixer *m, unsigned type, unsigned left, unsigned right) |
static uint32_t | ua_mixer_setrecsrc (struct snd_mixer *m, uint32_t src) |
static int | ua_mixer_uninit (struct snd_mixer *m) |
MIXER_DECLARE (ua_mixer) | |
static int | ua_probe (device_t dev) |
static int | ua_attach (device_t dev) |
static int | ua_detach (device_t dev) |
DRIVER_MODULE (ua_pcm, uaudio, ua_pcm_driver, pcm_devclass, 0, 0) | |
MODULE_DEPEND (ua_pcm, uaudio, 1, 1, 1) | |
MODULE_DEPEND (ua_pcm, sound, SOUND_MINVER, SOUND_PREFVER, SOUND_MAXVER) | |
MODULE_VERSION (ua_pcm, 1) | |
Variables | |
static kobj_method_t | ua_chan_methods [] |
static kobj_method_t | ua_mixer_methods [] |
static device_method_t | ua_pcm_methods [] |
static driver_t | ua_pcm_driver |
CHANNEL_DECLARE | ( | ua_chan | ) |
DRIVER_MODULE | ( | ua_pcm | , |
uaudio | , | ||
ua_pcm_driver | , | ||
pcm_devclass | , | ||
0 | , | ||
0 | |||
) |
MIXER_DECLARE | ( | ua_mixer | ) |
MODULE_DEPEND | ( | ua_pcm | , |
sound | , | ||
SOUND_MINVER | , | ||
SOUND_PREFVER | , | ||
SOUND_MAXVER | |||
) |
MODULE_DEPEND | ( | ua_pcm | , |
uaudio | , | ||
1 | , | ||
1 | , | ||
1 | |||
) |
MODULE_VERSION | ( | ua_pcm | , |
1 | |||
) |
|
static |
Definition at line 211 of file uaudio_pcm.c.
References dev, and uaudio_attach_sub().
|
static |
Definition at line 49 of file uaudio_pcm.c.
References data, and uaudio_chan_free().
|
static |
Definition at line 102 of file uaudio_pcm.c.
References data, and uaudio_chan_getcaps().
|
static |
Definition at line 108 of file uaudio_pcm.c.
References data, format, and uaudio_chan_getmatrix().
|
static |
Definition at line 96 of file uaudio_pcm.c.
References data, and uaudio_chan_getptr().
|
static |
Definition at line 43 of file uaudio_pcm.c.
References b, c, devinfo, dir, and uaudio_chan_init().
|
static |
Definition at line 71 of file uaudio_pcm.c.
References blocksize, data, and uaudio_chan_set_param_blocksize().
|
static |
Definition at line 55 of file uaudio_pcm.c.
References data, format, and uaudio_chan_set_param_format().
|
static |
Definition at line 77 of file uaudio_pcm.c.
References blockcount, blocksize, data, and uaudio_chan_set_param_fragments().
|
static |
Definition at line 65 of file uaudio_pcm.c.
References data, speed, and uaudio_chan_set_param_speed().
|
static |
Definition at line 83 of file uaudio_pcm.c.
References data, go, PCMTRIG_COMMON, PCMTRIG_START, uaudio_chan_start(), and uaudio_chan_stop().
|
static |
Definition at line 217 of file uaudio_pcm.c.
References dev, and uaudio_detach_sub().
|
static |
Definition at line 131 of file uaudio_pcm.c.
References m, mix_getdevinfo(), and uaudio_mixer_init_sub().
|
static |
Definition at line 137 of file uaudio_pcm.c.
References left, m, mix_getdevinfo(), mixer_get_lock(), right, type, and uaudio_mixer_set().
|
static |
Definition at line 156 of file uaudio_pcm.c.
References m, mix_getdevinfo(), mixer_get_lock(), src, and uaudio_mixer_setrecsrc().
|
static |
Definition at line 176 of file uaudio_pcm.c.
References m, mix_getdevinfo(), and uaudio_mixer_uninit_sub().
|
static |
Definition at line 193 of file uaudio_pcm.c.
References dev, sndcard_func::func, and SCF_PCM.
|
static |
Definition at line 113 of file uaudio_pcm.c.
|
static |
Definition at line 181 of file uaudio_pcm.c.
|
static |
Definition at line 233 of file uaudio_pcm.c.
|
static |
Definition at line 224 of file uaudio_pcm.c.