31 #if !defined(__ALSA_PCM_EXTERNAL_H) && !defined(ALSA_LIBRARY_BUILD)
32 #warning "use #include <alsa/pcm_external.h>, <alsa/pcm_ioplug.h> should not be used directly"
33 #include <alsa/pcm_external.h>
36 #ifndef __ALSA_PCM_IOPLUG_H
37 #define __ALSA_PCM_IOPLUG_H
71 #define SND_PCM_IOPLUG_FLAG_LISTED (1<<0)
72 #define SND_PCM_IOPLUG_FLAG_MONOTONIC (1<<1)
74 #define SND_PCM_IOPLUG_FLAG_BOUNDARY_WA (1<<2)
79 #define SND_PCM_IOPLUG_VERSION_MAJOR 1
80 #define SND_PCM_IOPLUG_VERSION_MINOR 0
81 #define SND_PCM_IOPLUG_VERSION_TINY 2
85 #define SND_PCM_IOPLUG_VERSION ((SND_PCM_IOPLUG_VERSION_MAJOR<<16) |\
86 (SND_PCM_IOPLUG_VERSION_MINOR<<8) |\
87 (SND_PCM_IOPLUG_VERSION_TINY))
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:1155
struct _snd_pcm_sw_params snd_pcm_sw_params_t
Definition: pcm.h:71
Definition: pcm_ioplug.h:48
snd_pcm_uframes_t snd_pcm_ioplug_avail(const snd_pcm_ioplug_t *const ioplug, const snd_pcm_uframes_t hw_ptr, const snd_pcm_uframes_t appl_ptr)
Get the available frames. This function can be used to calculate the the available frames before call...
Definition: pcm_ioplug.c:1255
volatile snd_pcm_uframes_t appl_ptr
Definition: pcm_ioplug.h:119
snd_pcm_state_t
Definition: pcm.h:303
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:1241
int(* drain)(snd_pcm_ioplug_t *io)
Definition: pcm_ioplug.h:178
unsigned int poll_events
Definition: pcm_ioplug.h:102
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:1224
uint8_t type
Definition: ump_msg.h:183
int snd_pcm_ioplug_delete(snd_pcm_ioplug_t *io)
Delete the ioplug instance.
Definition: pcm_ioplug.c:1126
int(* pause)(snd_pcm_ioplug_t *io, int enable)
Definition: pcm_ioplug.h:182
int(* poll_descriptors)(snd_pcm_ioplug_t *io, struct pollfd *pfd, unsigned int space)
Definition: pcm_ioplug.h:194
struct _snd_pcm_hw_params snd_pcm_hw_params_t
Definition: pcm.h:68
const snd_pcm_ioplug_callback_t * callback
Definition: pcm_ioplug.h:107
void * private_data
Definition: pcm_ioplug.h:111
int(* poll_revents)(snd_pcm_ioplug_t *io, struct pollfd *pfd, unsigned int nfds, unsigned short *revents)
Definition: pcm_ioplug.h:198
int nonblock
Definition: pcm_ioplug.h:121
int poll_fd
Definition: pcm_ioplug.h:101
Definition: pcm_ioplug.h:50
Definition: pcm_ioplug.h:90
snd_pcm_format_t
Definition: pcm.h:129
long snd_pcm_sframes_t
Definition: pcm.h:402
snd_pcm_uframes_t buffer_size
Definition: pcm_ioplug.h:128
Definition: pcm_ioplug.h:132
snd_pcm_uframes_t period_size
Definition: pcm_ioplug.h:127
Definition: pcm_ioplug.h:51
unsigned int version
Definition: pcm_ioplug.h:95
snd_pcm_uframes_t snd_pcm_ioplug_hw_avail(const snd_pcm_ioplug_t *const ioplug, const snd_pcm_uframes_t hw_ptr, const snd_pcm_uframes_t appl_ptr)
Get the available frames. This function can be used to calculate the the available frames before call...
Definition: pcm_ioplug.c:1270
struct _snd_output snd_output_t
Internal structure for an output object.
Definition: output.h:60
Definition: pcm_ioplug.h:52
int(* resume)(snd_pcm_ioplug_t *io)
Definition: pcm_ioplug.h:186
int(* hw_params)(snd_pcm_ioplug_t *io, snd_pcm_hw_params_t *params)
Definition: pcm_ioplug.h:162
snd_pcm_state_t state
Definition: pcm_ioplug.h:118
int(* set_chmap)(snd_pcm_ioplug_t *io, const snd_pcm_chmap_t *map)
Definition: pcm_ioplug.h:218
int(* close)(snd_pcm_ioplug_t *io)
Definition: pcm_ioplug.h:158
const char * name
Definition: pcm_ioplug.h:99
unsigned int rate
Definition: pcm_ioplug.h:126
int(* prepare)(snd_pcm_ioplug_t *io)
Definition: pcm_ioplug.h:174
void(* dump)(snd_pcm_ioplug_t *io, snd_output_t *out)
Definition: pcm_ioplug.h:202
snd_pcm_format_t format
Definition: pcm_ioplug.h:124
Definition: pcm_ioplug.h:53
int(* stop)(snd_pcm_ioplug_t *io)
Definition: pcm_ioplug.h:140
snd_pcm_ioplug_callback snd_pcm_ioplug_callback_t
Definition: pcm_ioplug.h:65
int(* sw_params)(snd_pcm_ioplug_t *io, snd_pcm_sw_params_t *params)
Definition: pcm_ioplug.h:170
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:1179
int(* hw_free)(snd_pcm_ioplug_t *io)
Definition: pcm_ioplug.h:166
unsigned int flags
Definition: pcm_ioplug.h:100
snd_pcm_access_t access
Definition: pcm_ioplug.h:123
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:1074
void snd_pcm_ioplug_params_reset(snd_pcm_ioplug_t *io)
Reset ioplug parameters.
Definition: pcm_ioplug.c:1138
Definition: pcm_ioplug.h:55
int(* start)(snd_pcm_ioplug_t *io)
Definition: pcm_ioplug.h:136
snd_pcm_sframes_t(* pointer)(snd_pcm_ioplug_t *io)
Definition: pcm_ioplug.h:147
unsigned int channels
Definition: pcm_ioplug.h:125
int(* poll_descriptors_count)(snd_pcm_ioplug_t *io)
Definition: pcm_ioplug.h:190
snd_pcm_stream_t stream
Definition: pcm_ioplug.h:117
int snd_pcm_ioplug_reinit_status(snd_pcm_ioplug_t *ioplug)
Reinitialize the poll and mmap status.
Definition: pcm_ioplug.c:1204
unsigned long snd_pcm_uframes_t
Definition: pcm.h:400
Definition: pcm_ioplug.h:54
snd_pcm_sframes_t(* transfer)(snd_pcm_ioplug_t *io, const snd_pcm_channel_area_t *areas, snd_pcm_uframes_t offset, snd_pcm_uframes_t size)
Definition: pcm_ioplug.h:151
snd_pcm_stream_t
Definition: pcm.h:105
Definition: pcm_ioplug.h:49
snd_pcm_t * pcm
Definition: pcm_ioplug.h:115
int(* delay)(snd_pcm_ioplug_t *io, snd_pcm_sframes_t *delayp)
Definition: pcm_ioplug.h:206
struct _snd_pcm snd_pcm_t
Definition: pcm.h:422
unsigned int mmap_rw
Definition: pcm_ioplug.h:103
volatile snd_pcm_uframes_t hw_ptr
Definition: pcm_ioplug.h:120
snd_pcm_access_t
Definition: pcm.h:114
snd_pcm_ioplug snd_pcm_ioplug_t
Definition: pcm_ioplug.h:64