31 #ifndef __ALSA_PCM_IOPLUG_H 32 #define __ALSA_PCM_IOPLUG_H 66 #define SND_PCM_IOPLUG_FLAG_LISTED (1<<0) 67 #define SND_PCM_IOPLUG_FLAG_MONOTONIC (1<<1) 72 #define SND_PCM_IOPLUG_VERSION_MAJOR 1 73 #define SND_PCM_IOPLUG_VERSION_MINOR 0 74 #define SND_PCM_IOPLUG_VERSION_TINY 2 78 #define SND_PCM_IOPLUG_VERSION ((SND_PCM_IOPLUG_VERSION_MAJOR<<16) |\ 79 (SND_PCM_IOPLUG_VERSION_MINOR<<8) |\ 80 (SND_PCM_IOPLUG_VERSION_TINY)) 188 int (*poll_revents)(
snd_pcm_ioplug_t *io,
struct pollfd *pfd,
unsigned int nfds,
unsigned short *revents);
int snd_pcm_ioplug_set_param_list(snd_pcm_ioplug_t *io, int type, unsigned int num_list, const unsigned int *list)
Set parameter as the list.
Definition: pcm_ioplug.c:1055
struct _snd_pcm_sw_params snd_pcm_sw_params_t
Definition: pcm.h:65
volatile snd_pcm_uframes_t appl_ptr
Definition: pcm_ioplug.h:112
Definition: pcm_ioplug.h:44
snd_pcm_state_t
Definition: pcm.h:273
Definition: pcm_ioplug.h:43
int snd_pcm_ioplug_set_state(snd_pcm_ioplug_t *ioplug, snd_pcm_state_t state)
Change the ioplug PCM status.
Definition: pcm_ioplug.c:1141
unsigned int poll_events
Definition: pcm_ioplug.h:95
const snd_pcm_channel_area_t * snd_pcm_ioplug_mmap_areas(snd_pcm_ioplug_t *ioplug)
Get mmap area of ioplug.
Definition: pcm_ioplug.c:1124
int snd_pcm_ioplug_delete(snd_pcm_ioplug_t *io)
Delete the ioplug instance.
Definition: pcm_ioplug.c:1026
struct _snd_pcm_hw_params snd_pcm_hw_params_t
Definition: pcm.h:62
const snd_pcm_ioplug_callback_t * callback
Definition: pcm_ioplug.h:100
void * private_data
Definition: pcm_ioplug.h:104
Definition: pcm_ioplug.h:49
int nonblock
Definition: pcm_ioplug.h:114
int poll_fd
Definition: pcm_ioplug.h:94
Definition: pcm_ioplug.h:83
snd_pcm_format_t
Definition: pcm.h:123
long snd_pcm_sframes_t
Definition: pcm.h:356
Definition: pcm_ioplug.h:50
snd_pcm_uframes_t buffer_size
Definition: pcm_ioplug.h:121
Definition: pcm_ioplug.h:125
snd_pcm_uframes_t period_size
Definition: pcm_ioplug.h:120
unsigned int version
Definition: pcm_ioplug.h:88
struct _snd_output snd_output_t
Internal structure for an output object.
Definition: output.h:54
snd_pcm_state_t state
Definition: pcm_ioplug.h:111
const char * name
Definition: pcm_ioplug.h:92
unsigned int rate
Definition: pcm_ioplug.h:119
snd_pcm_format_t format
Definition: pcm_ioplug.h:117
snd_pcm_ioplug_callback snd_pcm_ioplug_callback_t
Definition: pcm_ioplug.h:60
Definition: pcm_ioplug.h:48
int snd_pcm_ioplug_set_param_minmax(snd_pcm_ioplug_t *io, int type, unsigned int min, unsigned int max)
Set parameter as the min/max values.
Definition: pcm_ioplug.c:1079
unsigned int flags
Definition: pcm_ioplug.h:93
snd_pcm_access_t access
Definition: pcm_ioplug.h:116
int snd_pcm_ioplug_create(snd_pcm_ioplug_t *io, const char *name, snd_pcm_stream_t stream, int mode)
Create an ioplug instance.
Definition: pcm_ioplug.c:974
void snd_pcm_ioplug_params_reset(snd_pcm_ioplug_t *io)
Reset ioplug parameters.
Definition: pcm_ioplug.c:1038
Definition: pcm_ioplug.h:45
Definition: pcm_ioplug.h:47
unsigned int channels
Definition: pcm_ioplug.h:118
snd_pcm_stream_t stream
Definition: pcm_ioplug.h:110
int snd_pcm_ioplug_reinit_status(snd_pcm_ioplug_t *ioplug)
Reinitialize the poll and mmap status.
Definition: pcm_ioplug.c:1104
unsigned long snd_pcm_uframes_t
Definition: pcm.h:354
snd_pcm_stream_t
Definition: pcm.h:99
snd_pcm_t * pcm
Definition: pcm_ioplug.h:108
Definition: pcm_ioplug.h:46
struct _snd_pcm snd_pcm_t
Definition: pcm.h:374
unsigned int mmap_rw
Definition: pcm_ioplug.h:96
volatile snd_pcm_uframes_t hw_ptr
Definition: pcm_ioplug.h:113
snd_pcm_access_t
Definition: pcm.h:108
snd_pcm_ioplug snd_pcm_ioplug_t
Definition: pcm_ioplug.h:59