FreeBSD kernel sound device code
sndbuf_dma.c File Reference
#include <dev/sound/pcm/sound.h>
#include <isa/isavar.h>
Include dependency graph for sndbuf_dma.c:

Go to the source code of this file.

Functions

 SND_DECLARE_FILE ("$FreeBSD$")
 
int sndbuf_dmasetup (struct snd_dbuf *b, struct resource *drq)
 
int sndbuf_dmasetdir (struct snd_dbuf *b, int dir)
 
void sndbuf_dma (struct snd_dbuf *b, int go)
 
int sndbuf_dmaptr (struct snd_dbuf *b)
 
void sndbuf_dmabounce (struct snd_dbuf *b)
 

Function Documentation

◆ SND_DECLARE_FILE()

SND_DECLARE_FILE ( "$FreeBSD$"  )

◆ sndbuf_dma()

void sndbuf_dma ( struct snd_dbuf b,
int  go 
)

Definition at line 63 of file sndbuf_dma.c.

References b, snd_dbuf::buf, snd_dbuf::bufsize, DEB, snd_dbuf::dir, snd_dbuf::dmachan, go, PCMTRIG_ABORT, PCMTRIG_START, PCMTRIG_STOP, SNDBUF_F_DMA, and sndbuf_getflags().

Referenced by ad1816chan_trigger(), ess_intr(), esschan_trigger(), msschan_trigger(), sb_setup(), and sbchan_trigger().

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

◆ sndbuf_dmabounce()

void sndbuf_dmabounce ( struct snd_dbuf b)

Definition at line 103 of file sndbuf_dma.c.

References b, SNDBUF_F_DMA, and sndbuf_getflags().

Referenced by chn_trigger().

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

◆ sndbuf_dmaptr()

int sndbuf_dmaptr ( struct snd_dbuf b)

Definition at line 88 of file sndbuf_dma.c.

References b, snd_dbuf::bufsize, snd_dbuf::dmachan, SNDBUF_F_DMA, sndbuf_getflags(), and sndbuf_runsz().

Referenced by ad1816chan_getptr(), esschan_getptr(), msschan_getptr(), sb16chan_getptr(), and sbchan_getptr().

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

◆ sndbuf_dmasetdir()

int sndbuf_dmasetdir ( struct snd_dbuf b,
int  dir 
)

Definition at line 53 of file sndbuf_dma.c.

References b, dir, snd_dbuf::dir, PCMDIR_PLAY, SNDBUF_F_DMA, and sndbuf_getflags().

Referenced by ad1816chan_init(), and sb_setup().

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

◆ sndbuf_dmasetup()

int sndbuf_dmasetup ( struct snd_dbuf b,
struct resource *  drq 
)

Definition at line 40 of file sndbuf_dma.c.

References b, snd_dbuf::dmachan, SNDBUF_F_DMA, and sndbuf_setflags().

Referenced by ad1816chan_init(), esschan_init(), msschan_init(), sb_setup(), and sbchan_init().

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