• Home
  • Raw
  • Download

Lines Matching refs:ioplug

1074 int snd_pcm_ioplug_create(snd_pcm_ioplug_t *ioplug, const char *name,  in snd_pcm_ioplug_create()  argument
1081 assert(ioplug && ioplug->callback); in snd_pcm_ioplug_create()
1082 assert(ioplug->callback->start && in snd_pcm_ioplug_create()
1083 ioplug->callback->stop && in snd_pcm_ioplug_create()
1084 ioplug->callback->pointer); in snd_pcm_ioplug_create()
1087 if (ioplug->version < 0x010000 || in snd_pcm_ioplug_create()
1088 ioplug->version > SND_PCM_IOPLUG_VERSION) { in snd_pcm_ioplug_create()
1090 ioplug->version); in snd_pcm_ioplug_create()
1098 io->data = ioplug; in snd_pcm_ioplug_create()
1099 ioplug->state = SND_PCM_STATE_OPEN; in snd_pcm_ioplug_create()
1100 ioplug->stream = stream; in snd_pcm_ioplug_create()
1108 ioplug->pcm = pcm; in snd_pcm_ioplug_create()
1113 snd_pcm_set_hw_ptr(pcm, &ioplug->hw_ptr, -1, 0); in snd_pcm_ioplug_create()
1114 snd_pcm_set_appl_ptr(pcm, &ioplug->appl_ptr, -1, 0); in snd_pcm_ioplug_create()
1116 snd_pcm_ioplug_reinit_status(ioplug); in snd_pcm_ioplug_create()
1126 int snd_pcm_ioplug_delete(snd_pcm_ioplug_t *ioplug) in snd_pcm_ioplug_delete() argument
1128 return snd_pcm_close(ioplug->pcm); in snd_pcm_ioplug_delete()
1138 void snd_pcm_ioplug_params_reset(snd_pcm_ioplug_t *ioplug) in snd_pcm_ioplug_params_reset() argument
1140 ioplug_priv_t *io = ioplug->pcm->private_data; in snd_pcm_ioplug_params_reset()
1155 int snd_pcm_ioplug_set_param_list(snd_pcm_ioplug_t *ioplug, int type, unsigned int num_list, const … in snd_pcm_ioplug_set_param_list() argument
1157 ioplug_priv_t *io = ioplug->pcm->private_data; in snd_pcm_ioplug_set_param_list()
1179 int snd_pcm_ioplug_set_param_minmax(snd_pcm_ioplug_t *ioplug, int type, unsigned int min, unsigned … in snd_pcm_ioplug_set_param_minmax() argument
1181 ioplug_priv_t *io = ioplug->pcm->private_data; in snd_pcm_ioplug_set_param_minmax()
1204 int snd_pcm_ioplug_reinit_status(snd_pcm_ioplug_t *ioplug) in snd_pcm_ioplug_reinit_status() argument
1206 ioplug->pcm->poll_fd = ioplug->poll_fd; in snd_pcm_ioplug_reinit_status()
1207 ioplug->pcm->poll_events = ioplug->poll_events; in snd_pcm_ioplug_reinit_status()
1208 if (ioplug->flags & SND_PCM_IOPLUG_FLAG_MONOTONIC) in snd_pcm_ioplug_reinit_status()
1209 ioplug->pcm->tstamp_type = SND_PCM_TSTAMP_TYPE_MONOTONIC; in snd_pcm_ioplug_reinit_status()
1211 ioplug->pcm->tstamp_type = SND_PCM_TSTAMP_TYPE_GETTIMEOFDAY; in snd_pcm_ioplug_reinit_status()
1212 ioplug->pcm->mmap_rw = ioplug->mmap_rw; in snd_pcm_ioplug_reinit_status()
1224 const snd_pcm_channel_area_t *snd_pcm_ioplug_mmap_areas(snd_pcm_ioplug_t *ioplug) in snd_pcm_ioplug_mmap_areas() argument
1226 if (ioplug->mmap_rw) in snd_pcm_ioplug_mmap_areas()
1227 return snd_pcm_mmap_areas(ioplug->pcm); in snd_pcm_ioplug_mmap_areas()
1241 int snd_pcm_ioplug_set_state(snd_pcm_ioplug_t *ioplug, snd_pcm_state_t state) in snd_pcm_ioplug_set_state() argument
1243 ioplug->state = state; in snd_pcm_ioplug_set_state()
1255 snd_pcm_uframes_t snd_pcm_ioplug_avail(const snd_pcm_ioplug_t * const ioplug, in snd_pcm_ioplug_avail() argument
1259 return __snd_pcm_avail(ioplug->pcm, hw_ptr, appl_ptr); in snd_pcm_ioplug_avail()
1270 snd_pcm_uframes_t snd_pcm_ioplug_hw_avail(const snd_pcm_ioplug_t * const ioplug, in snd_pcm_ioplug_hw_avail() argument
1277 const snd_pcm_uframes_t user_avail = snd_pcm_ioplug_avail(ioplug, in snd_pcm_ioplug_hw_avail()
1281 if (user_avail > ioplug->pcm->buffer_size) { in snd_pcm_ioplug_hw_avail()
1286 return ioplug->pcm->buffer_size - user_avail; in snd_pcm_ioplug_hw_avail()