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

Go to the source code of this file.

Macros

#define SNDSTAT_PREPARE_PCM_ARGS    struct sbuf *s, device_t dev, int verbose
 
#define SNDSTAT_PREPARE_PCM_BEGIN()
 
#define SNDSTAT_PREPARE_PCM_END()
 

Macro Definition Documentation

◆ SNDSTAT_PREPARE_PCM_ARGS

#define SNDSTAT_PREPARE_PCM_ARGS    struct sbuf *s, device_t dev, int verbose

Definition at line 34 of file sndstat.h.

◆ SNDSTAT_PREPARE_PCM_BEGIN

#define SNDSTAT_PREPARE_PCM_BEGIN ( )
Value:
do { \
struct snddev_info *d; \
struct pcm_channel *c; \
struct pcm_feeder *f; \
\
d = device_get_softc(dev); \
PCM_BUSYASSERT(d); \
\
if (CHN_EMPTY(d, channels.pcm)) { \
sbuf_printf(s, " (mixer only)"); \
return (0); \
} \
\
if (verbose < 1) { \
sbuf_printf(s, " (%s%s%s", \
d->playcount ? "play" : "", \
(d->playcount && d->reccount) ? "/" : "", \
d->reccount ? "rec" : ""); \
} else { \
sbuf_printf(s, " (%dp:%dv/%dr:%dv", \
d->playcount, d->pvchancount, \
d->reccount, d->rvchancount); \
} \
sbuf_printf(s, "%s)%s", \
((d->playcount != 0 && d->reccount != 0) && \
(d->flags & SD_F_SIMPLEX)) ? " simplex" : "", \
(device_get_unit(dev) == snd_unit) ? " default" : "")
#define CHN_EMPTY(x, y)
Definition: channel.h:178
struct pcm_channel * c
Definition: channel_if.m:106
unsigned dev
Definition: mixer_if.m:59
int snd_unit
Definition: sound.c:53
#define SD_F_SIMPLEX
Definition: sound.h:132

Definition at line 37 of file sndstat.h.

◆ SNDSTAT_PREPARE_PCM_END

#define SNDSTAT_PREPARE_PCM_END ( )

Definition at line 65 of file sndstat.h.