Searched defs:* (Results 551 - 575 of 61016) sorted by relevance

<<21222324252627282930>>

/netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/iserver/alsa-lib-1.0.26/src/pcm/
H A Dpcm_meter.c40 const char *_snd_module_pcm_meter = ""; variable
44 #define FREQUENCY macro
46 struct _snd_pcm_scope { struct
47 int enabled; member in struct:_snd_pcm_scope
48 char *name; member in struct:_snd_pcm_scope
49 const snd_pcm_scope_ops_t *ops; member in struct:_snd_pcm_scope
50 void *private_data; member in struct:_snd_pcm_scope
51 struct list_head list; member in struct:_snd_pcm_scope
54 typedef struct _snd_pcm_meter { struct
55 snd_pcm_generic_t gen; member in struct:_snd_pcm_meter
56 snd_pcm_uframes_t rptr; member in struct:_snd_pcm_meter
57 snd_pcm_uframes_t buf_size; member in struct:_snd_pcm_meter
58 snd_pcm_channel_area_t *buf_areas; member in struct:_snd_pcm_meter
59 snd_pcm_uframes_t now; member in struct:_snd_pcm_meter
60 unsigned char *buf; member in struct:_snd_pcm_meter
61 struct list_head scopes; member in struct:_snd_pcm_meter
62 int closed; member in struct:_snd_pcm_meter
63 int running; member in struct:_snd_pcm_meter
64 atomic_t reset; member in struct:_snd_pcm_meter
65 pthread_t thread; member in struct:_snd_pcm_meter
66 pthread_mutex_t update_mutex; member in struct:_snd_pcm_meter
67 pthread_mutex_t running_mutex; member in struct:_snd_pcm_meter
68 pthread_cond_t running_cond; member in struct:_snd_pcm_meter
69 struct timespec delay; member in struct:_snd_pcm_meter
70 void *dl_handle; member in struct:_snd_pcm_meter
71 } snd_pcm_meter_t; typedef in typeref:struct:_snd_pcm_meter
73 snd_pcm_meter_add_frames(snd_pcm_t *pcm, const snd_pcm_channel_area_t *areas, snd_pcm_uframes_t ptr, snd_pcm_uframes_t frames) argument
78 snd_pcm_meter_t *meter = pcm->private_data; local
80 snd_pcm_uframes_t n = frames; local
81 snd_pcm_uframes_t dst_offset = ptr % meter->buf_size; local
82 snd_pcm_uframes_t src_offset = ptr % pcm->buffer_size; local
83 snd_pcm_uframes_t dst_cont = meter->buf_size - dst_offset; local
84 snd_pcm_uframes_t src_cont = pcm->buffer_size - src_offset; local
99 snd_pcm_meter_update_main(snd_pcm_t *pcm) argument
101 snd_pcm_meter_t *meter = pcm->private_data; local
102 snd_pcm_sframes_t frames; local
103 snd_pcm_uframes_t rptr, old_rptr; local
104 const snd_pcm_channel_area_t *areas; local
105 int locked; local
123 snd_pcm_meter_update_scope(snd_pcm_t *pcm) argument
125 snd_pcm_meter_t *meter = pcm->private_data; local
126 snd_pcm_sframes_t frames; local
127 snd_pcm_uframes_t rptr, old_rptr; local
128 const snd_pcm_channel_area_t *areas; local
129 int reset = 0; local
155 snd_pcm_scope_remove(snd_pcm_scope_t *scope) argument
164 snd_pcm_scope_enable(snd_pcm_scope_t *scope) argument
166 int err; local
173 snd_pcm_scope_disable(snd_pcm_scope_t *scope) argument
181 snd_pcm_meter_thread(void *data) argument
183 snd_pcm_t *pcm = data; local
184 snd_pcm_meter_t *meter = pcm->private_data; local
185 snd_pcm_t *spcm = meter->gen.slave; local
186 struct list_head *pos; local
187 snd_pcm_scope_t *scope; local
188 int reset; local
194 snd_pcm_sframes_t now; local
195 snd_pcm_status_t status; local
196 int err; local
266 snd_pcm_meter_close(snd_pcm_t *pcm) argument
268 snd_pcm_meter_t *meter = pcm->private_data; local
269 struct list_head *pos, *npos; local
270 int err = 0; local
277 snd_pcm_scope_t *scope; local
287 snd_pcm_meter_prepare(snd_pcm_t *pcm) argument
289 snd_pcm_meter_t *meter = pcm->private_data; local
290 int err; local
302 snd_pcm_meter_reset(snd_pcm_t *pcm) argument
304 snd_pcm_meter_t *meter = pcm->private_data; local
305 int err = snd_pcm_reset(meter->gen.slave); local
313 snd_pcm_meter_start(snd_pcm_t *pcm) argument
315 snd_pcm_meter_t *meter = pcm->private_data; local
316 int err; local
325 snd_pcm_meter_rewind(snd_pcm_t *pcm, snd_pcm_uframes_t frames) argument
327 snd_pcm_meter_t *meter = pcm->private_data; local
328 snd_pcm_sframes_t err = snd_pcm_rewind(meter->gen.slave, frames); local
334 snd_pcm_meter_forward(snd_pcm_t *pcm, snd_pcm_uframes_t frames) argument
336 snd_pcm_meter_t *meter = pcm->private_data; local
337 snd_pcm_sframes_t err = INTERNAL(snd_pcm_forward)(meter->gen.slave, frames); local
343 snd_pcm_meter_mmap_commit(snd_pcm_t *pcm, snd_pcm_uframes_t offset, snd_pcm_uframes_t size) argument
347 snd_pcm_meter_t *meter = pcm->private_data; local
348 snd_pcm_uframes_t old_rptr = *pcm->appl.ptr; local
349 snd_pcm_sframes_t result = snd_pcm_mmap_commit(meter->gen.slave, offset, size); local
359 snd_pcm_meter_avail_update(snd_pcm_t *pcm) argument
361 snd_pcm_meter_t *meter = pcm->private_data; local
362 snd_pcm_sframes_t result = snd_pcm_avail_update(meter->gen.slave); local
370 snd_pcm_meter_hw_refine_cprepare(snd_pcm_t *pcm ATTRIBUTE_UNUSED, snd_pcm_hw_params_t *params) argument
372 int err; local
373 snd_pcm_access_mask_t access_mask = { SND_PCM_ACCBIT_SHM }; local
382 snd_pcm_meter_hw_refine_sprepare(snd_pcm_t *pcm ATTRIBUTE_UNUSED, snd_pcm_hw_params_t *sparams) argument
384 snd_pcm_access_mask_t saccess_mask = { SND_PCM_ACCBIT_MMAP }; local
391 snd_pcm_meter_hw_refine_schange(snd_pcm_t *pcm ATTRIBUTE_UNUSED, snd_pcm_hw_params_t *params, snd_pcm_hw_params_t *sparams) argument
394 int err; local
395 unsigned int links = ~SND_PCM_HW_PARBIT_ACCESS; local
402 snd_pcm_meter_hw_refine_cchange(snd_pcm_t *pcm ATTRIBUTE_UNUSED, snd_pcm_hw_params_t *params, snd_pcm_hw_params_t *sparams) argument
405 int err; local
406 unsigned int links = ~SND_PCM_HW_PARBIT_ACCESS; local
413 snd_pcm_meter_hw_refine_slave(snd_pcm_t *pcm, snd_pcm_hw_params_t *params) argument
415 snd_pcm_meter_t *meter = pcm->private_data; local
419 snd_pcm_meter_hw_params_slave(snd_pcm_t *pcm, snd_pcm_hw_params_t *params) argument
421 snd_pcm_meter_t *meter = pcm->private_data; local
425 snd_pcm_meter_hw_refine(snd_pcm_t *pcm, snd_pcm_hw_params_t *params) argument
435 snd_pcm_meter_hw_params(snd_pcm_t *pcm, snd_pcm_hw_params_t * params) argument
437 snd_pcm_meter_t *meter = pcm->private_data; local
438 unsigned int channel; local
439 snd_pcm_t *slave = meter->gen.slave; local
440 size_t buf_size_bytes; local
441 int err; local
464 snd_pcm_channel_area_t *a = &amp;meter->buf_areas[channel]; local
475 snd_pcm_meter_hw_free(snd_pcm_t *pcm) argument
477 snd_pcm_meter_t *meter = pcm->private_data; local
478 int err; local
492 snd_pcm_meter_dump(snd_pcm_t *pcm, snd_output_t *out) argument
494 snd_pcm_meter_t *meter = pcm->private_data; local
504 static const snd_pcm_ops_t snd_pcm_meter_ops = { variable
519 static const snd_pcm_fast_ops_t snd_pcm_meter_fast_ops = { variable
559 snd_pcm_meter_open(snd_pcm_t **pcmp, const char *name, unsigned int frequency, snd_pcm_t *slave, int close_slave) argument
562 snd_pcm_t *pcm; local
563 snd_pcm_meter_t *meter; local
564 int err; local
599 snd_pcm_meter_add_scope_conf(snd_pcm_t *pcm, const char *name, snd_config_t *root, snd_config_t *conf) argument
602 char buf[256]; local
603 snd_config_iterator_t i, next; local
604 const char *id; local
605 const char *lib = NULL, *open_name = NULL, *str = NULL; local
606 snd_config_t *c, *type_conf = NULL; local
609 snd_pcm_meter_t *meter = pcm->private_data; local
610 void *h = NULL; local
611 int err; local
635 snd_config_for_each(i, next, type_conf) { function
636 snd_config_t *n = snd_config_iterator_entry(i); local
637 const char *id; local
748 _snd_pcm_meter_open(snd_pcm_t **pcmp, const char *name, snd_config_t *root, snd_config_t *conf, snd_pcm_stream_t stream, int mode) argument
752 snd_config_iterator_t i, next; local
753 int err; local
754 snd_pcm_t *spcm; local
755 snd_config_t *slave = NULL, *sconf; local
756 long frequency = -1; local
757 snd_config_t *scopes = NULL; local
758 snd_config_for_each(i, next, conf) { function
759 snd_config_t *n = snd_config_iterator_entry(i); local
760 const char *id; local
806 snd_config_for_each(i, next, scopes) { function
807 snd_config_t *n = snd_config_iterator_entry(i); local
808 const char *id, *str; local
838 snd_pcm_meter_add_scope(snd_pcm_t *pcm, snd_pcm_scope_t *scope) argument
840 snd_pcm_meter_t *meter; local
853 snd_pcm_meter_search_scope(snd_pcm_t *pcm, const char *name) argument
855 snd_pcm_meter_t *meter; local
856 struct list_head *pos; local
860 snd_pcm_scope_t *scope; local
873 snd_pcm_meter_get_bufsize(snd_pcm_t *pcm) argument
875 snd_pcm_meter_t *meter; local
887 snd_pcm_meter_get_channels(snd_pcm_t *pcm) argument
889 snd_pcm_meter_t *meter; local
901 snd_pcm_meter_get_rate(snd_pcm_t *pcm) argument
903 snd_pcm_meter_t *meter; local
915 snd_pcm_meter_get_now(snd_pcm_t *pcm) argument
917 snd_pcm_meter_t *meter; local
929 snd_pcm_meter_get_boundary(snd_pcm_t *pcm) argument
931 snd_pcm_meter_t *meter; local
943 snd_pcm_scope_set_name(snd_pcm_scope_t *scope, const char *val) argument
953 snd_pcm_scope_get_name(snd_pcm_scope_t *scope) argument
963 snd_pcm_scope_set_ops(snd_pcm_scope_t *scope, const snd_pcm_scope_ops_t *val) argument
973 snd_pcm_scope_get_callback_private(snd_pcm_scope_t *scope) argument
983 snd_pcm_scope_set_callback_private(snd_pcm_scope_t *scope, void *val) argument
989 typedef struct _snd_pcm_scope_s16 { struct
990 snd_pcm_t *pcm; member in struct:_snd_pcm_scope_s16
991 snd_pcm_adpcm_state_t *adpcm_states; member in struct:_snd_pcm_scope_s16
992 unsigned int index; member in struct:_snd_pcm_scope_s16
993 snd_pcm_uframes_t old; member in struct:_snd_pcm_scope_s16
994 int16_t *buf; member in struct:_snd_pcm_scope_s16
995 snd_pcm_channel_area_t *buf_areas; member in struct:_snd_pcm_scope_s16
996 } snd_pcm_scope_s16_t; typedef in typeref:struct:_snd_pcm_scope_s16
998 s16_enable(snd_pcm_scope_t *scope) argument
1000 snd_pcm_scope_s16_t *s16 = scope->private_data; local
1001 snd_pcm_meter_t *meter = s16->pcm->private_data; local
1002 snd_pcm_t *spcm = meter->gen.slave; local
1003 snd_pcm_channel_area_t *a; local
1004 unsigned int c; local
1005 int idx; local
1062 s16_disable(snd_pcm_scope_t *scope) argument
1064 snd_pcm_scope_s16_t *s16 = scope->private_data; local
1073 s16_close(snd_pcm_scope_t *scope) argument
1075 snd_pcm_scope_s16_t *s16 = scope->private_data; local
1079 s16_start(snd_pcm_scope_t *scope ATTRIBUTE_UNUSED) argument
1083 s16_stop(snd_pcm_scope_t *scope ATTRIBUTE_UNUSED) argument
1087 s16_update(snd_pcm_scope_t *scope) argument
1089 snd_pcm_scope_s16_t *s16 = scope->private_data; local
1090 snd_pcm_meter_t *meter = s16->pcm->private_data; local
1091 snd_pcm_t *spcm = meter->gen.slave; local
1092 snd_pcm_sframes_t size; local
1093 snd_pcm_uframes_t offset; local
1099 snd_pcm_uframes_t frames = size; local
1100 snd_pcm_uframes_t cont = meter->buf_size - offset; local
1139 s16_reset(snd_pcm_scope_t *scope) argument
1141 snd_pcm_scope_s16_t *s16 = scope->private_data; local
1142 snd_pcm_meter_t *meter = s16->pcm->private_data; local
1146 static const snd_pcm_scope_ops_t s16_ops = { variable
1169 snd_pcm_scope_s16_open(snd_pcm_t *pcm, const char *name, snd_pcm_scope_t **scopep) argument
1172 snd_pcm_meter_t *meter; local
1173 snd_pcm_scope_t *scope; local
1174 snd_pcm_scope_s16_t *s16; local
1201 snd_pcm_scope_s16_get_channel_buffer(snd_pcm_scope_t *scope, unsigned int channel) argument
1204 snd_pcm_scope_s16_t *s16; local
1205 snd_pcm_meter_t *meter; local
1220 snd_pcm_scope_malloc(snd_pcm_scope_t **ptr) argument
[all...]
H A Dpcm_misc.c35 snd_pcm_format_signed(snd_pcm_format_t format) argument
76 snd_pcm_format_unsigned(snd_pcm_format_t format) argument
78 int val; local
91 snd_pcm_format_linear(snd_pcm_format_t format) argument
101 snd_pcm_format_float(snd_pcm_format_t format) argument
119 snd_pcm_format_little_endian(snd_pcm_format_t format) argument
164 snd_pcm_format_big_endian(snd_pcm_format_t format) argument
166 int val; local
179 snd_pcm_format_cpu_endian(snd_pcm_format_t format) argument
193 snd_pcm_format_width(snd_pcm_format_t format) argument
251 snd_pcm_format_physical_width(snd_pcm_format_t format) argument
307 snd_pcm_format_size(snd_pcm_format_t format, size_t samples) argument
366 snd_pcm_format_silence_64(snd_pcm_format_t format) argument
439 float f[2]; member in union:__anon1485
440 u_int64_t i; member in union:__anon1485
441 } u; local
452 double f; member in union:__anon1486
453 u_int64_t i; member in union:__anon1486
454 } u; local
465 float f[2]; member in union:__anon1487
466 u_int64_t i; member in union:__anon1487
467 } u; local
478 double f; member in union:__anon1488
479 u_int64_t i; member in union:__anon1488
480 } u; local
512 snd_pcm_format_silence_32(snd_pcm_format_t format) argument
523 snd_pcm_format_silence_16(snd_pcm_format_t format) argument
534 snd_pcm_format_silence(snd_pcm_format_t format) argument
547 snd_pcm_format_set_silence(snd_pcm_format_t format, void *data, unsigned int samples) argument
553 u_int8_t silence = snd_pcm_format_silence_64(format); local
554 unsigned int samples1; local
562 u_int8_t silence = snd_pcm_format_silence_64(format); local
567 u_int16_t silence = snd_pcm_format_silence_64(format); local
568 u_int16_t *pdata = (u_int16_t *)data; local
578 u_int32_t silence = snd_pcm_format_silence_64(format); local
579 u_int8_t *pdata = (u_int8_t *)data; local
598 u_int32_t silence = snd_pcm_format_silence_64(format); local
599 u_int32_t *pdata = (u_int32_t *)data; local
609 u_int64_t silence = snd_pcm_format_silence_64(format); local
610 u_int64_t *pdata = (u_int64_t *)data; local
626 static const int linear_formats[4][2][2] = { variable
637 static const int linear24_formats[3][2][2] = { variable
654 snd_pcm_build_linear_format(int width, int pwidth, int unsignd, int big_endian) argument
707 snd_pcm_parse_control_id(snd_config_t *conf, snd_ctl_elem_id_t *ctl_id, int *cardp, int *cchannelsp, int *hwctlp) argument
710 snd_config_iterator_t i, next; local
711 int iface = SND_CTL_ELEM_IFACE_MIXER; local
712 const char *name = NULL; local
713 long index = 0; local
714 long device = -1; local
715 long subdevice = -1; local
716 int err; local
723 snd_config_for_each(i, next, conf) { function
724 snd_config_t *n = snd_config_iterator_entry(i); local
725 const char *id; local
731 const char *str; local
732 long v; local
749 const char *ptr; local
790 long v; local
[all...]
H A Dpcm_mmap.c29 size_t page_size(void) function
31 long s = sysconf(_SC_PAGE_SIZE); local
36 page_align(size_t size) argument
38 size_t r; local
39 long psz = page_size(); local
46 page_ptr(size_t object_offset, size_t object_size, size_t *offset, size_t *mmap_offset) argument
48 size_t r; local
49 long psz = page_size(); local
65 snd_pcm_mmap_appl_backward(snd_pcm_t *pcm, snd_pcm_uframes_t frames) argument
67 snd_pcm_sframes_t appl_ptr = *pcm->appl.ptr; local
74 snd_pcm_mmap_appl_forward(snd_pcm_t *pcm, snd_pcm_uframes_t frames) argument
76 snd_pcm_uframes_t appl_ptr = *pcm->appl.ptr; local
83 snd_pcm_mmap_hw_backward(snd_pcm_t *pcm, snd_pcm_uframes_t frames) argument
85 snd_pcm_sframes_t hw_ptr = *pcm->hw.ptr; local
92 snd_pcm_mmap_hw_forward(snd_pcm_t *pcm, snd_pcm_uframes_t frames) argument
94 snd_pcm_uframes_t hw_ptr = *pcm->hw.ptr; local
101 snd_pcm_mmap_write_areas(snd_pcm_t *pcm, const snd_pcm_channel_area_t *areas, snd_pcm_uframes_t offset, snd_pcm_uframes_t size) argument
106 snd_pcm_uframes_t xfer = 0; local
113 const snd_pcm_channel_area_t *pcm_areas; local
114 snd_pcm_uframes_t pcm_offset; local
115 snd_pcm_uframes_t frames = size; local
116 snd_pcm_sframes_t result; local
133 snd_pcm_mmap_read_areas(snd_pcm_t *pcm, const snd_pcm_channel_area_t *areas, snd_pcm_uframes_t offset, snd_pcm_uframes_t size) argument
138 snd_pcm_uframes_t xfer = 0; local
145 const snd_pcm_channel_area_t *pcm_areas; local
146 snd_pcm_uframes_t pcm_offset; local
147 snd_pcm_uframes_t frames = size; local
148 snd_pcm_sframes_t result; local
182 snd_pcm_mmap_writei(snd_pcm_t *pcm, const void *buffer, snd_pcm_uframes_t size) argument
184 snd_pcm_channel_area_t areas[pcm->channels]; local
207 snd_pcm_mmap_writen(snd_pcm_t *pcm, void **bufs, snd_pcm_uframes_t size) argument
209 snd_pcm_channel_area_t areas[pcm->channels]; local
232 snd_pcm_mmap_readi(snd_pcm_t *pcm, void *buffer, snd_pcm_uframes_t size) argument
234 snd_pcm_channel_area_t areas[pcm->channels]; local
257 snd_pcm_mmap_readn(snd_pcm_t *pcm, void **bufs, snd_pcm_uframes_t size) argument
259 snd_pcm_channel_area_t areas[pcm->channels]; local
265 snd_pcm_channel_info_shm(snd_pcm_t *pcm, snd_pcm_channel_info_t *info, int shmid) argument
292 snd_pcm_mmap(snd_pcm_t *pcm) argument
294 int err; local
295 unsigned int c; local
320 snd_pcm_channel_info_t *i = &pcm->mmap_channels[c]; local
332 snd_pcm_channel_info_t *i = &pcm->mmap_channels[c]; local
333 snd_pcm_channel_area_t *a = &amp;pcm->running_areas[c]; local
334 char *ptr; local
335 size_t size; local
336 unsigned int c1; local
345 snd_pcm_channel_info_t *i1 = &pcm->mmap_channels[c1]; local
346 size_t s; local
381 int id; local
406 unsigned int c1; local
408 snd_pcm_channel_info_t *i1 = &pcm->mmap_channels[c1]; local
436 snd_pcm_channel_info_t *i1 = &pcm->mmap_channels[c1]; local
466 snd_pcm_munmap(snd_pcm_t *pcm) argument
468 int err; local
469 unsigned int c; local
478 snd_pcm_channel_info_t *i = &pcm->mmap_channels[c]; local
479 unsigned int c1; local
480 size_t size = i->first + i->step * (pcm->buffer_size - 1) + pcm->sample_bits; local
484 snd_pcm_channel_info_t *i1 = &pcm->mmap_channels[c1]; local
485 size_t s; local
510 unsigned int c1; local
512 snd_pcm_channel_info_t *i1 = &pcm->mmap_channels[c1]; local
539 snd_pcm_write_mmap(snd_pcm_t *pcm, snd_pcm_uframes_t offset, snd_pcm_uframes_t size) argument
542 snd_pcm_uframes_t xfer = 0; local
543 snd_pcm_sframes_t err = 0; local
547 snd_pcm_uframes_t frames = size - xfer; local
548 snd_pcm_uframes_t cont = pcm->buffer_size - offset; local
554 const snd_pcm_channel_area_t *a = snd_pcm_mmap_areas(pcm); local
555 const char *buf = snd_pcm_channel_area_addr(a, offset); local
563 unsigned int channels = pcm->channels; local
564 unsigned int c; local
565 void *bufs[channels]; local
566 const snd_pcm_channel_area_t *areas = snd_pcm_mmap_areas(pcm); local
568 const snd_pcm_channel_area_t *a = &amp;areas[c]; local
590 snd_pcm_read_mmap(snd_pcm_t *pcm, snd_pcm_uframes_t offset, snd_pcm_uframes_t size) argument
593 snd_pcm_uframes_t xfer = 0; local
594 snd_pcm_sframes_t err = 0; local
598 snd_pcm_uframes_t frames = size - xfer; local
599 snd_pcm_uframes_t cont = pcm->buffer_size - offset; local
605 const snd_pcm_channel_area_t *a = snd_pcm_mmap_areas(pcm); local
606 char *buf = snd_pcm_channel_area_addr(a, offset); local
614 snd_pcm_uframes_t channels = pcm->channels; local
615 unsigned int c; local
616 void *bufs[channels]; local
617 const snd_pcm_channel_area_t *areas = snd_pcm_mmap_areas(pcm); local
619 const snd_pcm_channel_area_t *a = &amp;areas[c]; local
[all...]
H A Dpcm_mmap_emul.c34 const char *_snd_module_pcm_mmap_emul = ""; variable
43 snd_pcm_generic_t gen; member in struct:__anon1489
44 unsigned int mmap_emul :1; member in struct:__anon1489
45 snd_pcm_uframes_t hw_ptr; member in struct:__anon1489
46 snd_pcm_uframes_t appl_ptr; member in struct:__anon1489
47 snd_pcm_uframes_t start_threshold; member in struct:__anon1489
48 } mmap_emul_t; typedef in typeref:struct:__anon1489
55 snd_pcm_mmap_emul_hw_refine(snd_pcm_t *pcm, snd_pcm_hw_params_t *params) argument
58 mmap_emul_t *map = pcm->private_data; local
59 int err = 0; local
60 snd_pcm_access_mask_t oldmask = local
62 snd_pcm_access_mask_t mask; local
63 const snd_mask_t *pmask; local
68 snd_pcm_hw_params_t new = *params; local
153 snd_pcm_mmap_emul_hw_params(snd_pcm_t *pcm, snd_pcm_hw_params_t *params) argument
156 mmap_emul_t *map = pcm->private_data; local
157 snd_pcm_hw_params_t old = *params; local
158 snd_pcm_access_t access; local
159 snd_pcm_access_mask_t oldmask; local
160 snd_pcm_access_mask_t *pmask; local
161 int err; local
209 snd_pcm_mmap_emul_sw_params(snd_pcm_t *pcm, snd_pcm_sw_params_t *params) argument
212 mmap_emul_t *map = pcm->private_data; local
213 int err; local
230 snd_pcm_mmap_emul_prepare(snd_pcm_t *pcm) argument
232 mmap_emul_t *map = pcm->private_data; local
233 int err; local
242 snd_pcm_mmap_emul_reset(snd_pcm_t *pcm) argument
244 mmap_emul_t *map = pcm->private_data; local
245 int err; local
255 snd_pcm_mmap_emul_rewind(snd_pcm_t *pcm, snd_pcm_uframes_t frames) argument
264 snd_pcm_mmap_emul_forward(snd_pcm_t *pcm, snd_pcm_uframes_t frames) argument
274 sync_slave_write(snd_pcm_t *pcm) argument
276 mmap_emul_t *map = pcm->private_data; local
277 snd_pcm_t *slave = map->gen.slave; local
278 snd_pcm_uframes_t offset; local
279 snd_pcm_sframes_t size; local
297 sync_slave_read(snd_pcm_t *pcm) argument
299 mmap_emul_t *map = pcm->private_data; local
300 snd_pcm_t *slave = map->gen.slave; local
301 snd_pcm_uframes_t offset; local
302 snd_pcm_sframes_t size; local
317 snd_pcm_mmap_emul_mmap_commit(snd_pcm_t *pcm, snd_pcm_uframes_t offset, snd_pcm_uframes_t size) argument
320 mmap_emul_t *map = pcm->private_data; local
321 snd_pcm_t *slave = map->gen.slave; local
331 snd_pcm_mmap_emul_avail_update(snd_pcm_t *pcm) argument
333 mmap_emul_t *map = pcm->private_data; local
334 snd_pcm_t *slave = map->gen.slave; local
335 snd_pcm_sframes_t avail; local
345 snd_pcm_mmap_emul_dump(snd_pcm_t *pcm, snd_output_t *out) argument
347 mmap_emul_t *map = pcm->private_data; local
358 static const snd_pcm_ops_t snd_pcm_mmap_emul_ops = { variable
373 static const snd_pcm_fast_ops_t snd_pcm_mmap_emul_fast_ops = { variable
405 __snd_pcm_mmap_emul_open(snd_pcm_t **pcmp, const char *name, snd_pcm_t *slave, int close_slave) argument
408 snd_pcm_t *pcm; local
409 mmap_emul_t *map; local
410 int err; local
469 _snd_pcm_mmap_emul_open(snd_pcm_t **pcmp, const char *name, snd_config_t *root ATTRIBUTE_UNUSED, snd_config_t *conf, snd_pcm_stream_t stream, int mode) argument
474 snd_config_iterator_t i, next; local
475 int err; local
476 snd_pcm_t *spcm; local
477 snd_config_t *slave = NULL, *sconf; local
479 snd_config_for_each(i, next, conf) { function
480 snd_config_t *n = snd_config_iterator_entry(i); local
481 const char *id; local
[all...]
H A Dpcm_mulaw.c37 const char *_snd_module_pcm_mulaw = ""; variable
42 typedef void (*mulaw_f)(const snd_pcm_channel_area_t *src_areas, typedef
51 snd_pcm_plugin_t plug; member in struct:__anon1490
52 unsigned int getput_idx; member in struct:__anon1490
53 mulaw_f func; member in struct:__anon1490
54 snd_pcm_format_t sformat; member in struct:__anon1490
55 } snd_pcm_mulaw_t; typedef in typeref:struct:__anon1490
59 val_seg(int val) argument
61 int r = 0; local
106 s16_to_ulaw(int pcm_val) argument
108 int mask; local
109 int seg; local
110 unsigned char uval; local
142 ulaw_to_s16(unsigned char u_val) argument
144 int t; local
161 snd_pcm_mulaw_decode(const snd_pcm_channel_area_t *dst_areas, snd_pcm_uframes_t dst_offset, const snd_pcm_channel_area_t *src_areas, snd_pcm_uframes_t src_offset, unsigned int channels, snd_pcm_uframes_t frames, unsigned int putidx) argument
168 #define PUT16_LABELS macro
170 #undef PUT16_LABELS macro
171 void *put = put16_labels[putidx]; local
172 unsigned int channel; local
174 const unsigned char *src; local
175 char *dst; local
176 int src_step, dst_step; local
177 snd_pcm_uframes_t frames1; local
178 const snd_pcm_channel_area_t *src_area = &src_areas[channel]; local
179 const snd_pcm_channel_area_t *dst_area = &dst_areas[channel]; local
186 int16_t sample = ulaw_to_s16(*src); local
188 #define PUT16_END macro
190 #undef PUT16_END macro
198 snd_pcm_mulaw_encode(const snd_pcm_channel_area_t *dst_areas, snd_pcm_uframes_t dst_offset, const snd_pcm_channel_area_t *src_areas, snd_pcm_uframes_t src_offset, unsigned int channels, snd_pcm_uframes_t frames, unsigned int getidx) argument
205 #define GET16_LABELS macro
207 #undef GET16_LABELS macro
208 void *get = get16_labels[getidx]; local
209 unsigned int channel; local
210 int16_t sample = 0; local
212 const char *src; local
213 char *dst; local
214 int src_step, dst_step; local
215 snd_pcm_uframes_t frames1; local
216 const snd_pcm_channel_area_t *src_area = &src_areas[channel]; local
217 const snd_pcm_channel_area_t *dst_area = &dst_areas[channel]; local
225 #define GET16_END macro
227 #undef GET16_END macro
238 snd_pcm_mulaw_hw_refine_cprepare(snd_pcm_t *pcm, snd_pcm_hw_params_t *params) argument
240 snd_pcm_mulaw_t *mulaw = pcm->private_data; local
241 int err; local
242 snd_pcm_access_mask_t access_mask = { SND_PCM_ACCBIT_SHM }; local
248 snd_pcm_format_mask_t format_mask= { SND_PCM_FMTBIT_LINEAR }; local
262 snd_pcm_mulaw_hw_refine_sprepare(snd_pcm_t *pcm, snd_pcm_hw_params_t *sparams) argument
264 snd_pcm_mulaw_t *mulaw = pcm->private_data; local
265 snd_pcm_access_mask_t saccess_mask = { SND_PCM_ACCBIT_MMAP }; local
274 snd_pcm_mulaw_hw_refine_schange(snd_pcm_t *pcm ATTRIBUTE_UNUSED, snd_pcm_hw_params_t *params, snd_pcm_hw_params_t *sparams) argument
277 int err; local
278 unsigned int links = (SND_PCM_HW_PARBIT_CHANNELS | local
292 snd_pcm_mulaw_hw_refine_cchange(snd_pcm_t *pcm ATTRIBUTE_UNUSED, snd_pcm_hw_params_t *params, snd_pcm_hw_params_t *sparams) argument
295 int err; local
296 unsigned int links = (SND_PCM_HW_PARBIT_CHANNELS | local
310 snd_pcm_mulaw_hw_refine(snd_pcm_t *pcm, snd_pcm_hw_params_t *params) argument
320 snd_pcm_mulaw_hw_params(snd_pcm_t *pcm, snd_pcm_hw_params_t * params) argument
322 snd_pcm_mulaw_t *mulaw = pcm->private_data; local
323 snd_pcm_format_t format; local
324 int err = snd_pcm_hw_params_slave(pcm, params, local
357 snd_pcm_mulaw_write_areas(snd_pcm_t *pcm, const snd_pcm_channel_area_t *areas, snd_pcm_uframes_t offset, snd_pcm_uframes_t size, const snd_pcm_channel_area_t *slave_areas, snd_pcm_uframes_t slave_offset, snd_pcm_uframes_t *slave_sizep) argument
365 snd_pcm_mulaw_t *mulaw = pcm->private_data; local
377 snd_pcm_mulaw_read_areas(snd_pcm_t *pcm, const snd_pcm_channel_area_t *areas, snd_pcm_uframes_t offset, snd_pcm_uframes_t size, const snd_pcm_channel_area_t *slave_areas, snd_pcm_uframes_t slave_offset, snd_pcm_uframes_t *slave_sizep) argument
385 snd_pcm_mulaw_t *mulaw = pcm->private_data; local
396 snd_pcm_mulaw_dump(snd_pcm_t *pcm, snd_output_t *out) argument
398 snd_pcm_mulaw_t *mulaw = pcm->private_data; local
409 static const snd_pcm_ops_t snd_pcm_mulaw_ops = { variable
436 snd_pcm_mulaw_open(snd_pcm_t **pcmp, const char *name, snd_pcm_format_t sformat, snd_pcm_t *slave, int close_slave) argument
438 snd_pcm_t *pcm; local
439 snd_pcm_mulaw_t *mulaw; local
440 int err; local
520 _snd_pcm_mulaw_open(snd_pcm_t **pcmp, const char *name, snd_config_t *root, snd_config_t *conf, snd_pcm_stream_t stream, int mode) argument
524 snd_config_iterator_t i, next; local
525 int err; local
526 snd_pcm_t *spcm; local
527 snd_config_t *slave = NULL, *sconf; local
528 snd_pcm_format_t sformat; local
529 snd_config_for_each(i, next, conf) { function
530 snd_config_t *n = snd_config_iterator_entry(i); local
531 const char *id; local
[all...]
H A Dpcm_multi.c39 const char *_snd_module_pcm_multi = ""; variable
45 snd_pcm_t *pcm; member in struct:__anon1491
46 unsigned int channels_count; member in struct:__anon1491
47 int close_slave; member in struct:__anon1491
48 snd_pcm_t *linked; member in struct:__anon1491
49 } snd_pcm_multi_slave_t; typedef in typeref:struct:__anon1491
52 int slave_idx; member in struct:__anon1492
53 unsigned int slave_channel; member in struct:__anon1492
54 } snd_pcm_multi_channel_t; typedef in typeref:struct:__anon1492
57 unsigned int slaves_count; member in struct:__anon1493
58 unsigned int master_slave; member in struct:__anon1493
59 snd_pcm_multi_slave_t *slaves; member in struct:__anon1493
60 unsigned int channels_count; member in struct:__anon1493
61 snd_pcm_multi_channel_t *channels; member in struct:__anon1493
62 } snd_pcm_multi_t; typedef in typeref:struct:__anon1493
66 snd_pcm_multi_close(snd_pcm_t *pcm) argument
68 snd_pcm_multi_t *multi = pcm->private_data; local
69 unsigned int i; local
70 int ret = 0; local
72 snd_pcm_multi_slave_t *slave = &multi->slaves[i]; local
74 int err = snd_pcm_close(slave->pcm); local
85 snd_pcm_multi_nonblock(snd_pcm_t *pcm ATTRIBUTE_UNUSED, int nonblock ATTRIBUTE_UNUSED) argument
90 snd_pcm_multi_async(snd_pcm_t *pcm, int sig, pid_t pid) argument
92 snd_pcm_multi_t *multi = pcm->private_data; local
93 snd_pcm_t *slave_0 = multi->slaves[multi->master_slave].pcm; local
97 snd_pcm_multi_poll_descriptors_count(snd_pcm_t *pcm) argument
99 snd_pcm_multi_t *multi = pcm->private_data; local
100 snd_pcm_t *slave_0 = multi->slaves[multi->master_slave].pcm; local
104 snd_pcm_multi_poll_descriptors(snd_pcm_t *pcm, struct pollfd *pfds, unsigned int space) argument
106 snd_pcm_multi_t *multi = pcm->private_data; local
107 snd_pcm_t *slave; local
108 snd_pcm_t *slave_0 = multi->slaves[multi->master_slave].pcm; local
109 int err; local
110 unsigned int i; local
124 snd_pcm_multi_poll_revents(snd_pcm_t *pcm, struct pollfd *pfds, unsigned int nfds, unsigned short *revents) argument
126 snd_pcm_multi_t *multi = pcm->private_data; local
127 snd_pcm_t *slave_0 = multi->slaves[multi->master_slave].pcm; local
131 snd_pcm_multi_info(snd_pcm_t *pcm, snd_pcm_info_t *info) argument
133 snd_pcm_multi_t *multi = pcm->private_data; local
134 int err, n; local
145 snd_pcm_multi_hw_refine_cprepare(snd_pcm_t *pcm, snd_pcm_hw_params_t *params) argument
147 snd_pcm_multi_t *multi = pcm->private_data; local
148 snd_pcm_access_mask_t access_mask; local
149 int err; local
164 snd_pcm_multi_hw_refine_sprepare(snd_pcm_t *pcm, unsigned int slave_idx, snd_pcm_hw_params_t *sparams) argument
167 snd_pcm_multi_t *multi = pcm->private_data; local
168 snd_pcm_multi_slave_t *slave = &multi->slaves[slave_idx]; local
169 snd_pcm_access_mask_t saccess_mask = { SND_PCM_ACCBIT_MMAP }; local
178 snd_pcm_multi_hw_refine_schange(snd_pcm_t *pcm ATTRIBUTE_UNUSED, unsigned int slave_idx ATTRIBUTE_UNUSED, snd_pcm_hw_params_t *params, snd_pcm_hw_params_t *sparams) argument
183 int err; local
184 unsigned int links = (SND_PCM_HW_PARBIT_FORMAT | local
193 const snd_pcm_access_mask_t *access_mask = snd_pcm_hw_param_get_mask(params, SND_PCM_HW_PARAM_ACCESS); local
197 snd_pcm_access_mask_t saccess_mask; local
211 snd_pcm_multi_hw_refine_cchange(snd_pcm_t *pcm ATTRIBUTE_UNUSED, unsigned int slave_idx ATTRIBUTE_UNUSED, snd_pcm_hw_params_t *params, snd_pcm_hw_params_t *sparams) argument
216 int err; local
217 unsigned int links = (SND_PCM_HW_PARBIT_FORMAT | local
226 snd_pcm_access_mask_t access_mask; local
227 const snd_pcm_access_mask_t *saccess_mask = snd_pcm_hw_param_get_mask(sparams, SND_PCM_HW_PARAM_ACCESS); local
246 snd_pcm_multi_hw_refine_slave(snd_pcm_t *pcm, unsigned int slave_idx, snd_pcm_hw_params_t *sparams) argument
250 snd_pcm_multi_t *multi = pcm->private_data; local
251 snd_pcm_t *slave = multi->slaves[slave_idx].pcm; local
255 snd_pcm_multi_hw_refine(snd_pcm_t *pcm, snd_pcm_hw_params_t *params) argument
257 snd_pcm_multi_t *multi = pcm->private_data; local
258 unsigned int k; local
259 snd_pcm_hw_params_t sparams[multi->slaves_count]; local
260 int err; local
261 unsigned int cmask, changed; local
296 snd_pcm_multi_hw_params_slave(snd_pcm_t *pcm, unsigned int slave_idx, snd_pcm_hw_params_t *sparams) argument
300 snd_pcm_multi_t *multi = pcm->private_data; local
301 snd_pcm_t *slave = multi->slaves[slave_idx].pcm; local
302 int err = snd_pcm_hw_params(slave, sparams); local
320 reset_links(snd_pcm_multi_t *multi) argument
322 unsigned int i; local
335 snd_pcm_multi_hw_params(snd_pcm_t *pcm, snd_pcm_hw_params_t *params) argument
337 snd_pcm_multi_t *multi = pcm->private_data; local
338 unsigned int i; local
339 snd_pcm_hw_params_t sparams[multi->slaves_count]; local
340 int err; local
356 snd_pcm_multi_hw_free(snd_pcm_t *pcm) argument
358 snd_pcm_multi_t *multi = pcm->private_data; local
359 unsigned int i; local
360 int err = 0; local
362 snd_pcm_t *slave = multi->slaves[i].pcm; local
363 int e = snd_pcm_hw_free(slave); local
376 snd_pcm_multi_sw_params(snd_pcm_t *pcm, snd_pcm_sw_params_t *params) argument
378 snd_pcm_multi_t *multi = pcm->private_data; local
379 unsigned int i; local
380 int err; local
382 snd_pcm_t *slave = multi->slaves[i].pcm; local
390 snd_pcm_multi_status(snd_pcm_t *pcm, snd_pcm_status_t *status) argument
392 snd_pcm_multi_t *multi = pcm->private_data; local
393 snd_pcm_t *slave = multi->slaves[multi->master_slave].pcm; local
397 snd_pcm_multi_state(snd_pcm_t *pcm) argument
399 snd_pcm_multi_t *multi = pcm->private_data; local
400 snd_pcm_t *slave = multi->slaves[multi->master_slave].pcm; local
404 snd_pcm_multi_hwsync(snd_pcm_t *pcm) argument
406 snd_pcm_multi_t *multi = pcm->private_data; local
407 snd_pcm_t *slave = multi->slaves[multi->master_slave].pcm; local
411 snd_pcm_multi_delay(snd_pcm_t *pcm, snd_pcm_sframes_t *delayp) argument
413 snd_pcm_multi_t *multi = pcm->private_data; local
414 snd_pcm_t *slave = multi->slaves[multi->master_slave].pcm; local
418 snd_pcm_multi_avail_update(snd_pcm_t *pcm) argument
420 snd_pcm_multi_t *multi = pcm->private_data; local
421 snd_pcm_sframes_t ret = LONG_MAX; local
422 unsigned int i; local
424 snd_pcm_sframes_t avail; local
434 snd_pcm_multi_htimestamp(snd_pcm_t *pcm, snd_pcm_uframes_t *avail, snd_htimestamp_t *tstamp) argument
437 snd_pcm_multi_t *multi = pcm->private_data; local
438 snd_pcm_t *slave = multi->slaves[multi->master_slave].pcm; local
442 snd_pcm_multi_prepare(snd_pcm_t *pcm) argument
444 snd_pcm_multi_t *multi = pcm->private_data; local
445 int result = 0, err; local
446 unsigned int i; local
458 snd_pcm_multi_reset(snd_pcm_t *pcm) argument
460 snd_pcm_multi_t *multi = pcm->private_data; local
461 int result = 0, err; local
462 unsigned int i; local
476 snd_pcm_multi_start(snd_pcm_t *pcm) argument
478 snd_pcm_multi_t *multi = pcm->private_data; local
479 int err = 0; local
480 unsigned int i; local
493 snd_pcm_multi_drop(snd_pcm_t *pcm) argument
495 snd_pcm_multi_t *multi = pcm->private_data; local
496 int err = 0; local
497 unsigned int i; local
510 snd_pcm_multi_drain(snd_pcm_t *pcm) argument
512 snd_pcm_multi_t *multi = pcm->private_data; local
513 int err = 0; local
514 unsigned int i; local
527 snd_pcm_multi_pause(snd_pcm_t *pcm, int enable) argument
529 snd_pcm_multi_t *multi = pcm->private_data; local
530 int err = 0; local
531 unsigned int i; local
544 snd_pcm_multi_channel_info(snd_pcm_t *pcm, snd_pcm_channel_info_t *info) argument
546 snd_pcm_multi_t *multi = pcm->private_data; local
547 unsigned int channel = info->channel; local
548 snd_pcm_multi_channel_t *c = &multi->channels[channel]; local
549 int err; local
558 snd_pcm_multi_rewind(snd_pcm_t *pcm, snd_pcm_uframes_t frames) argument
560 snd_pcm_multi_t *multi = pcm->private_data; local
561 unsigned int i; local
562 snd_pcm_uframes_t pos[multi->slaves_count]; local
565 snd_pcm_t *slave_i = multi->slaves[i].pcm; local
566 snd_pcm_sframes_t f = snd_pcm_rewind(slave_i, frames); local
574 snd_pcm_t *slave_i = multi->slaves[i].pcm; local
575 snd_pcm_uframes_t f = pos[i] - frames; local
576 snd_pcm_sframes_t result; local
588 snd_pcm_multi_forward(snd_pcm_t *pcm, snd_pcm_uframes_t frames) argument
590 snd_pcm_multi_t *multi = pcm->private_data; local
591 unsigned int i; local
592 snd_pcm_uframes_t pos[multi->slaves_count]; local
595 snd_pcm_t *slave_i = multi->slaves[i].pcm; local
596 snd_pcm_sframes_t f = INTERNAL(snd_pcm_forward)(slave_i, frames); local
604 snd_pcm_t *slave_i = multi->slaves[i].pcm; local
605 snd_pcm_uframes_t f = pos[i] - frames; local
606 snd_pcm_sframes_t result; local
618 snd_pcm_multi_resume(snd_pcm_t *pcm) argument
620 snd_pcm_multi_t *multi = pcm->private_data; local
621 int err = 0; local
622 unsigned int i; local
638 snd_pcm_multi_link_slaves(snd_pcm_t *pcm, snd_pcm_t *master) argument
640 snd_pcm_multi_t *multi = pcm->private_data; local
641 unsigned int i; local
642 int err; local
660 snd_pcm_multi_link(snd_pcm_t *pcm1, snd_pcm_t *pcm2) argument
662 snd_pcm_multi_t *multi = pcm1->private_data; local
668 snd_pcm_multi_unlink(snd_pcm_t *pcm) argument
670 snd_pcm_multi_t *multi = pcm->private_data; local
671 unsigned int i; local
681 snd_pcm_multi_mmap_commit(snd_pcm_t *pcm, snd_pcm_uframes_t offset, snd_pcm_uframes_t size) argument
685 snd_pcm_multi_t *multi = pcm->private_data; local
686 snd_pcm_t *slave; local
687 unsigned int i; local
688 snd_pcm_sframes_t result; local
701 snd_pcm_multi_munmap(snd_pcm_t *pcm) argument
710 snd_pcm_multi_mmap(snd_pcm_t *pcm) argument
712 snd_pcm_multi_t *multi = pcm->private_data; local
713 unsigned int c; local
726 snd_pcm_multi_channel_t *chan = &multi->channels[c]; local
727 snd_pcm_t *slave; local
742 snd_pcm_multi_dump(snd_pcm_t *pcm, snd_output_t *out) argument
744 snd_pcm_multi_t *multi = pcm->private_data; local
745 unsigned int k; local
749 snd_pcm_multi_channel_t *c = &multi->channels[k]; local
765 static const snd_pcm_ops_t snd_pcm_multi_ops = { variable
780 static const snd_pcm_fast_ops_t snd_pcm_multi_fast_ops = { variable
826 snd_pcm_multi_open(snd_pcm_t **pcmp, const char *name, unsigned int slaves_count, unsigned int master_slave, snd_pcm_t **slaves_pcm, unsigned int *schannels_count, unsigned int channels_count, int *sidxs, unsigned int *schannels, int close_slaves) argument
833 snd_pcm_t *pcm; local
834 snd_pcm_multi_t *multi; local
835 unsigned int i; local
836 snd_pcm_stream_t stream; local
837 char slave_map[64][64] = { { 0 } }; local
838 int err; local
867 snd_pcm_multi_slave_t *slave = &multi->slaves[i]; local
874 snd_pcm_multi_channel_t *bind = &multi->channels[i]; local
996 _snd_pcm_multi_open(snd_pcm_t **pcmp, const char *name, snd_config_t *root, snd_config_t *conf, snd_pcm_stream_t stream, int mode) argument
1000 snd_config_iterator_t i, inext, j, jnext; local
1001 snd_config_t *slaves = NULL; local
1002 snd_config_t *bindings = NULL; local
1003 int err; local
1004 unsigned int idx; local
1005 const char **slaves_id = NULL; local
1006 snd_config_t **slaves_conf = NULL; local
1007 snd_pcm_t **slaves_pcm = NULL; local
1008 unsigned int *slaves_channels = NULL; local
1009 int *channels_sidx = NULL; local
1010 unsigned int *channels_schannel = NULL; local
1011 unsigned int slaves_count = 0; local
1012 long master_slave = 0; local
1013 unsigned int channels_count = 0; local
1014 snd_config_for_each(i, inext, conf) { function
1015 snd_config_t *n = snd_config_iterator_entry(i); local
1016 const char *id; local
1055 snd_config_for_each(i, inext, slaves) { function
1062 snd_config_for_each(i, inext, bindings) { function
1063 long cchannel; local
1064 snd_config_t *m = snd_config_iterator_entry(i); local
1065 const char *id; local
1095 snd_config_for_each(i, inext, slaves) { function
1096 snd_config_t *m = snd_config_iterator_entry(i); local
1097 const char *id; local
1098 int channels; local
1110 snd_config_for_each(i, inext, bindings) { function
1111 snd_config_t *m = snd_config_iterator_entry(i); local
1112 long cchannel = -1; local
1113 long schannel = -1; local
1114 int slave = -1; local
1115 long val; local
1116 const char *str; local
1117 const char *id; local
1126 snd_config_for_each(j, jnext, m) { function
1127 snd_config_t *n = snd_config_iterator_entry(j); local
1128 const char *id; local
1134 char buf[32]; local
1135 unsigned int k; local
[all...]
H A Dpcm_null.c37 const char *_snd_module_pcm_null = ""; variable
42 snd_htimestamp_t trigger_tstamp; member in struct:__anon1494
43 snd_pcm_state_t state; member in struct:__anon1494
44 snd_pcm_uframes_t appl_ptr; member in struct:__anon1494
45 snd_pcm_uframes_t hw_ptr; member in struct:__anon1494
46 int poll_fd; member in struct:__anon1494
47 } snd_pcm_null_t; typedef in typeref:struct:__anon1494
50 snd_pcm_null_close(snd_pcm_t *pcm) argument
52 snd_pcm_null_t *null = pcm->private_data; local
58 snd_pcm_null_nonblock(snd_pcm_t *pcm ATTRIBUTE_UNUSED, int nonblock ATTRIBUTE_UNUSED) argument
63 snd_pcm_null_async(snd_pcm_t *pcm ATTRIBUTE_UNUSED, int sig ATTRIBUTE_UNUSED, pid_t pid ATTRIBUTE_UNUSED) argument
68 snd_pcm_null_info(snd_pcm_t *pcm, snd_pcm_info_t * info) argument
82 snd_pcm_null_status(snd_pcm_t *pcm, snd_pcm_status_t * status) argument
84 snd_pcm_null_t *null = pcm->private_data; local
94 snd_pcm_null_state(snd_pcm_t *pcm) argument
96 snd_pcm_null_t *null = pcm->private_data; local
100 snd_pcm_null_hwsync(snd_pcm_t *pcm ATTRIBUTE_UNUSED) argument
105 snd_pcm_null_delay(snd_pcm_t *pcm ATTRIBUTE_UNUSED, snd_pcm_sframes_t *delayp) argument
111 snd_pcm_null_prepare(snd_pcm_t *pcm) argument
113 snd_pcm_null_t *null = pcm->private_data; local
120 snd_pcm_null_reset(snd_pcm_t *pcm) argument
127 snd_pcm_null_start(snd_pcm_t *pcm) argument
129 snd_pcm_null_t *null = pcm->private_data; local
139 snd_pcm_null_drop(snd_pcm_t *pcm) argument
141 snd_pcm_null_t *null = pcm->private_data; local
147 snd_pcm_null_drain(snd_pcm_t *pcm) argument
149 snd_pcm_null_t *null = pcm->private_data; local
155 snd_pcm_null_pause(snd_pcm_t *pcm, int enable) argument
157 snd_pcm_null_t *null = pcm->private_data; local
170 snd_pcm_null_rewind(snd_pcm_t *pcm, snd_pcm_uframes_t frames) argument
172 snd_pcm_null_t *null = pcm->private_data; local
185 snd_pcm_null_forward(snd_pcm_t *pcm, snd_pcm_uframes_t frames) argument
187 snd_pcm_null_t *null = pcm->private_data; local
200 snd_pcm_null_resume(snd_pcm_t *pcm ATTRIBUTE_UNUSED) argument
205 snd_pcm_null_xfer_areas(snd_pcm_t *pcm, const snd_pcm_channel_area_t *areas ATTRIBUTE_UNUSED, snd_pcm_uframes_t offset ATTRIBUTE_UNUSED, snd_pcm_uframes_t size) argument
215 snd_pcm_null_writei(snd_pcm_t *pcm, const void *buffer ATTRIBUTE_UNUSED, snd_pcm_uframes_t size) argument
220 snd_pcm_null_writen(snd_pcm_t *pcm, void **bufs ATTRIBUTE_UNUSED, snd_pcm_uframes_t size) argument
225 snd_pcm_null_readi(snd_pcm_t *pcm, void *buffer ATTRIBUTE_UNUSED, snd_pcm_uframes_t size) argument
230 snd_pcm_null_readn(snd_pcm_t *pcm, void **bufs ATTRIBUTE_UNUSED, snd_pcm_uframes_t size) argument
235 snd_pcm_null_mmap_commit(snd_pcm_t *pcm, snd_pcm_uframes_t offset ATTRIBUTE_UNUSED, snd_pcm_uframes_t size) argument
242 snd_pcm_null_avail_update(snd_pcm_t *pcm) argument
247 snd_pcm_null_hw_refine(snd_pcm_t *pcm ATTRIBUTE_UNUSED, snd_pcm_hw_params_t *params) argument
249 int err = snd_pcm_hw_refine_soft(pcm, params); local
256 snd_pcm_null_hw_params(snd_pcm_t *pcm ATTRIBUTE_UNUSED, snd_pcm_hw_params_t * params ATTRIBUTE_UNUSED) argument
261 snd_pcm_null_hw_free(snd_pcm_t *pcm ATTRIBUTE_UNUSED) argument
266 snd_pcm_null_sw_params(snd_pcm_t *pcm ATTRIBUTE_UNUSED, snd_pcm_sw_params_t * params ATTRIBUTE_UNUSED) argument
271 snd_pcm_null_dump(snd_pcm_t *pcm, snd_output_t *out) argument
280 static const snd_pcm_ops_t snd_pcm_null_ops = { variable
295 static const snd_pcm_fast_ops_t snd_pcm_null_fast_ops = { variable
329 snd_pcm_null_open(snd_pcm_t **pcmp, const char *name, snd_pcm_stream_t stream, int mode) argument
331 snd_pcm_t *pcm; local
332 snd_pcm_null_t *null; local
333 int fd; local
334 int err; local
413 _snd_pcm_null_open(snd_pcm_t **pcmp, const char *name, snd_config_t *root ATTRIBUTE_UNUSED, snd_config_t *conf, snd_pcm_stream_t stream, int mode) argument
417 snd_config_iterator_t i, next; local
418 snd_config_for_each(i, next, conf) { function
419 snd_config_t *n = snd_config_iterator_entry(i); local
420 const char *id; local
[all...]
H A Dpcm_params.c28 dump_hw_params(snd_pcm_hw_params_t *params, const char *type, snd_pcm_hw_param_t var, unsigned int val, int err) argument
31 const char *verbose = getenv("LIBASOUND_DEBUG"); local
32 snd_output_t *out; local
59 dump_hw_params(snd_pcm_hw_params_t *params, const char *type, snd_pcm_hw_param_t var, unsigned int val, int err) argument
65 hw_is_mask(snd_pcm_hw_param_t var) argument
75 hw_is_interval(snd_pcm_hw_param_t var) argument
81 #define hw_param_mask macro
84 #define hw_param_interval macro
87 #define hw_param_mask_c macro
88 #define hw_param_interval_c macro
90 _snd_pcm_hw_param_any(snd_pcm_hw_params_t *params, snd_pcm_hw_param_t var) argument
107 snd_pcm_hw_param_any(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, snd_pcm_hw_param_t var) argument
114 _snd_pcm_hw_params_any(snd_pcm_hw_params_t *params) argument
116 unsigned int k; local
130 snd_pcm_hw_param_get(const snd_pcm_hw_params_t *params, snd_pcm_hw_param_t var, unsigned int *val, int *dir) argument
134 const snd_mask_t *mask = hw_param_mask_c(params, var); local
143 const snd_interval_t *i = hw_param_interval_c(params, var); local
157 snd_pcm_hw_param_get_min(const snd_pcm_hw_params_t *params, snd_pcm_hw_param_t var, unsigned int *val, int *dir) argument
161 const snd_mask_t *m = hw_param_mask_c(params, var); local
169 const snd_interval_t *i = hw_param_interval_c(params, var); local
182 snd_pcm_hw_param_get_max(const snd_pcm_hw_params_t *params, snd_pcm_hw_param_t var, unsigned int *val, int *dir) argument
186 const snd_mask_t *m = hw_param_mask_c(params, var); local
194 const snd_interval_t *i = hw_param_interval_c(params, var); local
209 snd_pcm_hw_param_get_mask(const snd_pcm_hw_params_t *params, snd_pcm_hw_param_t var) argument
219 snd_pcm_hw_param_get_interval(const snd_pcm_hw_params_t *params, snd_pcm_hw_param_t var) argument
228 _snd_pcm_hw_param_set_interval(snd_pcm_hw_params_t *params, snd_pcm_hw_param_t var, const snd_interval_t *val) argument
232 int changed; local
242 _snd_pcm_hw_param_set_empty(snd_pcm_hw_params_t *params, snd_pcm_hw_param_t var) argument
258 _snd_pcm_hw_param_set_integer(snd_pcm_hw_params_t *params, snd_pcm_hw_param_t var) argument
261 int changed; local
275 snd_pcm_hw_param_set_integer(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, snd_set_mode_t mode, snd_pcm_hw_param_t var) argument
280 snd_pcm_hw_params_t save; local
281 int err; local
311 _snd_pcm_hw_param_set_first(snd_pcm_hw_params_t *params, snd_pcm_hw_param_t var) argument
314 int changed; local
335 snd_pcm_hw_param_set_first(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, snd_pcm_hw_param_t var, unsigned int *rval, int *dir) argument
340 int err; local
353 _snd_pcm_hw_param_set_last(snd_pcm_hw_params_t *params, snd_pcm_hw_param_t var) argument
356 int changed; local
377 snd_pcm_hw_param_set_last(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, snd_pcm_hw_param_t var, unsigned int *rval, int *dir) argument
382 int err; local
395 _snd_pcm_hw_param_set_min(snd_pcm_hw_params_t *params, snd_pcm_hw_param_t var, unsigned int val, int dir) argument
398 int changed; local
399 int openmin = 0; local
429 snd_pcm_hw_param_set_min(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, snd_set_mode_t mode, snd_pcm_hw_param_t var, unsigned int *val, int *dir) argument
433 snd_pcm_hw_params_t save; local
434 int err; local
470 _snd_pcm_hw_param_set_max(snd_pcm_hw_params_t *params, snd_pcm_hw_param_t var, unsigned int val, int dir) argument
473 int changed; local
474 int openmax = 0; local
506 snd_pcm_hw_param_set_max(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, snd_set_mode_t mode, snd_pcm_hw_param_t var, unsigned int *val, int *dir) argument
510 snd_pcm_hw_params_t save; local
511 int err; local
547 _snd_pcm_hw_param_set_minmax(snd_pcm_hw_params_t *params, snd_pcm_hw_param_t var, unsigned int min, int mindir, unsigned int max, int maxdir) argument
552 int changed, c1, c2; local
553 int openmin = 0, openmax = 0; local
573 snd_mask_t *mask = hw_param_mask(params, var); local
591 snd_interval_t *i = hw_param_interval(params, var); local
617 snd_pcm_hw_param_set_minmax(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, snd_set_mode_t mode, snd_pcm_hw_param_t var, unsigned int *min, int *mindir, unsigned int *max, int *maxdir) argument
623 snd_pcm_hw_params_t save; local
624 int err; local
661 _snd_pcm_hw_param_set(snd_pcm_hw_params_t *params, snd_pcm_hw_param_t var, unsigned int val, int dir) argument
664 int changed; local
666 snd_mask_t *m = hw_param_mask(params, var); local
678 snd_interval_t *i = hw_param_interval(params, var); local
685 snd_interval_t t; local
714 snd_pcm_hw_param_set(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, snd_set_mode_t mode, snd_pcm_hw_param_t var, unsigned int val, int dir) argument
718 snd_pcm_hw_params_t save; local
719 int err; local
751 _snd_pcm_hw_param_set_mask(snd_pcm_hw_params_t *params, snd_pcm_hw_param_t var, const snd_mask_t *val) argument
754 int changed; local
771 snd_pcm_hw_param_set_mask(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, snd_set_mode_t mode, snd_pcm_hw_param_t var, const snd_mask_t *val) argument
775 snd_pcm_hw_params_t save; local
776 int err; local
812 snd_pcm_hw_param_set_near(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, snd_pcm_hw_param_t var, unsigned int *val, int *dir) argument
816 snd_pcm_hw_params_t save; local
817 int err; local
818 unsigned int best = *val, saved_min; local
819 int last = 0; local
820 unsigned int min, max; local
821 int mindir, maxdir; local
822 int valdir = dir ? *dir : 0; local
823 snd_interval_t *i; local
850 snd_pcm_hw_params_t params1; local
953 snd_pcm_hw_param_set_near_minmax(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, snd_pcm_hw_param_t var, unsigned int min, int *mindir, unsigned int max, int *maxdir) argument
959 snd_pcm_hw_params_t tmp; local
960 int err; local
981 snd_pcm_hw_param_refine_near(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, snd_pcm_hw_param_t var, const snd_pcm_hw_params_t *src) argument
986 unsigned int min, max; local
987 int mindir, maxdir, err; local
999 snd_pcm_hw_param_refine_multiple(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, snd_pcm_hw_param_t var, const snd_pcm_hw_params_t *src) argument
1004 const snd_interval_t *it = hw_param_interval_c(src, var); local
1005 const snd_interval_t *st = hw_param_interval_c(params, var); local
1007 unsigned int best = snd_interval_min(it), cur, prev; local
1027 snd_pcm_hw_param_empty(const snd_pcm_hw_params_t *params, snd_pcm_hw_param_t var) argument
1038 snd_pcm_hw_param_always_eq(const snd_pcm_hw_params_t *params, snd_pcm_hw_param_t var, const snd_pcm_hw_params_t *params1) argument
1052 snd_pcm_hw_param_never_eq(const snd_pcm_hw_params_t *params, snd_pcm_hw_param_t var, const snd_pcm_hw_params_t *params1) argument
1081 snd_pcm_hw_params_choose(snd_pcm_t *pcm, snd_pcm_hw_params_t *params) argument
1083 int err; local
1085 snd_output_t *log; local
1107 unsigned int min, max; local
1108 int dir = 1; local
1169 _snd_pcm_hw_param_refine(snd_pcm_hw_params_t *params, snd_pcm_hw_param_t var, const snd_pcm_hw_params_t *src) argument
1173 int changed = 0; local
1175 snd_mask_t *d = hw_param_mask(params, var); local
1176 const snd_mask_t *s = hw_param_mask_c(src, var); local
1179 snd_interval_t *d = hw_param_interval(params, var); local
1180 const snd_interval_t *s = hw_param_interval_c(src, var); local
1215 snd_pcm_hw_param_dump(const snd_pcm_hw_params_t *params, snd_pcm_hw_param_t var, snd_output_t *out) argument
1219 const snd_mask_t *mask = hw_param_mask_c(params, var); local
1225 unsigned int k; local
1228 const char *s; local
1253 snd_interval_print(hw_param_interval_c(params, var), out); local
1259 #define HW_PARAM macro
1261 static const char *const snd_pcm_hw_param_names[] = { variable
1279 snd_pcm_hw_param_name(snd_pcm_hw_param_t param) argument
1686 typedef struct _snd_pcm_hw_rule snd_pcm_hw_rule_t; typedef in typeref:struct:_snd_pcm_hw_rule
1688 typedef int (*snd_pcm_hw_rule_func_t)(snd_pcm_hw_params_t *params, typedef
1691 struct _snd_pcm_hw_rule { struct
1692 int var; member in struct:_snd_pcm_hw_rule
1693 snd_pcm_hw_rule_func_t func; member in struct:_snd_pcm_hw_rule
1694 int deps[4]; member in struct:_snd_pcm_hw_rule
1695 void *private_data; member in struct:_snd_pcm_hw_rule
1698 snd_pcm_hw_rule_mul(snd_pcm_hw_params_t *params, const snd_pcm_hw_rule_t *rule) argument
1701 snd_interval_t t; local
1707 snd_pcm_hw_rule_div(snd_pcm_hw_params_t *params, const snd_pcm_hw_rule_t *rule) argument
1710 snd_interval_t t; local
1716 snd_pcm_hw_rule_muldivk(snd_pcm_hw_params_t *params, const snd_pcm_hw_rule_t *rule) argument
1719 snd_interval_t t; local
1722 (unsigned long) rule-&gt;private_data, &t); local
1726 snd_pcm_hw_rule_mulkdiv(snd_pcm_hw_params_t *params, const snd_pcm_hw_rule_t *rule) argument
1729 snd_interval_t t; local
1736 snd_pcm_hw_rule_format(snd_pcm_hw_params_t *params, const snd_pcm_hw_rule_t *rule) argument
1739 int changed = 0; local
1740 snd_pcm_format_t k; local
1741 snd_mask_t *mask = hw_param_mask(params, rule->var); local
1742 snd_interval_t *i = hw_param_interval(params, rule->deps[0]); local
1744 int bits; local
1761 snd_pcm_hw_rule_sample_bits(snd_pcm_hw_params_t *params, const snd_pcm_hw_rule_t *rule) argument
1764 unsigned int min, max; local
1765 snd_pcm_format_t k; local
1766 snd_interval_t *i = hw_param_interval(params, rule->var); local
1767 snd_mask_t *mask = hw_param_mask(params, rule->deps[0]); local
1768 int c, changed = 0; local
1772 int bits; local
1796 static const snd_pcm_hw_rule_t refine_rules[] = { variable
1938 #define RULES macro
1940 static const snd_mask_t refine_masks[SND_PCM_HW_PARAM_LAST_MASK - SND_PCM_HW_PARAM_FIRST_MASK + 1] = { variable
1952 static const snd_interval_t refine_intervals[SND_PCM_HW_PARAM_LAST_INTERVAL - SND_PCM_HW_PARAM_FIRST_INTERVAL + 1] = { variable
2007 snd_pcm_hw_refine_soft(snd_pcm_t *pcm ATTRIBUTE_UNUSED, snd_pcm_hw_params_t *params) argument
2009 unsigned int k; local
2010 snd_interval_t *i; local
2011 unsigned int rstamps[RULES]; local
2012 unsigned int vstamps[SND_PCM_HW_PARAM_LAST_INTERVAL + 1]; local
2013 unsigned int stamp = 2; local
2014 int changed, again; local
2016 snd_output_t *log; local
2051 const snd_pcm_hw_rule_t *r = &refine_rules[k]; local
2052 unsigned int d; local
2053 int doit = 0; local
2115 _snd_pcm_hw_params_refine(snd_pcm_hw_params_t *params, unsigned int vars, const snd_pcm_hw_params_t *src) argument
2119 int changed, err = 0; local
2120 unsigned int k; local
2133 snd_pcm_hw_refine_slave(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, int (*cprepare)(snd_pcm_t *pcm, snd_pcm_hw_params_t *params), int (*cchange)(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, snd_pcm_hw_params_t *sparams), int (*sprepare)(snd_pcm_t *pcm, snd_pcm_hw_params_t *params), int (*schange)(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, snd_pcm_hw_params_t *sparams), int (*srefine)(snd_pcm_t *pcm, snd_pcm_hw_params_t *sparams)) argument
2149 snd_output_t *log; local
2151 snd_pcm_hw_params_t sparams; local
2152 int err; local
2153 unsigned int cmask, changed; local
2231 snd_pcm_hw_params_slave(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, int (*cchange)(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, snd_pcm_hw_params_t *sparams), int (*sprepare)(snd_pcm_t *pcm, snd_pcm_hw_params_t *params), int (*schange)(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, snd_pcm_hw_params_t *sparams), int (*sparams)(snd_pcm_t *pcm, snd_pcm_hw_params_t *sparams)) argument
2244 snd_pcm_hw_params_t slave_params; local
2245 int err; local
2256 snd_pcm_sw_params_default(snd_pcm_t *pcm, snd_pcm_sw_params_t *params) argument
2279 snd_pcm_hw_refine(snd_pcm_t *pcm, snd_pcm_hw_params_t *params) argument
2281 int res; local
2283 snd_output_t *log; local
2312 _snd_pcm_hw_params(snd_pcm_t *pcm, snd_pcm_hw_params_t *params) argument
2314 int err; local
2315 snd_pcm_sw_params_t sw; local
2316 int fb, min_align; local
[all...]
H A Dpcm_plug.c34 const char *_snd_module_pcm_plug = ""; variable
39 enum snd_pcm_plug_route_policy { enum
40 PLUG_ROUTE_POLICY_NONE, enumerator in enum:snd_pcm_plug_route_policy
41 PLUG_ROUTE_POLICY_DEFAULT, enumerator in enum:snd_pcm_plug_route_policy
42 PLUG_ROUTE_POLICY_COPY, enumerator in enum:snd_pcm_plug_route_policy
43 PLUG_ROUTE_POLICY_AVERAGE, enumerator in enum:snd_pcm_plug_route_policy
44 PLUG_ROUTE_POLICY_DUP, enumerator in enum:snd_pcm_plug_route_policy
48 snd_pcm_generic_t gen; member in struct:__anon1495
49 snd_pcm_t *req_slave; member in struct:__anon1495
50 snd_pcm_format_t sformat; member in struct:__anon1495
51 int schannels; member in struct:__anon1495
52 int srate; member in struct:__anon1495
53 const snd_config_t *rate_converter; member in struct:__anon1495
54 enum snd_pcm_plug_route_policy route_policy; member in struct:__anon1495
55 snd_pcm_route_ttable_entry_t *ttable; member in struct:__anon1495
56 int ttable_ok, ttable_last; member in struct:__anon1495
57 unsigned int tt_ssize, tt_cused, tt_sused; member in struct:__anon1495
58 } snd_pcm_plug_t; typedef in typeref:struct:__anon1495
62 snd_pcm_plug_close(snd_pcm_t *pcm) argument
64 snd_pcm_plug_t *plug = pcm->private_data; local
65 int err, result = 0; local
79 snd_pcm_plug_info(snd_pcm_t *pcm, snd_pcm_info_t *info) argument
81 snd_pcm_plug_t *plug = pcm->private_data; local
82 snd_pcm_t *slave = plug->req_slave; local
83 int err; local
90 static const snd_pcm_format_t linear_preferred_formats[] = { variable
175 #define BUILD_PCM_NONLINEAR macro
179 static const snd_pcm_format_t nonlinear_preferred_formats[] = { variable
193 static const snd_pcm_format_t float_preferred_formats[] = { variable
208 static const char linear_format_widths[32] = { variable
215 check_linear_format(const snd_pcm_format_mask_t *format_mask, int wid, int sgn, int ed) argument
217 int e, s; local
222 int pw = ((wid + 7) / 8) * 8; local
224 snd_pcm_format_t f; local
237 snd_pcm_plug_slave_format(snd_pcm_format_t format, const snd_pcm_format_mask_t *format_mask) argument
239 int w, w1, u, e; local
240 snd_pcm_format_t f; local
241 snd_pcm_format_mask_t lin = { SND_PCM_FMTBIT_LINEAR }; local
242 snd_pcm_format_mask_t fl = { local
253 unsigned int i; local
265 snd_pcm_format_t f = linear_preferred_formats[i]; local
279 unsigned int i; local
281 snd_pcm_format_t f = nonlinear_preferred_formats[i]; local
291 unsigned int i; local
293 snd_pcm_format_t f = float_preferred_formats[i]; local
305 unsigned int i; local
307 snd_pcm_format_t f = float_preferred_formats[i]; local
331 snd_pcm_plug_clear(snd_pcm_t *pcm) argument
333 snd_pcm_plug_t *plug = pcm->private_data; local
334 snd_pcm_t *slave = plug->req_slave; local
348 snd_pcm_access_t access; member in struct:__anon1496
349 snd_pcm_format_t format; member in struct:__anon1496
350 unsigned int channels; member in struct:__anon1496
351 unsigned int rate; member in struct:__anon1496
352 } snd_pcm_plug_params_t; typedef in typeref:struct:__anon1496
356 snd_pcm_plug_change_rate(snd_pcm_t *pcm, snd_pcm_t **new, snd_pcm_plug_params_t *clt, snd_pcm_plug_params_t *slv) argument
358 snd_pcm_plug_t *plug = pcm->private_data; local
359 int err; local
376 snd_pcm_plug_change_channels(snd_pcm_t *pcm, snd_pcm_t **new, snd_pcm_plug_params_t *clt, snd_pcm_plug_params_t *slv) argument
378 snd_pcm_plug_t *plug = pcm->private_data; local
379 unsigned int tt_ssize, tt_cused, tt_sused; local
380 snd_pcm_route_ttable_entry_t *ttable; local
381 int err; local
394 unsigned int c = 0, s = 0; local
397 snd_pcm_route_ttable_entry_t v; local
409 unsigned int k; local
410 unsigned int c = 0, s = 0; local
411 enum snd_pcm_plug_route_policy rpolicy = plug->route_policy; local
412 int n; local
430 snd_pcm_route_ttable_entry_t v = SND_PCM_PLUGIN_ROUTE_FULL; local
434 int srcs = clt->channels / slv->channels; local
440 int srcs = slv->channels / clt->channels; local
478 snd_pcm_plug_change_format(snd_pcm_t *pcm, snd_pcm_t **new, snd_pcm_plug_params_t *clt, snd_pcm_plug_params_t *slv) argument
480 snd_pcm_plug_t *plug = pcm->private_data; local
481 int err; local
482 snd_pcm_format_t cfmt; local
571 snd_pcm_plug_change_access(snd_pcm_t *pcm, snd_pcm_t **new, snd_pcm_plug_params_t *clt, snd_pcm_plug_params_t *slv) argument
573 snd_pcm_plug_t *plug = pcm->private_data; local
574 int err; local
585 snd_pcm_plug_change_mmap(snd_pcm_t *pcm, snd_pcm_t **new, snd_pcm_plug_params_t *clt, snd_pcm_plug_params_t *slv) argument
589 snd_pcm_plug_t *plug = pcm->private_data; local
590 int err; local
622 snd_pcm_plug_insert_plugins(snd_pcm_t *pcm, snd_pcm_plug_params_t *client, snd_pcm_plug_params_t *slave) argument
626 snd_pcm_plug_t *plug = pcm->private_data; local
644 snd_pcm_plug_params_t p = *slave; local
645 unsigned int k = 0; local
651 snd_pcm_t *new; local
652 int err; local
668 snd_pcm_t *new; local
669 int err; local
686 snd_pcm_plug_hw_refine_cprepare(snd_pcm_t *pcm ATTRIBUTE_UNUSED, snd_pcm_hw_params_t *params) argument
688 unsigned int rate_min, channels_max; local
689 int err; local
712 snd_pcm_plug_hw_refine_sprepare(snd_pcm_t *pcm, snd_pcm_hw_params_t *sparams) argument
714 snd_pcm_plug_t *plug = pcm->private_data; local
715 int err; local
735 check_access_change(snd_pcm_hw_params_t *cparams, snd_pcm_hw_params_t *sparams) argument
738 snd_pcm_access_mask_t *smask; local
740 const snd_pcm_access_mask_t *cmask; local
741 snd_pcm_access_mask_t mask; local
782 snd_pcm_plug_hw_refine_schange(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, snd_pcm_hw_params_t *sparams) argument
785 snd_pcm_plug_t *plug = pcm->private_data; local
786 snd_pcm_t *slave = plug->req_slave; local
787 unsigned int links = (SND_PCM_HW_PARBIT_PERIOD_TIME | local
789 const snd_pcm_format_mask_t *format_mask, *sformat_mask; local
790 snd_pcm_format_mask_t sfmt_mask; local
791 int err; local
792 snd_pcm_format_t format; local
793 snd_interval_t t, buffer_size; local
794 const snd_interval_t *srate, *crate; local
820 snd_pcm_format_t f; local
882 snd_pcm_plug_hw_refine_cchange(snd_pcm_t *pcm ATTRIBUTE_UNUSED, snd_pcm_hw_params_t *params, snd_pcm_hw_params_t *sparams) argument
886 snd_pcm_plug_t *plug = pcm->private_data; local
887 unsigned int links = (SND_PCM_HW_PARBIT_PERIOD_TIME | local
889 const snd_pcm_format_mask_t *format_mask, *sformat_mask; local
890 snd_pcm_format_mask_t fmt_mask; local
891 int err; local
892 snd_pcm_format_t format; local
893 snd_interval_t t; local
894 const snd_interval_t *sbuffer_size; local
895 const snd_interval_t *srate, *crate; local
909 snd_pcm_format_t f; local
948 unsigned int rate_min, srate_min; local
949 int rate_mindir, srate_mindir; local
988 snd_pcm_plug_hw_refine_slave(snd_pcm_t *pcm, snd_pcm_hw_params_t *params) argument
990 snd_pcm_plug_t *plug = pcm->private_data; local
994 snd_pcm_plug_hw_refine(snd_pcm_t *pcm, snd_pcm_hw_params_t *params) argument
1004 snd_pcm_plug_hw_params(snd_pcm_t *pcm, snd_pcm_hw_params_t *params) argument
1006 snd_pcm_plug_t *plug = pcm->private_data; local
1007 snd_pcm_t *slave = plug->req_slave; local
1008 snd_pcm_plug_params_t clt_params, slv_params; local
1009 snd_pcm_hw_params_t sparams; local
1010 int err; local
1058 snd_pcm_plug_hw_free(snd_pcm_t *pcm) argument
1060 snd_pcm_plug_t *plug = pcm->private_data; local
1061 snd_pcm_t *slave = plug->gen.slave; local
1062 int err = snd_pcm_hw_free(slave); local
1067 snd_pcm_plug_dump(snd_pcm_t *pcm, snd_output_t *out) argument
1069 snd_pcm_plug_t *plug = pcm->private_data; local
1074 static const snd_pcm_ops_t snd_pcm_plug_ops = { variable
1101 snd_pcm_plug_open(snd_pcm_t **pcmp, const char *name, snd_pcm_format_t sformat, int schannels, int srate, const snd_config_t *rate_converter, enum snd_pcm_plug_route_policy route_policy, snd_pcm_route_ttable_entry_t *ttable, unsigned int tt_ssize, unsigned int tt_cused, unsigned int tt_sused, snd_pcm_t *slave, int close_slave) argument
1111 snd_pcm_t *pcm; local
1112 snd_pcm_plug_t *plug; local
1113 int err; local
1211 _snd_pcm_plug_open(snd_pcm_t **pcmp, const char *name, snd_config_t *root, snd_config_t *conf, snd_pcm_stream_t stream, int mode) argument
1215 snd_config_iterator_t i, next; local
1216 int err; local
1217 snd_pcm_t *spcm; local
1218 snd_config_t *slave = NULL, *sconf; local
1219 snd_config_t *tt = NULL; local
1220 enum snd_pcm_plug_route_policy route_policy = PLUG_ROUTE_POLICY_DEFAULT; local
1221 snd_pcm_route_ttable_entry_t *ttable = NULL; local
1222 unsigned int csize, ssize; local
1223 unsigned int cused, sused; local
1224 snd_pcm_format_t sformat = SND_PCM_FORMAT_UNKNOWN; local
1225 int schannels = -1, srate = -1; local
1226 const snd_config_t *rate_converter = NULL; local
1228 snd_config_for_each(i, next, conf) { function
1229 snd_config_t *n = snd_config_iterator_entry(i); local
1230 const char *id; local
1250 const char *str; local
[all...]
H A Dpcm_plugin.c93 snd_pcm_plugin_undo_read(snd_pcm_t *pcm ATTRIBUTE_UNUSED, const snd_pcm_channel_area_t *res_areas ATTRIBUTE_UNUSED, snd_pcm_uframes_t res_offset ATTRIBUTE_UNUSED, snd_pcm_uframes_t res_size ATTRIBUTE_UNUSED, snd_pcm_uframes_t slave_undo_size ATTRIBUTE_UNUSED) argument
103 snd_pcm_plugin_undo_write(snd_pcm_t *pcm ATTRIBUTE_UNUSED, const snd_pcm_channel_area_t *res_areas ATTRIBUTE_UNUSED, snd_pcm_uframes_t res_offset ATTRIBUTE_UNUSED, snd_pcm_uframes_t res_size ATTRIBUTE_UNUSED, snd_pcm_uframes_t slave_undo_size ATTRIBUTE_UNUSED) argument
113 snd_pcm_plugin_undo_read_generic(snd_pcm_t *pcm ATTRIBUTE_UNUSED, const snd_pcm_channel_area_t *res_areas ATTRIBUTE_UNUSED, snd_pcm_uframes_t res_offset ATTRIBUTE_UNUSED, snd_pcm_uframes_t res_size ATTRIBUTE_UNUSED, snd_pcm_uframes_t slave_undo_size) argument
123 snd_pcm_plugin_undo_write_generic(snd_pcm_t *pcm ATTRIBUTE_UNUSED, const snd_pcm_channel_area_t *res_areas ATTRIBUTE_UNUSED, snd_pcm_uframes_t res_offset ATTRIBUTE_UNUSED, snd_pcm_uframes_t res_size ATTRIBUTE_UNUSED, snd_pcm_uframes_t slave_undo_size) argument
132 snd_pcm_plugin_init(snd_pcm_plugin_t *plugin) argument
140 snd_pcm_plugin_delay(snd_pcm_t *pcm, snd_pcm_sframes_t *delayp) argument
142 snd_pcm_plugin_t *plugin = pcm->private_data; local
143 snd_pcm_sframes_t sd; local
144 int err = snd_pcm_delay(plugin->gen.slave, &sd); local
157 snd_pcm_plugin_prepare(snd_pcm_t *pcm) argument
159 snd_pcm_plugin_t *plugin = pcm->private_data; local
160 int err; local
178 snd_pcm_plugin_reset(snd_pcm_t *pcm) argument
180 snd_pcm_plugin_t *plugin = pcm->private_data; local
181 int err; local
199 snd_pcm_plugin_rewindable(snd_pcm_t *pcm) argument
204 snd_pcm_plugin_rewind(snd_pcm_t *pcm, snd_pcm_uframes_t frames) argument
206 snd_pcm_plugin_t *plugin = pcm->private_data; local
207 snd_pcm_sframes_t n = snd_pcm_mmap_hw_avail(pcm); local
208 snd_pcm_sframes_t sframes; local
227 snd_pcm_plugin_forwardable(snd_pcm_t *pcm) argument
232 snd_pcm_plugin_forward(snd_pcm_t *pcm, snd_pcm_uframes_t frames) argument
234 snd_pcm_plugin_t *plugin = pcm->private_data; local
235 snd_pcm_sframes_t n = snd_pcm_mmap_avail(pcm); local
236 snd_pcm_sframes_t sframes; local
255 snd_pcm_plugin_write_areas(snd_pcm_t *pcm, const snd_pcm_channel_area_t *areas, snd_pcm_uframes_t offset, snd_pcm_uframes_t size) argument
260 snd_pcm_plugin_t *plugin = pcm->private_data; local
261 snd_pcm_t *slave = plugin->gen.slave; local
262 snd_pcm_uframes_t xfer = 0; local
263 snd_pcm_sframes_t result; local
264 int err; local
267 snd_pcm_uframes_t frames = size; local
268 const snd_pcm_channel_area_t *slave_areas; local
269 snd_pcm_uframes_t slave_offset; local
270 snd_pcm_uframes_t slave_frames = ULONG_MAX; local
286 snd_pcm_sframes_t res; local
302 snd_pcm_plugin_read_areas(snd_pcm_t *pcm, const snd_pcm_channel_area_t *areas, snd_pcm_uframes_t offset, snd_pcm_uframes_t size) argument
307 snd_pcm_plugin_t *plugin = pcm->private_data; local
308 snd_pcm_t *slave = plugin->gen.slave; local
309 snd_pcm_uframes_t xfer = 0; local
310 snd_pcm_sframes_t result; local
313 snd_pcm_uframes_t frames = size; local
314 const snd_pcm_channel_area_t *slave_areas; local
315 snd_pcm_uframes_t slave_offset; local
316 snd_pcm_uframes_t slave_frames = ULONG_MAX; local
332 snd_pcm_sframes_t res; local
351 snd_pcm_plugin_writei(snd_pcm_t *pcm, const void *buffer, snd_pcm_uframes_t size) argument
353 snd_pcm_channel_area_t areas[pcm->channels]; local
360 snd_pcm_plugin_writen(snd_pcm_t *pcm, void **bufs, snd_pcm_uframes_t size) argument
362 snd_pcm_channel_area_t areas[pcm->channels]; local
369 snd_pcm_plugin_readi(snd_pcm_t *pcm, void *buffer, snd_pcm_uframes_t size) argument
371 snd_pcm_channel_area_t areas[pcm->channels]; local
378 snd_pcm_plugin_readn(snd_pcm_t *pcm, void **bufs, snd_pcm_uframes_t size) argument
380 snd_pcm_channel_area_t areas[pcm->channels]; local
387 snd_pcm_plugin_mmap_commit(snd_pcm_t *pcm, snd_pcm_uframes_t offset ATTRIBUTE_UNUSED, snd_pcm_uframes_t size) argument
391 snd_pcm_plugin_t *plugin = pcm->private_data; local
392 snd_pcm_t *slave = plugin->gen.slave; local
393 const snd_pcm_channel_area_t *areas; local
394 snd_pcm_uframes_t appl_offset; local
395 snd_pcm_sframes_t slave_size; local
396 snd_pcm_sframes_t xfer; local
411 snd_pcm_uframes_t frames = size; local
412 snd_pcm_uframes_t cont = pcm->buffer_size - appl_offset; local
413 const snd_pcm_channel_area_t *slave_areas; local
414 snd_pcm_uframes_t slave_offset; local
415 snd_pcm_uframes_t slave_frames = ULONG_MAX; local
416 snd_pcm_sframes_t result; local
417 int err; local
431 snd_pcm_sframes_t res; local
455 snd_pcm_plugin_avail_update(snd_pcm_t *pcm) argument
457 snd_pcm_plugin_t *plugin = pcm->private_data; local
458 snd_pcm_t *slave = plugin->gen.slave; local
459 snd_pcm_sframes_t slave_size; local
470 const snd_pcm_channel_area_t *areas; local
471 snd_pcm_uframes_t xfer, hw_offset, size; local
478 snd_pcm_uframes_t frames = size; local
479 snd_pcm_uframes_t cont = pcm->buffer_size - hw_offset; local
480 const snd_pcm_channel_area_t *slave_areas; local
481 snd_pcm_uframes_t slave_offset; local
482 snd_pcm_uframes_t slave_frames = ULONG_MAX; local
483 snd_pcm_sframes_t result; local
484 int err; local
498 snd_pcm_sframes_t res; local
519 snd_pcm_plugin_status(snd_pcm_t *pcm, snd_pcm_status_t * status) argument
521 snd_pcm_plugin_t *plugin = pcm->private_data; local
522 snd_pcm_sframes_t err; local
523 snd_atomic_read_t ratom; local
544 const snd_pcm_fast_ops_t snd_pcm_plugin_fast_ops = { variable
[all...]
H A Dpcm_plugin.h25 typedef snd_pcm_uframes_t (*snd_pcm_slave_xfer_areas_func_t) typedef
34 typedef snd_pcm_sframes_t (*snd_pcm_slave_xfer_areas_undo_func_t) typedef
42 snd_pcm_generic_t gen; member in struct:__anon1497
43 snd_pcm_slave_xfer_areas_func_t read; member in struct:__anon1497
44 snd_pcm_slave_xfer_areas_func_t write; member in struct:__anon1497
45 snd_pcm_slave_xfer_areas_undo_func_t undo_read; member in struct:__anon1497
46 snd_pcm_slave_xfer_areas_undo_func_t undo_write; member in struct:__anon1497
47 int (*init)(snd_pcm_t *pcm); member in struct:__anon1497
48 snd_pcm_uframes_t appl_ptr, hw_ptr; member in struct:__anon1497
49 snd_atomic_write_t watom; member in struct:__anon1497
50 } snd_pcm_plugin_t; typedef in typeref:struct:__anon1497
53 #define snd_pcm_plugin_init macro
55 #define snd_pcm_plugin_fast_ops macro
57 #define snd_pcm_plugin_undo_read_generic macro
59 #define snd_pcm_plugin_undo_write_generic macro
81 #define snd_pcm_linear_get_index macro
82 #define snd_pcm_linear_put_index macro
83 #define snd_pcm_linear_get32_index macro
84 #define snd_pcm_linear_put32_index macro
85 #define snd_pcm_linear_convert_index macro
86 #define snd_pcm_linear_convert macro
87 #define snd_pcm_linear_getput macro
88 #define snd_pcm_alaw_decode macro
89 #define snd_pcm_alaw_encode macro
90 #define snd_pcm_mulaw_decode macro
91 #define snd_pcm_mulaw_encode macro
92 #define snd_pcm_adpcm_decode macro
93 #define snd_pcm_adpcm_encode macro
134 typedef struct _snd_pcm_adpcm_state { struct
135 int pred_val; /* Calculated predicted value */ member in struct:_snd_pcm_adpcm_state
136 int step_idx; /* Previous StepSize lookup index */ member in struct:_snd_pcm_adpcm_state
137 } snd_pcm_adpcm_state_t; typedef in typeref:struct:_snd_pcm_adpcm_state
[all...]
H A Dpcm_rate.c45 const char *_snd_module_pcm_rate = ""; variable
50 typedef struct _snd_pcm_rate snd_pcm_rate_t; typedef in typeref:struct:_snd_pcm_rate
52 struct _snd_pcm_rate { struct
53 snd_pcm_generic_t gen; member in struct:_snd_pcm_rate
54 snd_atomic_write_t watom; member in struct:_snd_pcm_rate
55 snd_pcm_uframes_t appl_ptr, hw_ptr; member in struct:_snd_pcm_rate
56 snd_pcm_uframes_t last_commit_ptr; member in struct:_snd_pcm_rate
57 snd_pcm_uframes_t orig_avail_min; member in struct:_snd_pcm_rate
58 snd_pcm_sw_params_t sw_params; member in struct:_snd_pcm_rate
59 snd_pcm_format_t sformat; member in struct:_snd_pcm_rate
60 unsigned int srate; member in struct:_snd_pcm_rate
61 snd_pcm_channel_area_t *pareas; /* areas for splitted period (rate pcm) */ member in struct:_snd_pcm_rate
62 snd_pcm_channel_area_t *sareas; /* areas for splitted period (slave pcm) */ member in struct:_snd_pcm_rate
63 snd_pcm_rate_info_t info; member in struct:_snd_pcm_rate
64 void *open_func; member in struct:_snd_pcm_rate
65 void *obj; member in struct:_snd_pcm_rate
66 snd_pcm_rate_ops_t ops; member in struct:_snd_pcm_rate
67 unsigned int get_idx; member in struct:_snd_pcm_rate
68 unsigned int put_idx; member in struct:_snd_pcm_rate
69 int16_t *src_buf; member in struct:_snd_pcm_rate
70 int16_t *dst_buf; member in struct:_snd_pcm_rate
71 int start_pending; /* start is triggered but not commited to slave */ member in struct:_snd_pcm_rate
72 snd_htimestamp_t trigger_tstamp; member in struct:_snd_pcm_rate
73 unsigned int plugin_version; member in struct:_snd_pcm_rate
74 unsigned int rate_min, rate_max; member in struct:_snd_pcm_rate
77 #define SND_PCM_RATE_PLUGIN_VERSION_OLD macro
81 snd_pcm_rate_hw_refine_cprepare(snd_pcm_t *pcm ATTRIBUTE_UNUSED, snd_pcm_hw_params_t *params) argument
83 snd_pcm_rate_t *rate = pcm->private_data; local
84 int err; local
85 snd_pcm_access_mask_t access_mask = { SND_PCM_ACCBIT_SHM }; local
86 snd_pcm_format_mask_t format_mask = { SND_PCM_FMTBIT_LINEAR }; local
114 snd_pcm_rate_hw_refine_sprepare(snd_pcm_t *pcm, snd_pcm_hw_params_t *sparams) argument
116 snd_pcm_rate_t *rate = pcm->private_data; local
117 snd_pcm_access_mask_t saccess_mask = { SND_PCM_ACCBIT_MMAP }; local
130 snd_pcm_rate_hw_refine_schange(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, snd_pcm_hw_params_t *sparams) argument
133 snd_pcm_rate_t *rate = pcm->private_data; local
134 snd_interval_t t, buffer_size; local
135 const snd_interval_t *srate, *crate; local
136 int err; local
137 unsigned int links = (SND_PCM_HW_PARBIT_CHANNELS | local
159 snd_pcm_rate_hw_refine_cchange(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, snd_pcm_hw_params_t *sparams) argument
162 snd_pcm_rate_t *rate = pcm->private_data; local
163 snd_interval_t t; local
165 snd_output_t *out; local
167 const snd_interval_t *sbuffer_size, *buffer_size; local
168 const snd_interval_t *srate, *crate; local
169 int err; local
170 unsigned int links = (SND_PCM_HW_PARBIT_CHANNELS | local
194 snd_interval_t *period_size; local
229 snd_pcm_rate_hw_refine(snd_pcm_t *pcm, snd_pcm_hw_params_t *params) argument
240 snd_pcm_rate_hw_params(snd_pcm_t *pcm, snd_pcm_hw_params_t * params) argument
242 snd_pcm_rate_t *rate = pcm->private_data; local
243 snd_pcm_t *slave = rate->gen.slave; local
244 snd_pcm_rate_side_info_t *sinfo, *cinfo; local
245 unsigned int channels, cwidth, swidth, chn; local
246 int err = snd_pcm_hw_params_slave(pcm, params, local
337 snd_pcm_rate_hw_free(snd_pcm_t *pcm) argument
339 snd_pcm_rate_t *rate = pcm->private_data; local
354 recalc(snd_pcm_t *pcm, snd_pcm_uframes_t *val) argument
356 snd_pcm_rate_t *rate = pcm->private_data; local
357 snd_pcm_t *slave = rate->gen.slave; local
358 unsigned long div; local
371 snd_pcm_rate_sw_params(snd_pcm_t *pcm, snd_pcm_sw_params_t * params) argument
373 snd_pcm_rate_t *rate = pcm->private_data; local
374 snd_pcm_t *slave = rate->gen.slave; local
375 snd_pcm_sw_params_t *sparams; local
376 snd_pcm_uframes_t boundary1, boundary2, sboundary; local
377 int err; local
420 snd_pcm_rate_init(snd_pcm_t *pcm) argument
422 snd_pcm_rate_t *rate = pcm->private_data; local
431 convert_to_s16(snd_pcm_rate_t *rate, int16_t *buf, const snd_pcm_channel_area_t *areas, snd_pcm_uframes_t offset, unsigned int frames, unsigned int channels) argument
437 #define GET16_LABELS macro
439 #undef GET16_LABELS macro
441 void *get = get16_labels[rate->get_idx]; local
442 const char *src; local
443 int16_t sample; local
444 const char *srcs[channels]; local
445 int src_step[channels]; local
446 unsigned int c; local
458 #define GET16_END macro
460 #undef GET16_END macro
469 convert_from_s16(snd_pcm_rate_t *rate, const int16_t *buf, const snd_pcm_channel_area_t *areas, snd_pcm_uframes_t offset, unsigned int frames, unsigned int channels) argument
475 #define PUT16_LABELS macro
477 #undef PUT16_LABELS macro
479 void *put = put16_labels[rate->put_idx]; local
480 char *dst; local
481 int16_t sample; local
482 char *dsts[channels]; local
483 int dst_step[channels]; local
484 unsigned int c; local
497 #define PUT16_END macro
499 #undef PUT16_END macro
507 do_convert(const snd_pcm_channel_area_t *dst_areas, snd_pcm_uframes_t dst_offset, unsigned int dst_frames, const snd_pcm_channel_area_t *src_areas, snd_pcm_uframes_t src_offset, unsigned int src_frames, unsigned int channels, snd_pcm_rate_t *rate) argument
515 const int16_t *src; local
516 int16_t *dst; local
539 snd_pcm_rate_write_areas1(snd_pcm_t *pcm, const snd_pcm_channel_area_t *areas, snd_pcm_uframes_t offset, const snd_pcm_channel_area_t *slave_areas, snd_pcm_uframes_t slave_offset) argument
545 snd_pcm_rate_t *rate = pcm->private_data; local
552 snd_pcm_rate_read_areas1(snd_pcm_t *pcm, const snd_pcm_channel_area_t *areas, snd_pcm_uframes_t offset, const snd_pcm_channel_area_t *slave_areas, snd_pcm_uframes_t slave_offset) argument
558 snd_pcm_rate_t *rate = pcm->private_data; local
564 snd_pcm_rate_move_applptr(snd_pcm_t *pcm, snd_pcm_sframes_t frames) argument
566 snd_pcm_rate_t *rate = pcm->private_data; local
567 snd_pcm_uframes_t orig_appl_ptr, appl_ptr = rate->appl_ptr, slave_appl_ptr; local
568 snd_pcm_sframes_t diff, ndiff; local
569 snd_pcm_t *slave = rate->gen.slave; local
616 snd_pcm_rate_sync_hwptr(snd_pcm_t *pcm) argument
618 snd_pcm_rate_t *rate = pcm->private_data; local
619 snd_pcm_uframes_t slave_hw_ptr = *rate->gen.slave->hw.ptr; local
631 snd_pcm_rate_hwsync(snd_pcm_t *pcm) argument
633 snd_pcm_rate_t *rate = pcm->private_data; local
634 int err = snd_pcm_hwsync(rate->gen.slave); local
643 snd_pcm_rate_delay(snd_pcm_t *pcm, snd_pcm_sframes_t *delayp) argument
653 snd_pcm_rate_prepare(snd_pcm_t *pcm) argument
655 snd_pcm_rate_t *rate = pcm->private_data; local
656 int err; local
673 snd_pcm_rate_reset(snd_pcm_t *pcm) argument
675 snd_pcm_rate_t *rate = pcm->private_data; local
676 int err; local
692 snd_pcm_rate_rewind(snd_pcm_t *pcm, snd_pcm_uframes_t frames) argument
694 snd_pcm_rate_t *rate = pcm->private_data; local
695 snd_pcm_sframes_t n = snd_pcm_mmap_hw_avail(pcm); local
708 snd_pcm_rate_forward(snd_pcm_t *pcm, snd_pcm_uframes_t frames) argument
710 snd_pcm_rate_t *rate = pcm->private_data; local
711 snd_pcm_sframes_t n = snd_pcm_mmap_avail(pcm); local
724 snd_pcm_rate_commit_area(snd_pcm_t *pcm, snd_pcm_rate_t *rate, snd_pcm_uframes_t appl_offset, snd_pcm_uframes_t size, snd_pcm_uframes_t slave_size) argument
729 snd_pcm_uframes_t cont = pcm->buffer_size - appl_offset; local
730 const snd_pcm_channel_area_t *areas; local
731 const snd_pcm_channel_area_t *slave_areas; local
732 snd_pcm_uframes_t slave_offset, xfer; local
733 snd_pcm_uframes_t slave_frames = ULONG_MAX; local
734 snd_pcm_sframes_t result; local
831 snd_pcm_rate_commit_next_period(snd_pcm_t *pcm, snd_pcm_uframes_t appl_offset) argument
833 snd_pcm_rate_t *rate = pcm->private_data; local
839 snd_pcm_rate_grab_next_period(snd_pcm_t *pcm, snd_pcm_uframes_t hw_offset) argument
841 snd_pcm_rate_t *rate = pcm->private_data; local
842 snd_pcm_uframes_t cont = pcm->buffer_size - hw_offset; local
843 const snd_pcm_channel_area_t *areas; local
844 const snd_pcm_channel_area_t *slave_areas; local
845 snd_pcm_uframes_t slave_offset, xfer; local
846 snd_pcm_uframes_t slave_frames = ULONG_MAX; local
847 snd_pcm_sframes_t result; local
943 snd_pcm_rate_sync_playback_area(snd_pcm_t *pcm, snd_pcm_uframes_t appl_ptr) argument
945 snd_pcm_rate_t *rate = pcm->private_data; local
946 snd_pcm_t *slave = rate->gen.slave; local
947 snd_pcm_uframes_t xfer; local
948 snd_pcm_sframes_t slave_size; local
949 int err; local
975 snd_pcm_rate_mmap_commit(snd_pcm_t *pcm, snd_pcm_uframes_t offset ATTRIBUTE_UNUSED, snd_pcm_uframes_t size) argument
979 snd_pcm_rate_t *rate = pcm->private_data; local
980 int err; local
995 snd_pcm_rate_avail_update(snd_pcm_t *pcm) argument
997 snd_pcm_rate_t *rate = pcm->private_data; local
998 snd_pcm_t *slave = rate->gen.slave; local
999 snd_pcm_uframes_t slave_size; local
1010 snd_pcm_uframes_t xfer, hw_offset, size; local
1017 int err = snd_pcm_rate_grab_next_period(pcm, hw_offset); local
1033 snd_pcm_rate_htimestamp(snd_pcm_t *pcm, snd_pcm_uframes_t *avail, snd_htimestamp_t *tstamp) argument
1037 snd_pcm_rate_t *rate = pcm->private_data; local
1038 snd_pcm_sframes_t avail1; local
1039 snd_pcm_uframes_t tmp; local
1040 int ok = 0, err; local
1059 snd_pcm_rate_poll_revents(snd_pcm_t *pcm, struct pollfd *pfds, unsigned int nfds, unsigned short *revents) argument
1061 snd_pcm_rate_t *rate = pcm->private_data; local
1070 snd_pcm_rate_drain(snd_pcm_t *pcm) argument
1072 snd_pcm_rate_t *rate = pcm->private_data; local
1076 snd_pcm_uframes_t size, ofs, saved_avail_min; local
1077 snd_pcm_sw_params_t sw_params; local
1088 snd_pcm_uframes_t psize, spsize; local
1112 snd_pcm_rate_state(snd_pcm_t *pcm) argument
1114 snd_pcm_rate_t *rate = pcm->private_data; local
1121 snd_pcm_rate_start(snd_pcm_t *pcm) argument
1123 snd_pcm_rate_t *rate = pcm->private_data; local
1124 snd_pcm_uframes_t avail; local
1144 snd_pcm_rate_status(snd_pcm_t *pcm, snd_pcm_status_t * status) argument
1146 snd_pcm_rate_t *rate = pcm->private_data; local
1147 snd_pcm_sframes_t err; local
1148 snd_atomic_read_t ratom; local
1181 snd_pcm_rate_dump(snd_pcm_t *pcm, snd_output_t *out) argument
1183 snd_pcm_rate_t *rate = pcm->private_data; local
1202 snd_pcm_rate_close(snd_pcm_t *pcm) argument
1204 snd_pcm_rate_t *rate = pcm->private_data; local
1213 static const snd_pcm_fast_ops_t snd_pcm_rate_fast_ops = { variable
1239 static const snd_pcm_ops_t snd_pcm_rate_ops = { variable
1259 snd_pcm_rate_get_default_converter(snd_config_t *root) argument
1261 snd_config_t *n; local
1269 is_builtin_plugin(const char *type) argument
1274 static const char *const default_rate_plugins[] = { variable
1278 rate_open_func(snd_pcm_rate_t *rate, const char *type, int verbose) argument
1280 char open_name[64], lib_name[128], *lib = NULL; local
1281 snd_pcm_rate_open_func_t open_func; local
1282 int err; local
1335 snd_pcm_rate_open(snd_pcm_t **pcmp, const char *name, snd_pcm_format_t sformat, unsigned int srate, const snd_config_t *converter, snd_pcm_t *slave, int close_slave) argument
1340 snd_pcm_t *pcm; local
1341 snd_pcm_rate_t *rate; local
1342 const char *type = NULL; local
1343 int err; local
1345 snd_pcm_rate_open_func_t open_func; local
1372 const char *const *types; local
1383 snd_config_iterator_t i, next; local
1384 snd_config_for_each(i, next, converter) { function
1385 snd_config_t *n = snd_config_iterator_entry(i); local
1485 _snd_pcm_rate_open(snd_pcm_t **pcmp, const char *name, snd_config_t *root, snd_config_t *conf, snd_pcm_stream_t stream, int mode) argument
1489 snd_config_iterator_t i, next; local
1490 int err; local
1491 snd_pcm_t *spcm; local
1492 snd_config_t *slave = NULL, *sconf; local
1493 snd_pcm_format_t sformat = SND_PCM_FORMAT_UNKNOWN; local
1494 int srate = -1; local
1495 const snd_config_t *converter = NULL; local
1497 snd_config_for_each(i, next, conf) { function
1498 snd_config_t *n = snd_config_iterator_entry(i); local
1499 const char *id; local
[all...]
H A Dpcm_rate_linear.c33 #define LINEAR_DIV_SHIFT macro
34 #define LINEAR_DIV macro
36 struct rate_linear { struct
37 unsigned int get_idx; member in struct:rate_linear
38 unsigned int put_idx; member in struct:rate_linear
39 unsigned int pitch; member in struct:rate_linear
40 unsigned int pitch_shift; /* for expand interpolation */ member in struct:rate_linear
41 unsigned int channels; member in struct:rate_linear
42 int16_t *old_sample; member in struct:rate_linear
43 void (*func)(struct rate_linear *rate, member in struct:rate_linear
50 input_frames(void *obj, snd_pcm_uframes_t frames) argument
52 struct rate_linear *rate = obj; local
59 output_frames(void *obj, snd_pcm_uframes_t frames) argument
61 struct rate_linear *rate = obj; local
68 linear_expand(struct rate_linear *rate, const snd_pcm_channel_area_t *dst_areas, snd_pcm_uframes_t dst_offset, unsigned int dst_frames, const snd_pcm_channel_area_t *src_areas, snd_pcm_uframes_t src_offset, unsigned int src_frames) argument
74 #define GET16_LABELS macro
75 #define PUT16_LABELS macro
77 #undef GET16_LABELS macro
78 #undef PUT16_LABELS macro
79 void *get = get16_labels[rate->get_idx]; local
80 void *put = put16_labels[rate->put_idx]; local
81 unsigned int get_threshold = rate->pitch; local
82 unsigned int channel; local
83 unsigned int src_frames1; local
84 unsigned int dst_frames1; local
85 int16_t sample = 0; local
86 unsigned int pos; local
89 const snd_pcm_channel_area_t *src_area = &src_areas[channel]; local
90 const snd_pcm_channel_area_t *dst_area = &dst_areas[channel]; local
91 const char *src; local
92 char *dst; local
93 int src_step, dst_step; local
94 int16_t old_sample = 0; local
95 int16_t new_sample; local
96 int old_weight, new_weight; local
111 #define GET16_END macro
113 #undef GET16_END macro
122 #define PUT16_END macro
124 #undef PUT16_END macro
139 linear_expand_s16(struct rate_linear *rate, const snd_pcm_channel_area_t *dst_areas, snd_pcm_uframes_t dst_offset, unsigned int dst_frames, const snd_pcm_channel_area_t *src_areas, snd_pcm_uframes_t src_offset, unsigned int src_frames) argument
145 unsigned int channel; local
146 unsigned int src_frames1; local
147 unsigned int dst_frames1; local
148 unsigned int get_threshold = rate->pitch; local
149 unsigned int pos; local
152 const snd_pcm_channel_area_t *src_area = &src_areas[channel]; local
153 const snd_pcm_channel_area_t *dst_area = &dst_areas[channel]; local
154 const int16_t *src; local
155 int16_t *dst; local
156 int src_step, dst_step; local
157 int16_t old_sample = 0; local
158 int16_t new_sample; local
159 int old_weight, new_weight; local
190 linear_shrink(struct rate_linear *rate, const snd_pcm_channel_area_t *dst_areas, snd_pcm_uframes_t dst_offset, unsigned int dst_frames, const snd_pcm_channel_area_t *src_areas, snd_pcm_uframes_t src_offset, unsigned int src_frames) argument
196 #define GET16_LABELS macro
197 #define PUT16_LABELS macro
199 #undef GET16_LABELS macro
200 #undef PUT16_LABELS macro
201 void *get = get16_labels[rate->get_idx]; local
202 void *put = put16_labels[rate->put_idx]; local
203 unsigned int get_increment = rate->pitch; local
204 unsigned int channel; local
205 unsigned int src_frames1; local
206 unsigned int dst_frames1; local
207 int16_t sample = 0; local
208 unsigned int pos; local
211 const snd_pcm_channel_area_t *src_area = &src_areas[channel]; local
212 const snd_pcm_channel_area_t *dst_area = &dst_areas[channel]; local
213 const char *src; local
214 char *dst; local
215 int src_step, dst_step; local
216 int16_t old_sample = 0; local
217 int16_t new_sample = 0; local
218 int old_weight, new_weight; local
229 #define GET16_END macro
231 #undef GET16_END macro
243 #define PUT16_END macro
245 #undef PUT16_END macro
260 linear_shrink_s16(struct rate_linear *rate, const snd_pcm_channel_area_t *dst_areas, snd_pcm_uframes_t dst_offset, unsigned int dst_frames, const snd_pcm_channel_area_t *src_areas, snd_pcm_uframes_t src_offset, unsigned int src_frames) argument
266 unsigned int get_increment = rate->pitch; local
267 unsigned int channel; local
268 unsigned int src_frames1; local
269 unsigned int dst_frames1; local
270 unsigned int pos = 0; local
273 const snd_pcm_channel_area_t *src_area = &src_areas[channel]; local
274 const snd_pcm_channel_area_t *dst_area = &dst_areas[channel]; local
275 const int16_t *src; local
276 int16_t *dst; local
277 int src_step, dst_step; local
278 int16_t old_sample = 0; local
279 int16_t new_sample = 0; local
280 int old_weight, new_weight; local
311 linear_convert(void *obj, const snd_pcm_channel_area_t *dst_areas, snd_pcm_uframes_t dst_offset, unsigned int dst_frames, const snd_pcm_channel_area_t *src_areas, snd_pcm_uframes_t src_offset, unsigned int src_frames) argument
317 struct rate_linear *rate = obj; local
322 linear_free(void *obj) argument
324 struct rate_linear *rate = obj; local
330 linear_init(void *obj, snd_pcm_rate_info_t *info) argument
332 struct rate_linear *rate = obj; local
361 linear_adjust_pitch(void *obj, snd_pcm_rate_info_t *info) argument
363 struct rate_linear *rate = obj; local
364 snd_pcm_uframes_t cframes; local
371 snd_pcm_uframes_t cframes_new; local
394 linear_reset(void *obj) argument
396 struct rate_linear *rate = obj; local
403 linear_close(void *obj) argument
408 get_supported_rates(ATTRIBUTE_UNUSED void *rate, unsigned int *rate_min, unsigned int *rate_max) argument
416 linear_dump(ATTRIBUTE_UNUSED void *rate, snd_output_t *out) argument
421 static const snd_pcm_rate_ops_t linear_ops = { variable
435 linear(ATTRIBUTE_UNUSED unsigned int version, void **objp, snd_pcm_rate_ops_t *ops) argument
438 struct rate_linear *rate; local
[all...]
H A Dpcm_route.c38 const char *_snd_module_pcm_route = ""; variable
45 #define div macro
47 #define div macro
53 int channel; member in struct:__anon1498
54 int as_int; member in struct:__anon1498
56 float as_float; member in struct:__anon1498
58 } snd_pcm_route_ttable_src_t; typedef in typeref:struct:__anon1498
60 typedef struct snd_pcm_route_ttable_dst snd_pcm_route_ttable_dst_t; typedef in typeref:struct:snd_pcm_route_ttable_dst
63 enum {UINT32=0, UINT64=1, FLOAT=2} sum_idx; member in struct:__anon1499
64 unsigned int get_idx; member in struct:__anon1499
65 unsigned int put_idx; member in struct:__anon1499
66 unsigned int conv_idx; member in struct:__anon1499
67 int use_getput; member in struct:__anon1499
68 unsigned int src_size; member in struct:__anon1499
69 snd_pcm_format_t dst_sfmt; member in struct:__anon1499
70 unsigned int ndsts; member in struct:__anon1499
71 snd_pcm_route_ttable_dst_t *dsts; member in struct:__anon1499
72 } snd_pcm_route_params_t; typedef in typeref:struct:__anon1499
75 typedef void (*route_f)(const snd_pcm_channel_area_t *dst_area, typedef
84 struct snd_pcm_route_ttable_dst { struct
85 int att; /* Attenuated */ member in struct:snd_pcm_route_ttable_dst
86 unsigned int nsrcs; member in struct:snd_pcm_route_ttable_dst
87 snd_pcm_route_ttable_src_t* srcs; member in struct:snd_pcm_route_ttable_dst
88 route_f func; member in struct:snd_pcm_route_ttable_dst
92 int32_t as_sint32; member in union:__anon1501
93 int64_t as_sint64; member in union:__anon1501
95 float as_float; member in union:__anon1501
97 } sum_t; typedef in typeref:union:__anon1501
101 snd_pcm_plugin_t plug; member in struct:__anon1502
102 snd_pcm_format_t sformat; member in struct:__anon1502
103 int schannels; member in struct:__anon1502
104 snd_pcm_route_params_t params; member in struct:__anon1502
105 } snd_pcm_route_t; typedef in typeref:struct:__anon1502
109 snd_pcm_route_convert1_zero(const snd_pcm_channel_area_t *dst_area, snd_pcm_uframes_t dst_offset, const snd_pcm_channel_area_t *src_areas ATTRIBUTE_UNUSED, snd_pcm_uframes_t src_offset ATTRIBUTE_UNUSED, unsigned int src_channels ATTRIBUTE_UNUSED, snd_pcm_uframes_t frames, const snd_pcm_route_ttable_dst_t* ttable ATTRIBUTE_UNUSED, const snd_pcm_route_params_t *params) argument
123 snd_pcm_route_convert1_one(const snd_pcm_channel_area_t *dst_area, snd_pcm_uframes_t dst_offset, const snd_pcm_channel_area_t *src_areas, snd_pcm_uframes_t src_offset, unsigned int src_channels, snd_pcm_uframes_t frames, const snd_pcm_route_ttable_dst_t* ttable, const snd_pcm_route_params_t *params) argument
132 #define CONV_LABELS macro
134 #undef CONV_LABELS macro
135 void *conv; local
136 const snd_pcm_channel_area_t *src_area = 0; local
137 unsigned int srcidx; local
138 const char *src; local
139 char *dst; local
140 int src_step, dst_step; local
142 unsigned int channel = ttable->srcs[srcidx].channel; local
164 #define CONV_END macro
166 #undef CONV_END macro
173 snd_pcm_route_convert1_one_getput(const snd_pcm_channel_area_t *dst_area, snd_pcm_uframes_t dst_offset, const snd_pcm_channel_area_t *src_areas, snd_pcm_uframes_t src_offset, unsigned int src_channels, snd_pcm_uframes_t frames, const snd_pcm_route_ttable_dst_t* ttable, const snd_pcm_route_params_t *params) argument
182 #define CONV24_LABELS macro
184 #undef CONV24_LABELS macro
185 void *get, *put; local
186 const snd_pcm_channel_area_t *src_area = 0; local
187 unsigned int srcidx; local
188 const char *src; local
189 char *dst; local
190 int src_step, dst_step; local
191 u_int32_t sample = 0; local
193 unsigned int channel = ttable->srcs[srcidx].channel; local
216 #define CONV24_END macro
218 #undef CONV24_END macro
225 snd_pcm_route_convert1_many(const snd_pcm_channel_area_t *dst_area, snd_pcm_uframes_t dst_offset, const snd_pcm_channel_area_t *src_areas, snd_pcm_uframes_t src_offset, unsigned int src_channels, snd_pcm_uframes_t frames, const snd_pcm_route_ttable_dst_t* ttable, const snd_pcm_route_params_t *params) argument
234 #define GETS_LABELS macro
235 #define PUT32_LABELS macro
237 #undef GETS_LABELS macro
238 #undef PUT32_LABELS macro
239 static void *const zero_labels[3] = { local
246 static void *const add_labels[3 * 2] = { local
254 static void *const norm_labels[3 * 2 * 4] = { local
282 void *zero, *get, *add, *norm, *put32; local
283 int nsrcs = ttable->nsrcs; local
284 char *dst; local
285 int dst_step; local
286 const char *srcs[nsrcs]; local
287 int src_steps[nsrcs]; local
288 snd_pcm_route_ttable_src_t src_tt[nsrcs]; local
289 int32_t sample = 0; local
290 int srcidx, srcidx1 = 0; local
292 const snd_pcm_channel_area_t *src_area; local
293 unsigned int channel = ttable->srcs[srcidx].channel; local
332 snd_pcm_route_ttable_src_t *ttp = src_tt; local
333 sum_t sum; local
350 const char *src = srcs[srcidx]; local
354 #define GETS_END macro
356 #undef GETS_END macro
466 #define PUT32_END macro
468 #undef PUT32_END macro
477 snd_pcm_route_convert(const snd_pcm_channel_area_t *dst_areas, snd_pcm_uframes_t dst_offset, const snd_pcm_channel_area_t *src_areas, snd_pcm_uframes_t src_offset, unsigned int src_channels, unsigned int dst_channels, snd_pcm_uframes_t frames, snd_pcm_route_params_t *params) argument
486 unsigned int dst_channel; local
487 snd_pcm_route_ttable_dst_t *dstp; local
488 const snd_pcm_channel_area_t *dst_area; local
508 snd_pcm_route_close(snd_pcm_t *pcm) argument
510 snd_pcm_route_t *route = pcm->private_data; local
511 snd_pcm_route_params_t *params = &route->params; local
512 unsigned int dst_channel; local
523 snd_pcm_route_hw_refine_cprepare(snd_pcm_t *pcm ATTRIBUTE_UNUSED, snd_pcm_hw_params_t *params) argument
525 int err; local
526 snd_pcm_access_mask_t access_mask = { SND_PCM_ACCBIT_SHM }; local
527 snd_pcm_format_mask_t format_mask = { SND_PCM_FMTBIT_LINEAR }; local
546 snd_pcm_route_hw_refine_sprepare(snd_pcm_t *pcm, snd_pcm_hw_params_t *sparams) argument
548 snd_pcm_route_t *route = pcm->private_data; local
549 snd_pcm_access_mask_t saccess_mask = { SND_PCM_ACCBIT_MMAP }; local
564 snd_pcm_route_hw_refine_schange(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, snd_pcm_hw_params_t *sparams) argument
567 snd_pcm_route_t *route = pcm->private_data; local
568 int err; local
569 unsigned int links = (SND_PCM_HW_PARBIT_RATE | local
588 snd_pcm_route_hw_refine_cchange(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, snd_pcm_hw_params_t *sparams) argument
591 snd_pcm_route_t *route = pcm->private_data; local
592 int err; local
593 unsigned int links = (SND_PCM_HW_PARBIT_RATE | local
612 snd_pcm_route_hw_refine(snd_pcm_t *pcm, snd_pcm_hw_params_t *params) argument
622 snd_pcm_route_hw_params(snd_pcm_t *pcm, snd_pcm_hw_params_t * params) argument
624 snd_pcm_route_t *route = pcm->private_data; local
625 snd_pcm_t *slave = route->plug.gen.slave; local
626 snd_pcm_format_t src_format, dst_format; local
627 int err = snd_pcm_hw_params_slave(pcm, params, local
663 snd_pcm_route_write_areas(snd_pcm_t *pcm, const snd_pcm_channel_area_t *areas, snd_pcm_uframes_t offset, snd_pcm_uframes_t size, const snd_pcm_channel_area_t *slave_areas, snd_pcm_uframes_t slave_offset, snd_pcm_uframes_t *slave_sizep) argument
671 snd_pcm_route_t *route = pcm->private_data; local
672 snd_pcm_t *slave = route->plug.gen.slave; local
685 snd_pcm_route_read_areas(snd_pcm_t *pcm, const snd_pcm_channel_area_t *areas, snd_pcm_uframes_t offset, snd_pcm_uframes_t size, const snd_pcm_channel_area_t *slave_areas, snd_pcm_uframes_t slave_offset, snd_pcm_uframes_t *slave_sizep) argument
693 snd_pcm_route_t *route = pcm->private_data; local
694 snd_pcm_t *slave = route->plug.gen.slave; local
706 snd_pcm_route_dump(snd_pcm_t *pcm, snd_output_t *out) argument
708 snd_pcm_route_t *route = pcm->private_data; local
709 unsigned int dst; local
717 snd_pcm_route_ttable_dst_t *d = &route->params.dsts[dst]; local
718 unsigned int src; local
726 snd_pcm_route_ttable_src_t *s = &d->srcs[src]; local
750 static const snd_pcm_ops_t snd_pcm_route_ops = { variable
765 route_load_ttable(snd_pcm_route_params_t *params, snd_pcm_stream_t stream, unsigned int tt_ssize, snd_pcm_route_ttable_entry_t *ttable, unsigned int tt_cused, unsigned int tt_sused) argument
770 unsigned int src_channel, dst_channel; local
771 snd_pcm_route_ttable_dst_t *dptr; local
772 unsigned int sused, dused, smul, dmul; local
790 snd_pcm_route_ttable_entry_t t = 0; local
791 int att = 0; local
792 int nsrcs = 0; local
793 snd_pcm_route_ttable_src_t srcs[sused]; local
795 snd_pcm_route_ttable_entry_t v; local
851 snd_pcm_route_open(snd_pcm_t **pcmp, const char *name, snd_pcm_format_t sformat, int schannels, snd_pcm_route_ttable_entry_t *ttable, unsigned int tt_ssize, unsigned int tt_cused, unsigned int tt_sused, snd_pcm_t *slave, int close_slave) argument
858 snd_pcm_t *pcm; local
859 snd_pcm_route_t *route; local
860 int err; local
909 snd_pcm_route_determine_ttable(snd_config_t *tt, unsigned int *tt_csize, unsigned int *tt_ssize) argument
913 snd_config_iterator_t i, inext; local
914 long csize = 0, ssize = 0; local
915 int err; local
918 snd_config_for_each(i, inext, tt) { function
919 snd_config_t *in = snd_config_iterator_entry(i); local
920 snd_config_iterator_t j, jnext; local
921 long cchannel; local
922 const char *id; local
934 snd_config_for_each(j, jnext, in) { function
935 snd_config_t *jnode = snd_config_iterator_entry(j); local
936 long schannel; local
937 const char *id; local
969 snd_pcm_route_load_ttable(snd_config_t *tt, snd_pcm_route_ttable_entry_t *ttable, unsigned int tt_csize, unsigned int tt_ssize, unsigned int *tt_cused, unsigned int *tt_sused, int schannels) argument
974 int cused = -1; local
975 int sused = -1; local
976 snd_config_iterator_t i, inext; local
977 unsigned int k; local
978 int err; local
981 snd_config_for_each(i, inext, tt) { function
982 snd_config_t *in = snd_config_iterator_entry(i); local
983 snd_config_iterator_t j, jnext; local
984 long cchannel; local
985 const char *id; local
996 snd_config_for_each(j, jnext, in) { function
997 snd_config_t *jnode = snd_config_iterator_entry(j); local
998 double value; local
999 long schannel; local
1000 const char *id; local
1012 long v; local
1081 _snd_pcm_route_open(snd_pcm_t **pcmp, const char *name, snd_config_t *root, snd_config_t *conf, snd_pcm_stream_t stream, int mode) argument
1085 snd_config_iterator_t i, next; local
1086 int err; local
1087 snd_pcm_t *spcm; local
1088 snd_config_t *slave = NULL, *sconf; local
1089 snd_pcm_format_t sformat = SND_PCM_FORMAT_UNKNOWN; local
1090 int schannels = -1; local
1091 snd_config_t *tt = NULL; local
1092 snd_pcm_route_ttable_entry_t *ttable = NULL; local
1093 unsigned int csize, ssize; local
1094 unsigned int cused, sused; local
1095 snd_config_for_each(i, next, conf) { function
1096 snd_config_t *n = snd_config_iterator_entry(i); local
1097 const char *id; local
[all...]
H A Dpcm_share.c44 const char *_snd_module_pcm_share = ""; variable
50 static pthread_mutex_t snd_pcm_share_slaves_mutex = PTHREAD_MUTEX_INITIALIZER; variable
53 #define Pthread_mutex_lock macro
56 int err = pthread_mutex_trylock(mutex); \\ variable
59 pthread_mutex_lock(mutex); \\ variable
62 *(mutex##_holder) = __FUNCTION__; \\ variable
65 #define Pthread_mutex_unlock macro
76 struct list_head clients; member in struct:__anon1503
77 struct list_head list; member in struct:__anon1503
78 snd_pcm_t *pcm; member in struct:__anon1503
79 snd_pcm_format_t format; member in struct:__anon1503
80 int rate; member in struct:__anon1503
81 unsigned int channels; member in struct:__anon1503
82 snd_pcm_sframes_t period_time; member in struct:__anon1503
83 snd_pcm_sframes_t buffer_time; member in struct:__anon1503
84 unsigned int open_count; member in struct:__anon1503
85 unsigned int setup_count; member in struct:__anon1503
86 unsigned int prepared_count; member in struct:__anon1503
87 unsigned int running_count; member in struct:__anon1503
88 snd_pcm_uframes_t safety_threshold; member in struct:__anon1503
89 snd_pcm_uframes_t silence_frames; member in struct:__anon1503
90 snd_pcm_sw_params_t sw_params; member in struct:__anon1503
91 snd_pcm_uframes_t hw_ptr; member in struct:__anon1503
92 int poll[2]; member in struct:__anon1503
93 int polling; member in struct:__anon1503
94 pthread_t thread; member in struct:__anon1503
95 pthread_mutex_t mutex; member in struct:__anon1503
97 char *mutex_holder; member in struct:__anon1503
99 pthread_cond_t poll_cond; member in struct:__anon1503
100 } snd_pcm_share_slave_t; typedef in typeref:struct:__anon1503
103 struct list_head list; member in struct:__anon1504
104 snd_pcm_t *pcm; member in struct:__anon1504
105 snd_pcm_share_slave_t *slave; member in struct:__anon1504
106 unsigned int channels; member in struct:__anon1504
107 unsigned int *slave_channels; member in struct:__anon1504
108 int drain_silenced; member in struct:__anon1504
109 snd_htimestamp_t trigger_tstamp; member in struct:__anon1504
110 snd_pcm_state_t state; member in struct:__anon1504
111 snd_pcm_uframes_t hw_ptr; member in struct:__anon1504
112 snd_pcm_uframes_t appl_ptr; member in struct:__anon1504
113 int ready; member in struct:__anon1504
114 int client_socket; member in struct:__anon1504
115 int slave_socket; member in struct:__anon1504
116 } snd_pcm_share_t; typedef in typeref:struct:__anon1504
122 snd_pcm_share_slave_avail(snd_pcm_share_slave_t *slave) argument
124 snd_pcm_sframes_t avail; local
125 snd_pcm_t *pcm = slave->pcm; local
136 _snd_pcm_share_slave_forward(snd_pcm_share_slave_t *slave) argument
138 struct list_head *i; local
139 snd_pcm_uframes_t buffer_size, boundary; local
140 snd_pcm_uframes_t slave_appl_ptr; local
141 snd_pcm_sframes_t frames, safety_frames; local
142 snd_pcm_sframes_t min_frames, max_frames; local
143 snd_pcm_uframes_t avail, slave_avail; local
144 snd_pcm_uframes_t slave_hw_avail; local
152 snd_pcm_share_t *share = list_entry(i, snd_pcm_share_t, list); local
153 snd_pcm_t *pcm = share->pcm; local
199 _snd_pcm_share_missing(snd_pcm_t *pcm) argument
201 snd_pcm_share_t *share = pcm->private_data; local
202 snd_pcm_share_slave_t *slave = share->slave; local
203 snd_pcm_t *spcm = slave->pcm; local
204 snd_pcm_uframes_t buffer_size = spcm->buffer_size; local
205 int ready = 1, running = 0; local
206 snd_pcm_uframes_t avail = 0, slave_avail; local
207 snd_pcm_sframes_t hw_avail; local
208 snd_pcm_uframes_t missing = INT_MAX; local
209 snd_pcm_sframes_t ready_missing; local
231 snd_pcm_sframes_t slave_hw_avail = buffer_size - slave_avail; local
232 snd_pcm_sframes_t safety_missing = slave_hw_avail - slave->safety_threshold; local
234 snd_pcm_sframes_t err; local
235 snd_pcm_sframes_t frames = slave_avail - avail; local
273 snd_pcm_uframes_t xrun_missing = pcm->stop_threshold - avail; local
292 char buf[1]; local
313 snd_pcm_uframes_t offset = share->appl_ptr % buffer_size; local
314 snd_pcm_uframes_t xfer = 0; local
315 snd_pcm_uframes_t size = slave->silence_frames; local
317 snd_pcm_uframes_t frames = size - xfer; local
318 snd_pcm_uframes_t cont = buffer_size - offset; local
329 snd_pcm_uframes_t silence_missing; local
339 _snd_pcm_share_slave_missing(snd_pcm_share_slave_t *slave) argument
341 snd_pcm_uframes_t missing = INT_MAX; local
342 struct list_head *i; local
346 snd_pcm_share_t *share = list_entry(i, snd_pcm_share_t, list); local
347 snd_pcm_t *pcm = share->pcm; local
348 snd_pcm_uframes_t m = _snd_pcm_share_missing(pcm); local
355 snd_pcm_share_thread(void *data) argument
357 snd_pcm_share_slave_t *slave = data; local
358 snd_pcm_t *spcm = slave->pcm; local
359 struct pollfd pfd[2]; local
360 int err; local
376 snd_pcm_uframes_t missing; local
381 snd_pcm_uframes_t hw_ptr; local
382 snd_pcm_sframes_t avail_min; local
407 char buf[1]; local
419 _snd_pcm_share_update(snd_pcm_t *pcm) argument
421 snd_pcm_share_t *share = pcm->private_data; local
422 snd_pcm_share_slave_t *slave = share->slave; local
423 snd_pcm_t *spcm = slave->pcm; local
424 snd_pcm_uframes_t missing; local
434 snd_pcm_uframes_t hw_ptr; local
435 snd_pcm_sframes_t avail_min; local
447 int err; local
458 snd_pcm_share_nonblock(snd_pcm_t *pcm ATTRIBUTE_UNUSED, int nonblock ATTRIBUTE_UNUSED) argument
463 snd_pcm_share_async(snd_pcm_t *pcm ATTRIBUTE_UNUSED, int sig ATTRIBUTE_UNUSED, pid_t pid ATTRIBUTE_UNUSED) argument
468 snd_pcm_share_info(snd_pcm_t *pcm, snd_pcm_info_t *info) argument
470 snd_pcm_share_t *share = pcm->private_data; local
474 snd_pcm_share_hw_refine_cprepare(snd_pcm_t *pcm, snd_pcm_hw_params_t *params) argument
476 snd_pcm_share_t *share = pcm->private_data; local
477 snd_pcm_share_slave_t *slave = share->slave; local
478 snd_pcm_access_mask_t access_mask; local
479 int err; local
518 snd_pcm_share_hw_refine_sprepare(snd_pcm_t *pcm, snd_pcm_hw_params_t *sparams) argument
520 snd_pcm_share_t *share = pcm->private_data; local
521 snd_pcm_share_slave_t *slave = share->slave; local
522 snd_pcm_access_mask_t saccess_mask = { SND_PCM_ACCBIT_MMAP }; local
531 snd_pcm_share_hw_refine_schange(snd_pcm_t *pcm ATTRIBUTE_UNUSED, snd_pcm_hw_params_t *params, snd_pcm_hw_params_t *sparams) argument
534 int err; local
535 unsigned int links = (SND_PCM_HW_PARBIT_FORMAT | local
543 const snd_pcm_access_mask_t *access_mask = snd_pcm_hw_param_get_mask(params, SND_PCM_HW_PARAM_ACCESS); local
547 snd_pcm_access_mask_t saccess_mask; local
561 snd_pcm_share_hw_refine_cchange(snd_pcm_t *pcm ATTRIBUTE_UNUSED, snd_pcm_hw_params_t *params, snd_pcm_hw_params_t *sparams) argument
564 int err; local
565 unsigned int links = (SND_PCM_HW_PARBIT_FORMAT | local
573 snd_pcm_access_mask_t access_mask; local
574 const snd_pcm_access_mask_t *saccess_mask = snd_pcm_hw_param_get_mask(sparams, SND_PCM_HW_PARAM_ACCESS); local
592 snd_pcm_share_hw_refine_slave(snd_pcm_t *pcm, snd_pcm_hw_params_t *params) argument
594 snd_pcm_share_t *share = pcm->private_data; local
598 snd_pcm_share_hw_params_slave(snd_pcm_t *pcm, snd_pcm_hw_params_t *params) argument
600 snd_pcm_share_t *share = pcm->private_data; local
604 snd_pcm_share_hw_refine(snd_pcm_t *pcm, snd_pcm_hw_params_t *params) argument
614 snd_pcm_share_hw_params(snd_pcm_t *pcm, snd_pcm_hw_params_t *params) argument
616 snd_pcm_share_t *share = pcm->private_data; local
617 snd_pcm_share_slave_t *slave = share->slave; local
618 snd_pcm_t *spcm = slave->pcm; local
619 int err = 0; local
670 snd_pcm_share_hw_free(snd_pcm_t *pcm) argument
672 snd_pcm_share_t *share = pcm->private_data; local
673 snd_pcm_share_slave_t *slave = share->slave; local
674 int err = 0; local
684 snd_pcm_share_sw_params(snd_pcm_t *pcm ATTRIBUTE_UNUSED, snd_pcm_sw_params_t *params ATTRIBUTE_UNUSED) argument
689 snd_pcm_share_status(snd_pcm_t *pcm, snd_pcm_status_t *status) argument
691 snd_pcm_share_t *share = pcm->private_data; local
692 snd_pcm_share_slave_t *slave = share->slave; local
693 int err = 0; local
694 snd_pcm_sframes_t sd = 0, d = 0; local
720 snd_pcm_share_state(snd_pcm_t *pcm) argument
722 snd_pcm_share_t *share = pcm->private_data; local
726 _snd_pcm_share_hwsync(snd_pcm_t *pcm) argument
728 snd_pcm_share_t *share = pcm->private_data; local
729 snd_pcm_share_slave_t *slave = share->slave; local
739 snd_pcm_share_hwsync(snd_pcm_t *pcm) argument
741 snd_pcm_share_t *share = pcm->private_data; local
742 snd_pcm_share_slave_t *slave = share->slave; local
743 int err; local
750 _snd_pcm_share_delay(snd_pcm_t *pcm, snd_pcm_sframes_t *delayp) argument
752 snd_pcm_share_t *share = pcm->private_data; local
753 snd_pcm_share_slave_t *slave = share->slave; local
769 snd_pcm_share_delay(snd_pcm_t *pcm, snd_pcm_sframes_t *delayp) argument
771 snd_pcm_share_t *share = pcm->private_data; local
772 snd_pcm_share_slave_t *slave = share->slave; local
773 int err; local
780 snd_pcm_share_avail_update(snd_pcm_t *pcm) argument
782 snd_pcm_share_t *share = pcm->private_data; local
783 snd_pcm_share_slave_t *slave = share->slave; local
784 snd_pcm_sframes_t avail; local
801 snd_pcm_share_htimestamp(snd_pcm_t *pcm, snd_pcm_uframes_t *avail, snd_htimestamp_t *tstamp) argument
804 snd_pcm_share_t *share = pcm->private_data; local
805 snd_pcm_share_slave_t *slave = share->slave; local
806 int err; local
814 _snd_pcm_share_mmap_commit(snd_pcm_t *pcm, snd_pcm_uframes_t offset ATTRIBUTE_UNUSED, snd_pcm_uframes_t size) argument
818 snd_pcm_share_t *share = pcm->private_data; local
819 snd_pcm_share_slave_t *slave = share->slave; local
820 snd_pcm_t *spcm = slave->pcm; local
821 snd_pcm_sframes_t ret; local
822 snd_pcm_sframes_t frames; local
841 snd_pcm_sframes_t err; local
857 snd_pcm_share_mmap_commit(snd_pcm_t *pcm, snd_pcm_uframes_t offset, snd_pcm_uframes_t size) argument
861 snd_pcm_share_t *share = pcm->private_data; local
862 snd_pcm_share_slave_t *slave = share->slave; local
863 snd_pcm_sframes_t ret; local
870 snd_pcm_share_prepare(snd_pcm_t *pcm) argument
872 snd_pcm_share_t *share = pcm->private_data; local
873 snd_pcm_share_slave_t *slave = share->slave; local
874 int err = 0; local
903 snd_pcm_share_reset(snd_pcm_t *pcm) argument
905 snd_pcm_share_t *share = pcm->private_data; local
906 snd_pcm_share_slave_t *slave = share->slave; local
907 int err = 0; local
917 snd_pcm_share_start(snd_pcm_t *pcm) argument
919 snd_pcm_share_t *share = pcm->private_data; local
920 snd_pcm_share_slave_t *slave = share->slave; local
921 snd_pcm_t *spcm = slave->pcm; local
922 int err = 0; local
928 snd_pcm_uframes_t hw_avail = snd_pcm_mmap_playback_hw_avail(pcm); local
929 snd_pcm_uframes_t xfer = 0; local
935 snd_pcm_sframes_t sd; local
947 snd_pcm_uframes_t frames = hw_avail - xfer; local
948 snd_pcm_uframes_t offset = snd_pcm_mmap_offset(pcm); local
949 snd_pcm_uframes_t cont = pcm->buffer_size - offset; local
961 snd_pcm_sframes_t res; local
983 snd_pcm_share_pause(snd_pcm_t *pcm ATTRIBUTE_UNUSED, int enable ATTRIBUTE_UNUSED) argument
988 snd_pcm_share_resume(snd_pcm_t *pcm ATTRIBUTE_UNUSED) argument
993 snd_pcm_share_channel_info(snd_pcm_t *pcm, snd_pcm_channel_info_t *info) argument
995 snd_pcm_share_t *share = pcm->private_data; local
996 snd_pcm_share_slave_t *slave = share->slave; local
997 unsigned int channel = info->channel; local
998 int c = share->slave_channels[channel]; local
999 int err; local
1006 _snd_pcm_share_rewind(snd_pcm_t *pcm, snd_pcm_uframes_t frames) argument
1008 snd_pcm_share_t *share = pcm->private_data; local
1009 snd_pcm_share_slave_t *slave = share->slave; local
1010 snd_pcm_sframes_t n; local
1032 snd_pcm_sframes_t ret = snd_pcm_rewind(slave->pcm, frames); local
1042 snd_pcm_share_rewindable(snd_pcm_t *pcm) argument
1044 snd_pcm_share_t *share = pcm->private_data; local
1045 snd_pcm_share_slave_t *slave = share->slave; local
1046 snd_pcm_sframes_t ret; local
1053 snd_pcm_share_rewind(snd_pcm_t *pcm, snd_pcm_uframes_t frames) argument
1055 snd_pcm_share_t *share = pcm->private_data; local
1056 snd_pcm_share_slave_t *slave = share->slave; local
1057 snd_pcm_sframes_t ret; local
1064 _snd_pcm_share_forward(snd_pcm_t *pcm, snd_pcm_uframes_t frames) argument
1066 snd_pcm_share_t *share = pcm->private_data; local
1067 snd_pcm_share_slave_t *slave = share->slave; local
1068 snd_pcm_sframes_t n; local
1089 snd_pcm_sframes_t ret = INTERNAL(snd_pcm_forward)(slave->pcm, frames); local
1099 snd_pcm_share_forwardable(snd_pcm_t *pcm) argument
1101 snd_pcm_share_t *share = pcm->private_data; local
1102 snd_pcm_share_slave_t *slave = share->slave; local
1103 snd_pcm_sframes_t ret; local
1110 snd_pcm_share_forward(snd_pcm_t *pcm, snd_pcm_uframes_t frames) argument
1112 snd_pcm_share_t *share = pcm->private_data; local
1113 snd_pcm_share_slave_t *slave = share->slave; local
1114 snd_pcm_sframes_t ret; local
1122 _snd_pcm_share_stop(snd_pcm_t *pcm, snd_pcm_state_t state) argument
1124 snd_pcm_share_t *share = pcm->private_data; local
1125 snd_pcm_share_slave_t *slave = share->slave; local
1139 int err; local
1140 snd_pcm_sframes_t delay; local
1152 int err = snd_pcm_drop(slave->pcm); local
1157 snd_pcm_share_drain(snd_pcm_t *pcm) argument
1159 snd_pcm_share_t *share = pcm->private_data; local
1160 snd_pcm_share_slave_t *slave = share->slave; local
1161 int err = 0; local
1215 snd_pcm_share_drop(snd_pcm_t *pcm) argument
1217 snd_pcm_share_t *share = pcm->private_data; local
1218 snd_pcm_share_slave_t *slave = share->slave; local
1219 int err = 0; local
1252 snd_pcm_share_close(snd_pcm_t *pcm) argument
1254 snd_pcm_share_t *share = pcm->private_data; local
1255 snd_pcm_share_slave_t *slave = share->slave; local
1256 int err = 0; local
1284 snd_pcm_share_mmap(snd_pcm_t *pcm ATTRIBUTE_UNUSED) argument
1289 snd_pcm_share_munmap(snd_pcm_t *pcm ATTRIBUTE_UNUSED) argument
1294 snd_pcm_share_dump(snd_pcm_t *pcm, snd_output_t *out) argument
1296 snd_pcm_share_t *share = pcm->private_data; local
1297 snd_pcm_share_slave_t *slave = share->slave; local
1298 unsigned int k; local
1311 static const snd_pcm_ops_t snd_pcm_share_ops = { variable
1326 static const snd_pcm_fast_ops_t snd_pcm_share_fast_ops = { variable
1370 snd_pcm_share_open(snd_pcm_t **pcmp, const char *name, const char *sname, snd_pcm_format_t sformat, int srate, unsigned int schannels, int speriod_time, int sbuffer_time, unsigned int channels, unsigned int *channels_map, snd_pcm_stream_t stream, int mode) argument
1377 snd_pcm_t *pcm; local
1378 snd_pcm_share_t *share; local
1379 int err; local
1380 struct list_head *i; local
1381 char slave_map[32] = { 0 }; local
1382 unsigned int k; local
1383 snd_pcm_share_slave_t *slave = NULL; local
1384 int sd[2]; local
1429 int bufsize = 1; local
1432 struct pollfd pfd; local
1436 char buf[1]; local
1456 snd_pcm_share_slave_t *s = list_entry(i, snd_pcm_share_slave_t, list); local
1463 snd_pcm_t *spcm; local
1505 snd_pcm_share_t *sh = list_entry(i, snd_pcm_share_t, list); local
1600 _snd_pcm_share_open(snd_pcm_t **pcmp, const char *name, snd_config_t *root, snd_config_t *conf, snd_pcm_stream_t stream, int mode) argument
1604 snd_config_iterator_t i, next; local
1605 const char *sname = NULL; local
1606 snd_config_t *bindings = NULL; local
1607 int err; local
1608 snd_config_t *slave = NULL, *sconf; local
1609 unsigned int *channels_map = NULL; local
1610 unsigned int channels = 0; local
1611 snd_pcm_format_t sformat = SND_PCM_FORMAT_UNKNOWN; local
1612 int schannels = -1; local
1613 int srate = -1; local
1614 int speriod_time= -1, sbuffer_time = -1; local
1615 unsigned int schannel_max = 0; local
1617 snd_config_for_each(i, next, conf) { function
1618 snd_config_t *n = snd_config_iterator_entry(i); local
1619 const char *id; local
1666 snd_config_for_each(i, next, bindings) { function
1667 long cchannel = -1; local
1668 snd_config_t *n = snd_config_iterator_entry(i); local
1669 const char *id; local
1692 snd_config_for_each(i, next, bindings) { function
1693 snd_config_t *n = snd_config_iterator_entry(i); local
1694 const char *id; local
1695 long cchannel; local
1696 long schannel = -1; local
[all...]
H A Dpcm_shm.c50 const char *_snd_module_pcm_shm = ""; variable
55 int socket; member in struct:__anon1505
56 volatile snd_pcm_shm_ctrl_t *ctrl; member in struct:__anon1505
57 } snd_pcm_shm_t; typedef in typeref:struct:__anon1505
60 snd_pcm_shm_action_fd0(snd_pcm_t *pcm, int *fd) argument
62 snd_pcm_shm_t *shm = pcm->private_data; local
63 int err; local
64 char buf[1]; local
65 volatile snd_pcm_shm_ctrl_t *ctrl = shm->ctrl; local
80 snd_pcm_shm_new_rbptr(snd_pcm_t *pcm, snd_pcm_shm_t *shm, snd_pcm_rbptr_t *rbptr, volatile snd_pcm_shm_rbptr_t *shm_rbptr) argument
89 void *ptr; local
90 size_t mmap_size, mmap_offset, offset; local
91 int fd; local
92 long result; local
112 snd_pcm_shm_action(snd_pcm_t *pcm) argument
114 snd_pcm_shm_t *shm = pcm->private_data; local
115 int err, result; local
116 char buf[1]; local
117 volatile snd_pcm_shm_ctrl_t *ctrl = shm->ctrl; local
147 snd_pcm_shm_action_fd(snd_pcm_t *pcm, int *fd) argument
149 snd_pcm_shm_t *shm = pcm->private_data; local
150 int err; local
151 char buf[1]; local
152 volatile snd_pcm_shm_ctrl_t *ctrl = shm->ctrl; local
181 snd_pcm_shm_nonblock(snd_pcm_t *pcm ATTRIBUTE_UNUSED, int nonblock ATTRIBUTE_UNUSED) argument
186 snd_pcm_shm_async(snd_pcm_t *pcm, int sig, pid_t pid) argument
188 snd_pcm_shm_t *shm = pcm->private_data; local
189 volatile snd_pcm_shm_ctrl_t *ctrl = shm->ctrl; local
196 snd_pcm_shm_info(snd_pcm_t *pcm, snd_pcm_info_t * info) argument
198 snd_pcm_shm_t *shm = pcm->private_data; local
199 volatile snd_pcm_shm_ctrl_t *ctrl = shm->ctrl; local
200 int err; local
210 snd_pcm_shm_hw_refine_cprepare(snd_pcm_t *pcm ATTRIBUTE_UNUSED, snd_pcm_hw_params_t *params ATTRIBUTE_UNUSED) argument
215 snd_pcm_shm_hw_refine_sprepare(snd_pcm_t *pcm ATTRIBUTE_UNUSED, snd_pcm_hw_params_t *sparams) argument
217 snd_pcm_access_mask_t saccess_mask = { SND_PCM_ACCBIT_MMAP }; local
224 snd_pcm_shm_hw_refine_schange(snd_pcm_t *pcm ATTRIBUTE_UNUSED, snd_pcm_hw_params_t *params, snd_pcm_hw_params_t *sparams) argument
227 int err; local
228 unsigned int links = ~SND_PCM_HW_PARBIT_ACCESS; local
229 const snd_pcm_access_mask_t *access_mask = snd_pcm_hw_param_get_mask(params, SND_PCM_HW_PARAM_ACCESS); local
243 snd_pcm_shm_hw_refine_cchange(snd_pcm_t *pcm ATTRIBUTE_UNUSED, snd_pcm_hw_params_t *params, snd_pcm_hw_params_t *sparams) argument
246 int err; local
247 unsigned int links = ~SND_PCM_HW_PARBIT_ACCESS; local
248 snd_pcm_access_mask_t access_mask; local
262 snd_pcm_shm_hw_refine_slave(snd_pcm_t *pcm, snd_pcm_hw_params_t *params) argument
265 snd_pcm_shm_t *shm = pcm->private_data; local
266 volatile snd_pcm_shm_ctrl_t *ctrl = shm->ctrl; local
267 int err; local
275 snd_pcm_shm_hw_refine(snd_pcm_t *pcm, snd_pcm_hw_params_t *params) argument
285 snd_pcm_shm_hw_params_slave(snd_pcm_t *pcm, snd_pcm_hw_params_t *params) argument
288 snd_pcm_shm_t *shm = pcm->private_data; local
289 volatile snd_pcm_shm_ctrl_t *ctrl = shm->ctrl; local
290 int err; local
299 snd_pcm_shm_hw_params(snd_pcm_t *pcm, snd_pcm_hw_params_t * params) argument
308 snd_pcm_shm_hw_free(snd_pcm_t *pcm) argument
310 snd_pcm_shm_t *shm = pcm->private_data; local
311 volatile snd_pcm_shm_ctrl_t *ctrl = shm->ctrl; local
316 snd_pcm_shm_sw_params(snd_pcm_t *pcm, snd_pcm_sw_params_t * params) argument
318 snd_pcm_shm_t *shm = pcm->private_data; local
319 volatile snd_pcm_shm_ctrl_t *ctrl = shm->ctrl; local
320 int err; local
330 snd_pcm_shm_mmap(snd_pcm_t *pcm ATTRIBUTE_UNUSED) argument
335 snd_pcm_shm_munmap(snd_pcm_t *pcm) argument
337 unsigned int c; local
339 snd_pcm_channel_info_t *i = &pcm->mmap_channels[c]; local
340 unsigned int c1; local
341 int err; local
347 snd_pcm_channel_info_t *i1 = &pcm->mmap_channels[c1]; local
363 snd_pcm_shm_channel_info(snd_pcm_t *pcm, snd_pcm_channel_info_t * info) argument
365 snd_pcm_shm_t *shm = pcm->private_data; local
366 volatile snd_pcm_shm_ctrl_t *ctrl = shm->ctrl; local
367 int err; local
368 int fd; local
389 snd_pcm_shm_status(snd_pcm_t *pcm, snd_pcm_status_t * status) argument
391 snd_pcm_shm_t *shm = pcm->private_data; local
392 volatile snd_pcm_shm_ctrl_t *ctrl = shm->ctrl; local
393 int err; local
403 snd_pcm_shm_state(snd_pcm_t *pcm) argument
405 snd_pcm_shm_t *shm = pcm->private_data; local
406 volatile snd_pcm_shm_ctrl_t *ctrl = shm->ctrl; local
411 snd_pcm_shm_hwsync(snd_pcm_t *pcm) argument
413 snd_pcm_shm_t *shm = pcm->private_data; local
414 volatile snd_pcm_shm_ctrl_t *ctrl = shm->ctrl; local
419 snd_pcm_shm_delay(snd_pcm_t *pcm, snd_pcm_sframes_t *delayp) argument
421 snd_pcm_shm_t *shm = pcm->private_data; local
422 volatile snd_pcm_shm_ctrl_t *ctrl = shm->ctrl; local
423 int err; local
432 snd_pcm_shm_avail_update(snd_pcm_t *pcm) argument
434 snd_pcm_shm_t *shm = pcm->private_data; local
435 volatile snd_pcm_shm_ctrl_t *ctrl = shm->ctrl; local
436 int err; local
444 snd_pcm_shm_htimestamp(snd_pcm_t *pcm ATTRIBUTE_UNUSED, snd_pcm_uframes_t *avail ATTRIBUTE_UNUSED, snd_htimestamp_t *tstamp ATTRIBUTE_UNUSED) argument
451 snd_pcm_shm_prepare(snd_pcm_t *pcm) argument
453 snd_pcm_shm_t *shm = pcm->private_data; local
454 volatile snd_pcm_shm_ctrl_t *ctrl = shm->ctrl; local
459 snd_pcm_shm_reset(snd_pcm_t *pcm) argument
461 snd_pcm_shm_t *shm = pcm->private_data; local
462 volatile snd_pcm_shm_ctrl_t *ctrl = shm->ctrl; local
467 snd_pcm_shm_start(snd_pcm_t *pcm) argument
469 snd_pcm_shm_t *shm = pcm->private_data; local
470 volatile snd_pcm_shm_ctrl_t *ctrl = shm->ctrl; local
475 snd_pcm_shm_drop(snd_pcm_t *pcm) argument
477 snd_pcm_shm_t *shm = pcm->private_data; local
478 volatile snd_pcm_shm_ctrl_t *ctrl = shm->ctrl; local
483 snd_pcm_shm_drain(snd_pcm_t *pcm) argument
485 snd_pcm_shm_t *shm = pcm->private_data; local
486 volatile snd_pcm_shm_ctrl_t *ctrl = shm->ctrl; local
487 int err; local
502 snd_pcm_shm_pause(snd_pcm_t *pcm, int enable) argument
504 snd_pcm_shm_t *shm = pcm->private_data; local
505 volatile snd_pcm_shm_ctrl_t *ctrl = shm->ctrl; local
511 snd_pcm_shm_rewindable(snd_pcm_t *pcm ATTRIBUTE_UNUSED) argument
516 snd_pcm_shm_rewind(snd_pcm_t *pcm, snd_pcm_uframes_t frames) argument
518 snd_pcm_shm_t *shm = pcm->private_data; local
519 volatile snd_pcm_shm_ctrl_t *ctrl = shm->ctrl; local
525 snd_pcm_shm_forwardable(snd_pcm_t *pcm ATTRIBUTE_UNUSED) argument
530 snd_pcm_shm_forward(snd_pcm_t *pcm, snd_pcm_uframes_t frames) argument
532 snd_pcm_shm_t *shm = pcm->private_data; local
533 volatile snd_pcm_shm_ctrl_t *ctrl = shm->ctrl; local
539 snd_pcm_shm_resume(snd_pcm_t *pcm) argument
541 snd_pcm_shm_t *shm = pcm->private_data; local
542 volatile snd_pcm_shm_ctrl_t *ctrl = shm->ctrl; local
547 snd_pcm_shm_mmap_commit(snd_pcm_t *pcm, snd_pcm_uframes_t offset ATTRIBUTE_UNUSED, snd_pcm_uframes_t size) argument
551 snd_pcm_shm_t *shm = pcm->private_data; local
552 volatile snd_pcm_shm_ctrl_t *ctrl = shm->ctrl; local
559 snd_pcm_shm_poll_descriptor(snd_pcm_t *pcm) argument
561 snd_pcm_shm_t *shm = pcm->private_data; local
562 volatile snd_pcm_shm_ctrl_t *ctrl = shm->ctrl; local
563 int fd, err; local
571 snd_pcm_shm_close(snd_pcm_t *pcm) argument
573 snd_pcm_shm_t *shm = pcm->private_data; local
574 volatile snd_pcm_shm_ctrl_t *ctrl = shm->ctrl; local
575 int result; local
585 snd_pcm_shm_dump(snd_pcm_t *pcm, snd_output_t *out) argument
594 static const snd_pcm_ops_t snd_pcm_shm_ops = { variable
609 static const snd_pcm_fast_ops_t snd_pcm_shm_fast_ops = { variable
634 make_local_socket(const char *filename) argument
636 size_t l = strlen(filename); local
637 size_t size = offsetof(struct sockaddr_un, sun_path) + l; local
638 struct sockaddr_un *addr = alloca(size); local
639 int sock; local
697 snd_pcm_shm_open(snd_pcm_t **pcmp, const char *name, const char *sockname, const char *sname, snd_pcm_stream_t stream, int mode) argument
701 snd_pcm_t *pcm; local
702 snd_pcm_shm_t *shm = NULL; local
703 snd_client_open_request_t *req; local
704 snd_client_open_answer_t ans; local
705 size_t snamelen, reqlen; local
706 int err; local
707 int result; local
708 snd_pcm_shm_ctrl_t *ctrl = NULL; local
709 int sock = -1; local
837 _snd_pcm_shm_open(snd_pcm_t **pcmp, const char *name, snd_config_t *root, snd_config_t *conf, snd_pcm_stream_t stream, int mode) argument
841 snd_config_iterator_t i, next; local
842 const char *server = NULL; local
843 const char *pcm_name = NULL; local
844 snd_config_t *sconfig; local
845 const char *host = NULL; local
846 const char *sockname = NULL; local
847 long port = -1; local
848 int err; local
849 int local; local
850 struct hostent *h; local
851 snd_config_for_each(i, next, conf) { function
852 snd_config_t *n = snd_config_iterator_entry(i); local
853 const char *id; local
894 snd_config_for_each(i, next, sconfig) { function
895 snd_config_t *n = snd_config_iterator_entry(i); local
896 const char *id; local
[all...]
H A Dpcm_simple.c28 set_buffer_time(snd_spcm_latency_t latency, unsigned int *buffer_time) argument
47 set_hw_params(snd_pcm_t *pcm, snd_pcm_hw_params_t *hw_params, unsigned int *rate, unsigned int channels, snd_pcm_format_t format, snd_pcm_subformat_t subformat, unsigned int *buffer_time, unsigned int *period_time, snd_pcm_access_t access) argument
57 int err; local
86 unsigned int periods = 3; local
110 set_sw_params(snd_pcm_t *pcm, snd_pcm_sw_params_t *sw_params, snd_spcm_xrun_type_t xrun_type) argument
114 int err; local
157 snd_spcm_init(snd_pcm_t *pcm, unsigned int rate, unsigned int channels, snd_pcm_format_t format, snd_pcm_subformat_t subformat, snd_spcm_latency_t latency, snd_pcm_access_t access, snd_spcm_xrun_type_t xrun_type) argument
166 int err; local
167 snd_pcm_hw_params_t *hw_params; local
168 snd_pcm_sw_params_t *sw_params; local
169 unsigned int rrate; local
170 unsigned int buffer_time; local
212 snd_spcm_init_duplex(snd_pcm_t *playback_pcm, snd_pcm_t *capture_pcm, unsigned int rate, unsigned int channels, snd_pcm_format_t format, snd_pcm_subformat_t subformat, snd_spcm_latency_t latency, snd_pcm_access_t access, snd_spcm_xrun_type_t xrun_type, snd_spcm_duplex_type_t duplex_type) argument
223 int err, i; local
224 snd_pcm_hw_params_t *hw_params; local
225 snd_pcm_sw_params_t *sw_params; local
226 unsigned int rrate; local
227 unsigned int xbuffer_time, buffer_time[2]; local
228 unsigned int period_time[2]; local
229 snd_pcm_t *pcms[2]; local
290 snd_spcm_init_get_params(snd_pcm_t *pcm, unsigned int *rate, snd_pcm_uframes_t *buffer_size, snd_pcm_uframes_t *period_size) argument
[all...]
H A Dpcm_softvol.c36 const char *_snd_module_pcm_softvol = ""; variable
43 snd_pcm_plugin_t plug; member in struct:__anon1506
44 snd_pcm_format_t sformat; member in struct:__anon1506
45 unsigned int cchannels; member in struct:__anon1506
46 snd_ctl_t *ctl; member in struct:__anon1506
47 snd_ctl_elem_value_t elem; member in struct:__anon1506
48 unsigned int cur_vol[2]; member in struct:__anon1506
49 unsigned int max_val; /* max index */ member in struct:__anon1506
50 unsigned int zero_dB_val; /* index at 0 dB */ member in struct:__anon1506
51 double min_dB; member in struct:__anon1506
52 double max_dB; member in struct:__anon1506
53 unsigned int *dB_value; member in struct:__anon1506
54 } snd_pcm_softvol_t; typedef in typeref:struct:__anon1506
56 #define VOL_SCALE_SHIFT macro
57 #define VOL_SCALE_MASK macro
59 #define PRESET_RESOLUTION macro
60 #define PRESET_MIN_DB macro
61 #define ZERO_DB macro
62 #define MAX_DB_UPPER_LIMIT macro
64 static const unsigned int preset_dB_value[PRESET_RESOLUTION] = { variable
101 int i; member in union:__anon1507
102 short s[2]; member in union:__anon1507
103 } val_t; typedef in typeref:union:__anon1507
104 MULTI_DIV_32x16(int a, unsigned short b) argument
106 val_t v, x, y; local
122 MULTI_DIV_int(int a, unsigned int b, int swap) argument
124 unsigned int gain = (b >> VOL_SCALE_SHIFT); local
125 int fraction; local
129 long long amp = (long long)a * gain + fraction; local
140 MULTI_DIV_24(int a, unsigned int b) argument
142 unsigned int gain = b >> VOL_SCALE_SHIFT; local
143 int fraction; local
146 long long amp = (long long)a * gain + fraction; local
156 MULTI_DIV_short(short a, unsigned int b, int swap) argument
158 unsigned int gain = b >> VOL_SCALE_SHIFT; local
159 int fraction; local
163 int amp = a * gain + fraction; local
180 #define CONVERT_AREA macro
213 #define CONVERT_AREA_S24_3LE macro
255 #define GET_VOL_SCALE macro
273 softvol_convert_stereo_vol(snd_pcm_softvol_t *svol, const snd_pcm_channel_area_t *dst_areas, snd_pcm_uframes_t dst_offset, const snd_pcm_channel_area_t *src_areas, snd_pcm_uframes_t src_offset, unsigned int channels, snd_pcm_uframes_t frames) argument
281 const snd_pcm_channel_area_t *dst_area, *src_area; local
282 unsigned int src_step, dst_step; local
283 unsigned int vol_scale, vol[2], vol_c; local
326 #undef GET_VOL_SCALE macro
327 #define GET_VOL_SCALE macro
330 softvol_convert_mono_vol(snd_pcm_softvol_t *svol, const snd_pcm_channel_area_t *dst_areas, snd_pcm_uframes_t dst_offset, const snd_pcm_channel_area_t *src_areas, snd_pcm_uframes_t src_offset, unsigned int channels, snd_pcm_uframes_t frames) argument
338 const snd_pcm_channel_area_t *dst_area, *src_area; local
339 unsigned int src_step, dst_step; local
340 unsigned int vol_scale; local
382 get_current_volume(snd_pcm_softvol_t *svol) argument
384 unsigned int val; local
385 unsigned int i; local
397 softvol_free(snd_pcm_softvol_t *svol) argument
408 snd_pcm_softvol_close(snd_pcm_t *pcm) argument
410 snd_pcm_softvol_t *svol = pcm->private_data; local
415 snd_pcm_softvol_hw_refine_cprepare(snd_pcm_t *pcm, snd_pcm_hw_params_t *params) argument
418 int err; local
419 snd_pcm_softvol_t *svol = pcm->private_data; local
420 snd_pcm_access_mask_t access_mask = { SND_PCM_ACCBIT_SHM }; local
421 snd_pcm_format_mask_t format_mask = { local
452 snd_pcm_softvol_hw_refine_sprepare(snd_pcm_t *pcm, snd_pcm_hw_params_t *sparams) argument
454 snd_pcm_softvol_t *svol = pcm->private_data; local
455 snd_pcm_access_mask_t saccess_mask = { SND_PCM_ACCBIT_MMAP }; local
469 check_access_mask(snd_pcm_hw_params_t *src, snd_pcm_hw_params_t *dst) argument
472 const snd_pcm_access_mask_t *mask; local
473 snd_pcm_access_mask_t smask; local
498 snd_pcm_softvol_hw_refine_schange(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, snd_pcm_hw_params_t *sparams) argument
502 snd_pcm_softvol_t *svol = pcm->private_data; local
503 int err; local
504 unsigned int links = (SND_PCM_HW_PARBIT_CHANNELS | local
527 snd_pcm_softvol_hw_refine_cchange(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, snd_pcm_hw_params_t *sparams) argument
531 snd_pcm_softvol_t *svol = pcm->private_data; local
532 int err; local
533 unsigned int links = (SND_PCM_HW_PARBIT_CHANNELS | local
556 snd_pcm_softvol_hw_refine(snd_pcm_t *pcm, snd_pcm_hw_params_t *params) argument
566 snd_pcm_softvol_hw_params(snd_pcm_t *pcm, snd_pcm_hw_params_t * params) argument
568 snd_pcm_softvol_t *svol = pcm->private_data; local
569 snd_pcm_t *slave = svol->plug.gen.slave; local
570 int err = snd_pcm_hw_params_slave(pcm, params, local
591 snd_pcm_softvol_write_areas(snd_pcm_t *pcm, const snd_pcm_channel_area_t *areas, snd_pcm_uframes_t offset, snd_pcm_uframes_t size, const snd_pcm_channel_area_t *slave_areas, snd_pcm_uframes_t slave_offset, snd_pcm_uframes_t *slave_sizep) argument
599 snd_pcm_softvol_t *svol = pcm->private_data; local
614 snd_pcm_softvol_read_areas(snd_pcm_t *pcm, const snd_pcm_channel_area_t *areas, snd_pcm_uframes_t offset, snd_pcm_uframes_t size, const snd_pcm_channel_area_t *slave_areas, snd_pcm_uframes_t slave_offset, snd_pcm_uframes_t *slave_sizep) argument
622 snd_pcm_softvol_t *svol = pcm->private_data; local
636 snd_pcm_softvol_dump(snd_pcm_t *pcm, snd_output_t *out) argument
638 snd_pcm_softvol_t *svol = pcm->private_data; local
656 add_tlv_info(snd_pcm_softvol_t *svol, snd_ctl_elem_info_t *cinfo) argument
658 unsigned int tlv[4]; local
666 add_user_ctl(snd_pcm_softvol_t *svol, snd_ctl_elem_info_t *cinfo, int count) argument
668 int err; local
669 int i; local
670 unsigned int def_val; local
698 softvol_load_control(snd_pcm_t *pcm, snd_pcm_softvol_t *svol, int ctl_card, snd_ctl_elem_id_t *ctl_id, int cchannels, double min_dB, double max_dB, int resolution) argument
703 char tmp_name[32]; local
704 snd_pcm_info_t *info; local
705 snd_ctl_elem_info_t *cinfo; local
706 int err; local
707 unsigned int i; local
771 unsigned int tlv[4]; local
794 double db = svol->min_dB + (i * (svol->max_dB - svol->min_dB)) / svol->max_val; local
795 double v = (pow(10.0, db / 20.0) * (double)(1 << VOL_SCALE_SHIFT)); local
808 static const snd_pcm_ops_t snd_pcm_softvol_ops = { variable
841 snd_pcm_softvol_open(snd_pcm_t **pcmp, const char *name, snd_pcm_format_t sformat, int ctl_card, snd_ctl_elem_id_t *ctl_id, int cchannels, double min_dB, double max_dB, int resolution, snd_pcm_t *slave, int close_slave) argument
848 snd_pcm_t *pcm; local
849 snd_pcm_softvol_t *svol; local
850 int err; local
978 _snd_pcm_softvol_open(snd_pcm_t **pcmp, const char *name, snd_config_t *root, snd_config_t *conf, snd_pcm_stream_t stream, int mode) argument
982 snd_config_iterator_t i, next; local
983 int err; local
984 snd_pcm_t *spcm; local
985 snd_config_t *slave = NULL, *sconf; local
986 snd_config_t *control = NULL; local
987 snd_pcm_format_t sformat = SND_PCM_FORMAT_UNKNOWN; local
988 snd_ctl_elem_id_t *ctl_id; local
989 int resolution = PRESET_RESOLUTION; local
990 double min_dB = PRESET_MIN_DB; local
991 double max_dB = ZERO_DB; local
992 int card = -1, cchannels = 2; local
994 snd_config_for_each(i, next, conf) { function
995 snd_config_t *n = snd_config_iterator_entry(i); local
996 const char *id; local
1010 long v; local
[all...]
H A Dpcm_symbols.c54 static const char **snd_pcm_open_objects[] = { variable
59 void *snd_pcm_open_symbols(void) function
[all...]
H A Dplugin_ops.h23 #define SX_INLINES macro
24 sx24(u_int32_t x) argument
30 sx24s(u_int32_t x) argument
38 #define as_u8 macro
39 #define as_u16 macro
40 #define as_u32 macro
41 #define as_u64 macro
42 #define as_s8 macro
43 #define as_s16 macro
44 #define as_s32 macro
45 #define as_s64 macro
46 #define as_float macro
47 #define as_double macro
49 #define as_u8c macro
50 #define as_u16c macro
51 #define as_u32c macro
52 #define as_u64c macro
53 #define as_s8c macro
54 #define as_s16c macro
55 #define as_s32c macro
56 #define as_s64c macro
57 #define as_floatc macro
58 #define as_doublec macro
60 #define _get_triple_le macro
61 #define _get_triple_be macro
62 #define _put_triple_le macro
69 #define _put_triple_be macro
78 #define _get_triple macro
79 #define _get_triple_s macro
80 #define _put_triple macro
81 #define _put_triple_s macro
83 #define _get_triple macro
84 #define _get_triple_s macro
85 #define _put_triple macro
86 #define _put_triple_s macro
90 static void *copy_labels[5] = { variable
101 copy_8: as_s8(dst) = as_s8c(src); goto COPY_END; variable
102 copy_16: as_s16(dst) = as_s16c(src); goto COPY_END; variable
104 copy_32: as_s32(dst) = as_s32c(src); goto COPY_END; variable
105 copy_64: as_s64(dst) = as_s64c(src); goto COPY_END; variable
111 static void *const conv_labels[4 * 2 * 2 * 4 * 2] = { variable
245 conv_xxx1_xxx1: as_u8(dst) = as_u8c(src); goto CONV_END; variable
246 conv_xxx1_xx10: as_u16(dst) = (u_int16_t)as_u8c(src) << 8; goto CONV_END; variable
247 conv_xxx1_xx01: as_u16(dst) = (u_int16_t)as_u8c(src); goto CONV_END; variable
248 conv_xxx1_x100: as_u32(dst) = sx24((u_int32_t)as_u8c(src) << 16); goto CONV_END; variable
249 conv_xxx1_001x: as_u32(dst) = sx24s((u_int32_t)as_u8c(src) << 8); goto CONV_END; variable
250 conv_xxx1_1000: as_u32(dst) = (u_int32_t)as_u8c(src) << 24; goto CONV_END; variable
251 conv_xxx1_0001: as_u32(dst) = (u_int32_t)as_u8c(src); goto CONV_END; variable
252 conv_xxx1_xxx9: as_u8(dst) = as_u8c(src) ^ 0x80; goto CONV_END; variable
253 conv_xxx1_xx90: as_u16(dst) = (u_int16_t)(as_u8c(src) ^ 0x80) << 8; goto CONV_END; variable
254 conv_xxx1_xx09: as_u16(dst) = (u_int16_t)(as_u8c(src) ^ 0x80); goto CONV_END; variable
255 conv_xxx1_x900: as_u32(dst) = sx24((u_int32_t)(as_u8c(src) ^ 0x80) << 16); goto CONV_END; variable
256 conv_xxx1_009x: as_u32(dst) = sx24s((u_int32_t)(as_u8c(src) ^ 0x80) << 8); goto CONV_END; variable
257 conv_xxx1_9000: as_u32(dst) = (u_int32_t)(as_u8c(src) ^ 0x80) << 24; goto CONV_END; variable
258 conv_xxx1_0009: as_u32(dst) = (u_int32_t)(as_u8c(src) ^ 0x80); goto CONV_END; variable
259 conv_xx12_xxx1: as_u8(dst) = as_u16c(src) >> 8; goto CONV_END; variable
260 conv_xx12_xx12: as_u16(dst) = as_u16c(src); goto CONV_END; variable
261 conv_xx12_xx21: as_u16(dst) = bswap_16(as_u16c(src)); goto CONV_END; variable
262 conv_xx12_x120: as_u32(dst) = sx24((u_int32_t)as_u16c(src) << 8); goto CONV_END; variable
263 conv_xx12_021x: as_u32(dst) = sx24s((u_int32_t)bswap_16(as_u16c(src)) << 8); goto CONV_END; variable
264 conv_xx12_1200: as_u32(dst) = (u_int32_t)as_u16c(src) << 16; goto CONV_END; variable
265 conv_xx12_0021: as_u32(dst) = (u_int32_t)bswap_16(as_u16c(src)); goto CONV_END; variable
266 conv_xx12_xxx9: as_u8(dst) = (as_u16c(src) >> 8) ^ 0x80; goto CONV_END; variable
267 conv_xx12_xx92: as_u16(dst) = as_u16c(src) ^ 0x8000; goto CONV_END; variable
268 conv_xx12_xx29: as_u16(dst) = bswap_16(as_u16c(src)) ^ 0x80; goto CONV_END; variable
269 conv_xx12_x920: as_u32(dst) = sx24((u_int32_t)(as_u16c(src) ^ 0x8000) << 8); goto CONV_END; variable
270 conv_xx12_029x: as_u32(dst) = sx24s((u_int32_t)(bswap_16(as_u16c(src)) ^ 0x80) << 8); goto CONV_END; variable
271 conv_xx12_9200: as_u32(dst) = (u_int32_t)(as_u16c(src) ^ 0x8000) << 16; goto CONV_END; variable
272 conv_xx12_0029: as_u32(dst) = (u_int32_t)(bswap_16(as_u16c(src)) ^ 0x80); goto CONV_END; variable
273 conv_xx12_xxx2: as_u8(dst) = as_u16c(src) & 0xff; goto CONV_END; variable
274 conv_xx12_x210: as_u32(dst) = sx24((u_int32_t)bswap_16(as_u16c(src)) << 8); goto CONV_END; variable
275 conv_xx12_012x: as_u32(dst) = sx24s((u_int32_t)as_u16c(src) << 8); goto CONV_END; variable
276 conv_xx12_2100: as_u32(dst) = (u_int32_t)bswap_16(as_u16c(src)) << 16; goto CONV_END; variable
277 conv_xx12_0012: as_u32(dst) = (u_int32_t)as_u16c(src); goto CONV_END; variable
278 conv_xx12_xxxA: as_u8(dst) = (as_u16c(src) ^ 0x80) & 0xff; goto CONV_END; variable
279 conv_xx12_xxA1: as_u16(dst) = bswap_16(as_u16c(src) ^ 0x80); goto CONV_END; variable
280 conv_xx12_xx1A: as_u16(dst) = as_u16c(src) ^ 0x80; goto CONV_END; variable
281 conv_xx12_xA10: as_u32(dst) = sx24((u_int32_t)bswap_16(as_u16c(src) ^ 0x80) << 8); goto CONV_END; variable
282 conv_xx12_01Ax: as_u32(dst) = sx24s((u_int32_t)(as_u16c(src) ^ 0x80) << 8); goto CONV_END; variable
283 conv_xx12_A100: as_u32(dst) = (u_int32_t)bswap_16(as_u16c(src) ^ 0x80) << 16; goto CONV_END; variable
284 conv_xx12_001A: as_u32(dst) = (u_int32_t)(as_u16c(src) ^ 0x80); goto CONV_END; variable
285 conv_x123_xxx1: as_u8(dst) = as_u32c(src) >> 16; goto CONV_END; variable
286 conv_x123_xx12: as_u16(dst) = as_u32c(src) >> 8; goto CONV_END; variable
287 conv_x123_xx21: as_u16(dst) = bswap_16(as_u32c(src) >> 8); goto CONV_END; variable
288 conv_x123_x123: as_u32(dst) = sx24(as_u32c(src)); goto CONV_END; variable
289 conv_x123_321x: as_u32(dst) = sx24s(bswap_32(as_u32c(src))); goto CONV_END; variable
290 conv_x123_1230: as_u32(dst) = as_u32c(src) << 8; goto CONV_END; variable
291 conv_x123_0321: as_u32(dst) = bswap_32(as_u32c(src)) >> 8; goto CONV_END; variable
292 conv_x123_xxx9: as_u8(dst) = (as_u32c(src) >> 16) ^ 0x80; goto CONV_END; variable
293 conv_x123_xx92: as_u16(dst) = (as_u32c(src) >> 8) ^ 0x8000; goto CONV_END; variable
294 conv_x123_xx29: as_u16(dst) = bswap_16(as_u32c(src) >> 8) ^ 0x80; goto CONV_END; variable
295 conv_x123_x923: as_u32(dst) = sx24(as_u32c(src) ^ 0x800000); goto CONV_END; variable
296 conv_x123_329x: as_u32(dst) = sx24s(bswap_32(as_u32c(src)) ^ 0x8000); goto CONV_END; variable
297 conv_x123_9230: as_u32(dst) = (as_u32c(src) ^ 0x800000) << 8; goto CONV_END; variable
298 conv_x123_0329: as_u32(dst) = (bswap_32(as_u32c(src)) >> 8) ^ 0x80; goto CONV_END; variable
299 conv_123x_xxx3: as_u8(dst) = (as_u32c(src) >> 8) & 0xff; goto CONV_END; variable
300 conv_123x_xx32: as_u16(dst) = bswap_16(as_u32c(src) >> 8); goto CONV_END; variable
301 conv_123x_xx23: as_u16(dst) = (as_u32c(src) >> 8) & 0xffff; goto CONV_END; variable
302 conv_123x_x321: as_u32(dst) = sx24(bswap_32(as_u32c(src))); goto CONV_END; variable
303 conv_123x_123x: as_u32(dst) = sx24s(as_u32c(src)); goto CONV_END; variable
304 conv_123x_3210: as_u32(dst) = bswap_32(as_u32c(src)) << 8; goto CONV_END; variable
305 conv_123x_0123: as_u32(dst) = as_u32c(src) >> 8; goto CONV_END; variable
306 conv_123x_xxxB: as_u8(dst) = ((as_u32c(src) >> 8) & 0xff) ^ 0x80; goto CONV_END; variable
307 conv_123x_xxB2: as_u16(dst) = bswap_16((as_u32c(src) >> 8) ^ 0x80); goto CONV_END; variable
308 conv_123x_xx2B: as_u16(dst) = ((as_u32c(src) >> 8) & 0xffff) ^ 0x80; goto CONV_END; variable
309 conv_123x_xB21: as_u32(dst) = sx24(bswap_32(as_u32c(src)) ^ 0x800000); goto CONV_END; variable
310 conv_123x_12Bx: as_u32(dst) = sx24s(as_u32c(src) ^ 0x8000); goto CONV_END; variable
311 conv_123x_B210: as_u32(dst) = bswap_32(as_u32c(src) ^ 0x8000) << 8; goto CONV_END; variable
312 conv_123x_012B: as_u32(dst) = (as_u32c(src) >> 8) ^ 0x80; goto CONV_END; variable
313 conv_1234_xxx1: as_u8(dst) = as_u32c(src) >> 24; goto CONV_END; variable
314 conv_1234_xx12: as_u16(dst) = as_u32c(src) >> 16; goto CONV_END; variable
315 conv_1234_xx21: as_u16(dst) = bswap_16(as_u32c(src) >> 16); goto CONV_END; variable
316 conv_1234_x123: as_u32(dst) = sx24(as_u32c(src) >> 8); goto CONV_END; variable
317 conv_1234_321x: as_u32(dst) = sx24s(bswap_32(as_u32c(src)) << 8); goto CONV_END; variable
318 conv_1234_1234: as_u32(dst) = as_u32c(src); goto CONV_END; variable
319 conv_1234_4321: as_u32(dst) = bswap_32(as_u32c(src)); goto CONV_END; variable
320 conv_1234_xxx9: as_u8(dst) = (as_u32c(src) >> 24) ^ 0x80; goto CONV_END; variable
321 conv_1234_xx92: as_u16(dst) = (as_u32c(src) >> 16) ^ 0x8000; goto CONV_END; variable
322 conv_1234_xx29: as_u16(dst) = bswap_16(as_u32c(src) >> 16) ^ 0x80; goto CONV_END; variable
323 conv_1234_x923: as_u32(dst) = sx24((as_u32c(src) >> 8) ^ 0x800000); goto CONV_END; variable
324 conv_1234_329x: as_u32(dst) = sx24s((bswap_32(as_u32c(src)) ^ 0x80) << 8); goto CONV_END; variable
325 conv_1234_9234: as_u32(dst) = as_u32c(src) ^ 0x80000000; goto CONV_END; variable
326 conv_1234_4329: as_u32(dst) = bswap_32(as_u32c(src)) ^ 0x80; goto CONV_END; variable
327 conv_1234_xxx4: as_u8(dst) = as_u32c(src) & 0xff; goto CONV_END; variable
328 conv_1234_xx43: as_u16(dst) = bswap_16(as_u32c(src)); goto CONV_END; variable
329 conv_1234_xx34: as_u16(dst) = as_u32c(src) & 0xffff; goto CONV_END; variable
330 conv_1234_x432: as_u32(dst) = sx24(bswap_32(as_u32c(src)) >> 8); goto CONV_END; variable
331 conv_1234_234x: as_u32(dst) = sx24s(as_u32c(src) << 8); goto CONV_END; variable
332 conv_1234_xxxC: as_u8(dst) = (as_u32c(src) & 0xff) ^ 0x80; goto CONV_END; variable
333 conv_1234_xxC3: as_u16(dst) = bswap_16(as_u32c(src) ^ 0x80); goto CONV_END; variable
334 conv_1234_xx3C: as_u16(dst) = (as_u32c(src) & 0xffff) ^ 0x80; goto CONV_END; variable
335 conv_1234_xC32: as_u32(dst) = sx24((bswap_32(as_u32c(src)) >> 8) ^ 0x800000); goto CONV_END; variable
336 conv_1234_23Cx: as_u32(dst) = sx24s((as_u32c(src) ^ 0x80) << 8); goto CONV_END; variable
337 conv_1234_C321: as_u32(dst) = bswap_32(as_u32c(src) ^ 0x80); goto CONV_END; variable
338 conv_1234_123C: as_u32(dst) = as_u32c(src) ^ 0x80; goto CONV_END; variable
344 static void *const get16_labels[4 * 2 * 2 + 4 * 3] = { variable
410 static void *const put16_labels[4 * 2 * 2 + 4 * 3] = { variable
445 put16_12_1: as_u8(dst) = sample >> 8; goto PUT16_END; variable
446 put16_12_9: as_u8(dst) = (sample >> 8) ^ 0x80; goto PUT16_END; variable
447 put16_12_12: as_u16(dst) = sample; goto PUT16_END; variable
448 put16_12_92: as_u16(dst) = sample ^ 0x8000; goto PUT16_END; variable
449 put16_12_21: as_u16(dst) = bswap_16(sample); goto PUT16_END; variable
450 put16_12_29: as_u16(dst) = bswap_16(sample) ^ 0x80; goto PUT16_END; variable
451 put16_12_0120: as_u32(dst) = sx24((u_int32_t)sample << 8); goto PUT16_END; variable
452 put16_12_0920: as_u32(dst) = sx24((u_int32_t)(sample ^ 0x8000) << 8); goto PUT16_END; variable
453 put16_12_0210: as_u32(dst) = sx24s((u_int32_t)bswap_16(sample) << 8); goto PUT16_END; variable
454 put16_12_0290: as_u32(dst) = sx24s((u_int32_t)(bswap_16(sample) ^ 0x80) << 8); goto PUT16_END; variable
455 put16_12_1200: as_u32(dst) = (u_int32_t)sample << 16; goto PUT16_END; variable
456 put16_12_9200: as_u32(dst) = (u_int32_t)(sample ^ 0x8000) << 16; goto PUT16_END; variable
457 put16_12_0021: as_u32(dst) = (u_int32_t)bswap_16(sample); goto PUT16_END; variable
458 put16_12_0029: as_u32(dst) = (u_int32_t)bswap_16(sample) ^ 0x80; goto PUT16_END; variable
475 #define GET32_LABELS macro
476 #define PUT32_LABELS macro
481 static void *const get32_labels[4 * 2 * 2 + 4 * 3] = { variable
515 #define GET32_END macro
551 #define PUT32_END macro
556 static void *const put32_labels[4 * 2 * 2 + 4 * 3] = { variable
590 #undef GET32_LABELS macro
591 #undef PUT32_LABELS macro
596 put32_1234_1: as_u8(dst) = sample >> 24; goto PUT32_END; variable
597 put32_1234_9: as_u8(dst) = (sample >> 24) ^ 0x80; goto PUT32_END; variable
598 put32_1234_12: as_u16(dst) = sample >> 16; goto PUT32_END; variable
599 put32_1234_92: as_u16(dst) = (sample >> 16) ^ 0x8000; goto PUT32_END; variable
600 put32_1234_21: as_u16(dst) = bswap_16(sample >> 16); goto PUT32_END; variable
601 put32_1234_29: as_u16(dst) = bswap_16(sample >> 16) ^ 0x80; goto PUT32_END; variable
602 put32_1234_0123: as_u32(dst) = sx24(sample >> 8); goto PUT32_END; variable
603 put32_1234_0923: as_u32(dst) = sx24((sample >> 8) ^ 0x800000); goto PUT32_END; variable
604 put32_1234_3210: as_u32(dst) = sx24s(bswap_32(sample) << 8); goto PUT32_END; variable
605 put32_1234_3290: as_u32(dst) = sx24s((bswap_32(sample) ^ 0x80) << 8); goto PUT32_END; variable
606 put32_1234_1234: as_u32(dst) = sample; goto PUT32_END; variable
607 put32_1234_9234: as_u32(dst) = sample ^ 0x80000000; goto PUT32_END; variable
608 put32_1234_4321: as_u32(dst) = bswap_32(sample); goto PUT32_END; variable
609 put32_1234_4329: as_u32(dst) = bswap_32(sample) ^ 0x80; goto PUT32_END; variable
626 #undef GET32_END macro
627 #undef PUT32_END macro
632 static void *const getu_labels[4 * 2 * 2] = { variable
673 static void *const gets_labels[4 * 2 * 2] = { variable
714 static void *const put_labels[4 * 2 * 2] = { variable
735 put_1_1: as_s8(dst) = sample; goto PUT_END; variable
754 static void *const put32float_labels[2 * 2] = { variable
763 put32f_1234_1234F: as_float(dst) = (float_t)((int32_t)sample) / (float_t)0x80000000UL; goto PUT32F_END; variable
765 as_u32(dst) = bswap_32(tmp_float.i); goto PUT32F_END; variable
768 as_u64(dst) = bswap_64(tmp_double.l); goto PUT32F_END; variable
773 static void *const get32float_labels[2 * 2] = { variable
817 _norms(const void *src, void *dst, int src_wid, int dst_sign, int dst_wid, int dst_end) argument
821 int32_t s; local
846 int64_t s64; local
860 unsigned int bits = dst_wid - src_wid; local
863 unsigned int bits = src_wid - dst_wid; local
952 static void *const norms_labels[4 * 2 * 4 * 2] = { variable
1080 #undef as_u8 macro
1081 #undef as_u16 macro
1082 #undef as_u32 macro
1083 #undef as_s8 macro
1084 #undef as_s16 macro
1085 #undef as_s32 macro
1086 #undef as_float macro
1087 #undef as_double macro
1089 #undef as_u8c macro
1090 #undef as_u16c macro
1091 #undef as_u32c macro
1092 #undef as_s8c macro
1093 #undef as_s16c macro
1094 #undef as_s32c macro
1095 #undef as_floatc macro
1096 #undef as_doublec macro
1098 #undef _get_triple macro
1099 #undef _get_triple_s macro
1100 #undef _get_triple_le macro
1101 #undef _get_triple_be macro
1102 #undef _put_triple macro
1103 #undef _put_triple_s macro
1104 #undef _put_triple_le macro
1105 #undef _put_triple_be macro
[all...]
/netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/iserver/alsa-lib-1.0.26/src/pcm/scopes/
H A DMakefile19 pkgdatadir = $(datadir)/alsa-lib macro
20 pkgincludedir = $(includedir)/alsa-lib macro
21 pkglibexecdir = $(libexecdir)/alsa-lib macro
22 am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd macro
23 install_sh_DATA = $(install_sh) -c -m 644 macro
24 install_sh_PROGRAM = $(install_sh) -c macro
25 install_sh_SCRIPT = $(install_sh) -c macro
26 INSTALL_HEADER = $(INSTALL_DATA) macro
27 transform = $(program_transform_name) macro
28 NORMAL_INSTALL = : macro
29 PRE_INSTALL = : macro
30 POST_INSTALL = : macro
31 NORMAL_UNINSTALL = : macro
32 PRE_UNINSTALL = : macro
33 POST_UNINSTALL = : macro
34 build_triplet = i686-pc-linux-gnu macro
35 host_triplet = arm-unknown-linux-gnu macro
36 subdir = src/pcm/scopes macro
37 DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in macro
38 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 macro
39 am__aclocal_m4_deps = $(top_srcdir)/acinclude.m4 \\ macro
41 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \\ macro
43 mkinstalldirs = $(install_sh) -d macro
44 CONFIG_HEADER = $(top_builddir)/include/config.h macro
45 CONFIG_CLEAN_FILES = macro
46 CONFIG_CLEAN_VPATH_FILES = macro
47 am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; macro
48 am__vpath_adj = case $$p in \\ macro
52 am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`; macro
53 am__install_max = 40 macro
54 am__nobase_strip_setup = \\ macro
56 am__nobase_strip = \\ macro
58 am__nobase_list = $(am__nobase_strip_setup); \\ macro
65 am__base_list = \\ macro
68 am__uninstall_files_from_dir = { \\ macro
74 am__installdirs = "$(DESTDIR)$(pkglibdir)" macro
75 LTLIBRARIES = $(pkglib_LTLIBRARIES) macro
76 scope_level_la_DEPENDENCIES = macro
77 am_scope_level_la_OBJECTS = level.lo macro
78 scope_level_la_OBJECTS = $(am_scope_level_la_OBJECTS) macro
79 AM_V_lt = $(am__v_lt_$(V)) macro
80 am__v_lt_ = $(am__v_lt_$(AM_DEFAULT_VERBOSITY)) macro
81 am__v_lt_0 = --silent macro
82 scope_level_la_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC \\ macro
86 DEFAULT_INCLUDES = -I. -I$(top_builddir)/include macro
87 depcomp = $(SHELL) $(top_srcdir)/depcomp macro
88 am__depfiles_maybe = depfiles macro
89 am__mv = mv -f macro
90 COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \\ macro
92 LTCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \\ macro
96 AM_V_CC = $(am__v_CC_$(V)) macro
97 am__v_CC_ = $(am__v_CC_$(AM_DEFAULT_VERBOSITY)) macro
98 am__v_CC_0 = @echo " CC " $@; macro
99 AM_V_at = $(am__v_at_$(V)) macro
100 am__v_at_ = $(am__v_at_$(AM_DEFAULT_VERBOSITY)) macro
101 am__v_at_0 = @ macro
102 CCLD = $(CC) macro
103 LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \\ macro
106 AM_V_CCLD = $(am__v_CCLD_$(V)) macro
107 am__v_CCLD_ = $(am__v_CCLD_$(AM_DEFAULT_VERBOSITY)) macro
108 am__v_CCLD_0 = @echo " CCLD " $@; macro
109 AM_V_GEN = $(am__v_GEN_$(V)) macro
110 am__v_GEN_ = $(am__v_GEN_$(AM_DEFAULT_VERBOSITY)) macro
111 am__v_GEN_0 = @echo " GEN " $@; macro
112 SOURCES = $(scope_level_la_SOURCES) macro
113 DIST_SOURCES = $(scope_level_la_SOURCES) macro
114 ETAGS = etags macro
115 CTAGS = ctags macro
116 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) macro
117 pkglibdir = $(libdir)/alsa-lib/scopes macro
118 ACLOCAL = ${SHELL} $(SRC_PATH)/alsa-lib-1.0.26/missing --run aclocal-1.11 macro
119 ALSA_CONFIG_DIR = /usr/share/alsa macro
120 ALSA_DEPLIBS = -lm -ldl -lpthread -lrt macro
121 ALSA_PKGCONF_DIR = /usr/lib/pkgconfig macro
122 ALSA_PLUGIN_DIR = /usr/lib/alsa-lib macro
123 AMTAR = $${TAR-tar} macro
124 AM_DEFAULT_VERBOSITY = 0 macro
125 AR = arm-brcm-linux-uclibcgnueabi-ar macro
126 AUTOCONF = ${SHELL} $(SRC_PATH)/alsa-lib-1.0.26/missing --run autoconf macro
127 AUTOHEADER = ${SHELL} $(SRC_PATH)/alsa-lib-1.0.26/missing --run autoheader macro
128 AUTOMAKE = ${SHELL} $(SRC_PATH)/alsa-lib-1.0.26/missing --run automake-1.11 macro
129 AWK = gawk macro
130 CC = arm-brcm-linux-uclibcgnueabi-gcc macro
131 CCDEPMODE = depmode=gcc3 macro
132 CFLAGS = -Os -O2 -DBCMWPA2 -DRESTART_ALL_PROCESSES -D__CONFIG_USBAP__ -DBCMQOS -DBCMWPS -D__CONFIG_EMF__ -DTRAFFIC_MGMT -DPHYMON -DSUPPORT_REMOTE_HTTPS -DINCLUDE_WPS_V20 -DINCLUDE_5G_AUTO_CHANNEL -DOPENDNS_PARENTAL_CONTROL -DINCLUDE_UCP -DU12H240 -DR6300v2 -DMULTIPLE_SSID -DENABLE_ML -DBCM53125 -DBCM5301X -DCONFIG_RUSSIA_IPTV -DDLNA -DHTTP_ACCESS_USB -DMAX_USB_ACCESS -DSAMBA_ENABLE -DUSB_NEW_SPEC -DINCLUDE_WIFI_BUTTON -DINCLUDE_USB_LED -DINCLUDE_DUAL_BAND -DSINGLE_FIRMWARE -DINCLUDE_GET_ST_CHKSUM -DUNIFIED_STR_TBL -DFIRST_MTD_ROTATION -DWIFI_ON_OFF_SCHE -DAUTO_CONN_24HR -DIGMP_PROXY -DAP_MODE -D__CONFIG_IGMP_SNOOPING__ -DLINUX26 -DINCLUDE_IPV6 -DPRESET_WL_SECURITY -DNEW_BCM_WPS_IPC -DSUPPORT_AC_MODE -DSTA_MODE -DPPP_RU_DESIGN -DEXT_ACS -D__CONFIG_PLC__ -D__CONFIG_URE__ -DPLC -DWPS_LONGPUSH_DISABLE -Os -DLINUX26 -DCONFIG_KERNEL_2_6_36 -I$(SRC_PATH)/build/usr/include -D_GNU_SOURCE macro
133 CPP = arm-brcm-linux-uclibcgnueabi-gcc -E macro
134 CPPFLAGS = -I$(SRC_PATH)/build/usr/include -D__arm__ macro
135 CYGPATH_W = echo macro
136 DEFS = -DHAVE_CONFIG_H macro
137 DEPDIR = .deps macro
138 DLLTOOL = false macro
139 DSYMUTIL = macro
140 DUMPBIN = macro
141 ECHO_C = macro
142 ECHO_N = -n macro
143 ECHO_T = macro
144 EGREP = /bin/grep -E macro
145 EXEEXT = macro
146 FGREP = /bin/grep -F macro
147 GREP = /bin/grep macro
148 INSTALL = /usr/bin/install -c macro
149 INSTALL_DATA = ${INSTALL} -m 644 macro
150 INSTALL_PROGRAM = ${INSTALL} macro
151 INSTALL_SCRIPT = ${INSTALL} macro
152 INSTALL_STRIP_PROGRAM = $(install_sh) -c -s macro
153 LD = arm-brcm-linux-uclibcgnueabi-ld macro
154 LDFLAGS = -L$(SRC_PATH)/build/usr/lib macro
155 LIBOBJS = macro
156 LIBS = macro
157 LIBTOOL = $(SHELL) $(top_builddir)/libtool macro
158 LIBTOOL_VERSION_INFO = 2:0:0 macro
159 LIPO = macro
160 LN_S = ln -s macro
161 LTLIBOBJS = macro
162 MAKEINFO = ${SHELL} $(SRC_PATH)/alsa-lib-1.0.26/missing --run makeinfo macro
163 MANIFEST_TOOL = : macro
164 MKDIR_P = /bin/mkdir -p macro
165 NM = arm-brcm-linux-uclibcgnueabi-nm macro
166 NMEDIT = macro
167 OBJDUMP = arm-brcm-linux-uclibcgnueabi-objdump macro
168 OBJEXT = o macro
169 OTOOL = macro
170 OTOOL64 = macro
171 PACKAGE = alsa-lib macro
172 PACKAGE_BUGREPORT = macro
173 PACKAGE_NAME = macro
174 PACKAGE_STRING = macro
175 PACKAGE_TARNAME = macro
176 PACKAGE_URL = macro
177 PACKAGE_VERSION = macro
178 PATH_SEPARATOR = : macro
179 PYTHON_INCLUDES = macro
180 PYTHON_LIBS = macro
181 RANLIB = arm-brcm-linux-uclibcgnueabi-ranlib macro
182 SED = /bin/sed macro
183 SET_MAKE = macro
184 SHELL = /bin/sh macro
185 SND_LIB_EXTRAVER = 1000000 macro
186 SND_LIB_MAJOR = 1 macro
187 SND_LIB_MINOR = 0 macro
188 SND_LIB_SUBMINOR = 26 macro
189 SND_LIB_VERSION = 1.0.26 macro
190 STRIP = arm-brcm-linux-uclibcgnueabi-strip macro
191 SYMBOL_PREFIX = macro
192 VERSION = 1.0.26 macro
193 abs_builddir = $(SRC_PATH)/alsa-lib-1.0.26/src/pcm/scopes macro
194 abs_srcdir = $(SRC_PATH)/alsa-lib-1.0.26/src/pcm/scopes macro
195 abs_top_builddir = $(SRC_PATH)/alsa-lib-1.0.26 macro
196 abs_top_srcdir = $(SRC_PATH)/alsa-lib-1.0.26 macro
197 ac_ct_AR = macro
198 ac_ct_CC = macro
199 ac_ct_DUMPBIN = macro
200 am__include = include macro
201 am__leading_dot = . macro
202 am__quote = macro
203 am__tar = $${TAR-tar} chof - "$$tardir" macro
204 am__untar = $${TAR-tar} xf - macro
205 bindir = ${exec_prefix}/bin macro
206 build = i686-pc-linux-gnu macro
207 build_alias = macro
208 build_cpu = i686 macro
209 build_os = linux-gnu macro
210 build_vendor = pc macro
211 builddir = . macro
212 datadir = ${datarootdir} macro
213 datarootdir = ${prefix}/share macro
214 docdir = ${datarootdir}/doc/${PACKAGE} macro
215 dvidir = ${docdir} macro
216 exec_prefix = /usr macro
217 host = arm-unknown-linux-gnu macro
218 host_alias = arm-linux macro
219 host_cpu = arm macro
220 host_os = linux-gnu macro
221 host_vendor = unknown macro
222 htmldir = ${docdir} macro
223 includedir = ${prefix}/include macro
224 infodir = ${datarootdir}/info macro
225 install_sh = ${SHELL} $(SRC_PATH)/alsa-lib-1.0.26/install-sh macro
226 libdir = ${exec_prefix}/lib macro
227 libexecdir = ${exec_prefix}/libexec macro
228 localedir = ${datarootdir}/locale macro
229 localstatedir = ${prefix}/var macro
230 mandir = ${datarootdir}/man macro
231 mkdir_p = /bin/mkdir -p macro
232 oldincludedir = /usr/include macro
233 pdfdir = ${docdir} macro
234 prefix = /usr macro
235 program_transform_name = s,x,x, macro
236 psdir = ${docdir} macro
237 sbindir = ${exec_prefix}/sbin macro
238 sharedstatedir = ${prefix}/com macro
239 srcdir = . macro
240 sysconfdir = ${prefix}/etc macro
241 target_alias = macro
242 top_build_prefix = ../../../ macro
243 top_builddir = ../../.. macro
244 top_srcdir = ../../.. macro
245 AM_CFLAGS = -g -O2 -W -Wall macro
246 pkglib_LTLIBRARIES = scope-level.la macro
247 scope_level_la_SOURCES = level.c macro
248 scope_level_la_LDFLAGS = -module macro
249 scope_level_la_LIBADD = -lncurses macro
[all...]
H A Dlevel.c25 #define BAR_WIDTH macro
27 #define DECAY_MS macro
29 #define PEAK_MS macro
31 typedef struct _snd_pcm_scope_level_channel { struct
32 int16_t level; member in struct:_snd_pcm_scope_level_channel
33 int16_t peak; member in struct:_snd_pcm_scope_level_channel
34 unsigned int peak_age; member in struct:_snd_pcm_scope_level_channel
35 } snd_pcm_scope_level_channel_t; typedef in typeref:struct:_snd_pcm_scope_level_channel
37 typedef struct _snd_pcm_scope_level { struct
38 snd_pcm_t *pcm; member in struct:_snd_pcm_scope_level
39 snd_pcm_scope_t *s16; member in struct:_snd_pcm_scope_level
40 snd_pcm_scope_level_channel_t *channels; member in struct:_snd_pcm_scope_level
41 snd_pcm_uframes_t old; member in struct:_snd_pcm_scope_level
42 int top; member in struct:_snd_pcm_scope_level
43 WINDOW *win; member in struct:_snd_pcm_scope_level
44 unsigned int bar_width; member in struct:_snd_pcm_scope_level
45 unsigned int decay_ms; member in struct:_snd_pcm_scope_level
46 unsigned int peak_ms; member in struct:_snd_pcm_scope_level
47 } snd_pcm_scope_level_t; typedef in typeref:struct:_snd_pcm_scope_level
49 level_enable(snd_pcm_scope_t *scope) argument
51 snd_pcm_scope_level_t *level = snd_pcm_scope_get_callback_private(scope); local
52 int y, x; local
66 level_disable(snd_pcm_scope_t *scope) argument
68 snd_pcm_scope_level_t *level = snd_pcm_scope_get_callback_private(scope); local
73 level_close(snd_pcm_scope_t *scope) argument
75 snd_pcm_scope_level_t *level = snd_pcm_scope_get_callback_private(scope); local
79 level_start(snd_pcm_scope_t *scope ATTRIBUTE_UNUSED) argument
83 level_stop(snd_pcm_scope_t *scope) argument
85 snd_pcm_scope_level_t *level = snd_pcm_scope_get_callback_private(scope); local
86 unsigned int c; local
95 level_update(snd_pcm_scope_t *scope) argument
97 snd_pcm_scope_level_t *level = snd_pcm_scope_get_callback_private(scope); local
98 snd_pcm_t *pcm = level->pcm; local
99 snd_pcm_sframes_t size; local
100 snd_pcm_uframes_t size1, size2; local
101 snd_pcm_uframes_t offset, cont; local
102 unsigned int c, channels; local
103 unsigned int ms; local
104 static char bar[256] = { [0 ... 255] = '#' }; local
105 int max_decay; local
119 int16_t *ptr; local
120 int s, lev = 0; local
121 snd_pcm_uframes_t n; local
122 snd_pcm_scope_level_channel_t *l; local
123 unsigned int lev_pos, peak_pos; local
164 level_reset(snd_pcm_scope_t *scope) argument
166 snd_pcm_scope_level_t *level = snd_pcm_scope_get_callback_private(scope); local
167 snd_pcm_t *pcm = level->pcm; local
172 snd_pcm_scope_ops_t level_ops = { variable
182 snd_pcm_scope_level_open(snd_pcm_t *pcm, const char *name, unsigned int bar_width, unsigned int decay_ms, unsigned int peak_ms, snd_pcm_scope_t **scopep) argument
187 snd_pcm_scope_t *scope, *s16; local
188 snd_pcm_scope_level_t *level; local
189 int err = snd_pcm_scope_malloc(&scope); local
220 _snd_pcm_scope_level_open(snd_pcm_t *pcm, const char *name, snd_config_t *root, snd_config_t *conf) argument
223 snd_config_iterator_t i, next; local
224 snd_pcm_scope_t *scope; local
225 long bar_width = -1, decay_ms = -1, peak_ms = -1; local
226 int err; local
227 snd_config_for_each(i, next, conf) { function
228 snd_config_t *n = snd_config_iterator_entry(i); local
229 const char *id; local
[all...]
/netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/iserver/alsa-lib-1.0.26/src/rawmidi/
H A DMakefile19 pkgdatadir = $(datadir)/alsa-lib macro
20 pkgincludedir = $(includedir)/alsa-lib macro
21 pkglibdir = $(libdir)/alsa-lib macro
22 pkglibexecdir = $(libexecdir)/alsa-lib macro
23 am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd macro
24 install_sh_DATA = $(install_sh) -c -m 644 macro
25 install_sh_PROGRAM = $(install_sh) -c macro
26 install_sh_SCRIPT = $(install_sh) -c macro
27 INSTALL_HEADER = $(INSTALL_DATA) macro
28 transform = $(program_transform_name) macro
29 NORMAL_INSTALL = : macro
30 PRE_INSTALL = : macro
31 POST_INSTALL = : macro
32 NORMAL_UNINSTALL = : macro
33 PRE_UNINSTALL = : macro
34 POST_UNINSTALL = : macro
35 build_triplet = i686-pc-linux-gnu macro
36 host_triplet = arm-unknown-linux-gnu macro
37 am__append_1 = rawmidi_virt.c macro
38 subdir = src/rawmidi macro
39 DIST_COMMON = $(noinst_HEADERS) $(srcdir)/Makefile.am \\ macro
41 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 macro
42 am__aclocal_m4_deps = $(top_srcdir)/acinclude.m4 \\ macro
44 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \\ macro
46 mkinstalldirs = $(install_sh) -d macro
47 CONFIG_HEADER = $(top_builddir)/include/config.h macro
48 CONFIG_CLEAN_FILES = macro
49 CONFIG_CLEAN_VPATH_FILES = macro
50 librawmidi_la_LIBADD = macro
51 am__librawmidi_la_SOURCES_DIST = rawmidi.c rawmidi_hw.c \\ macro
53 am__objects_1 = rawmidi_virt.lo macro
54 am_librawmidi_la_OBJECTS = rawmidi.lo rawmidi_hw.lo rawmidi_symbols.lo \\ macro
56 librawmidi_la_OBJECTS = $(am_librawmidi_la_OBJECTS) macro
57 AM_V_lt = $(am__v_lt_$(V)) macro
58 am__v_lt_ = $(am__v_lt_$(AM_DEFAULT_VERBOSITY)) macro
59 am__v_lt_0 = --silent macro
60 DEFAULT_INCLUDES = -I. -I$(top_builddir)/include macro
61 depcomp = $(SHELL) $(top_srcdir)/depcomp macro
62 am__depfiles_maybe = depfiles macro
63 am__mv = mv -f macro
64 COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \\ macro
66 LTCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \\ macro
70 AM_V_CC = $(am__v_CC_$(V)) macro
71 am__v_CC_ = $(am__v_CC_$(AM_DEFAULT_VERBOSITY)) macro
72 am__v_CC_0 = @echo " CC " $@; macro
73 AM_V_at = $(am__v_at_$(V)) macro
74 am__v_at_ = $(am__v_at_$(AM_DEFAULT_VERBOSITY)) macro
75 am__v_at_0 = @ macro
76 CCLD = $(CC) macro
77 LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \\ macro
80 AM_V_CCLD = $(am__v_CCLD_$(V)) macro
81 am__v_CCLD_ = $(am__v_CCLD_$(AM_DEFAULT_VERBOSITY)) macro
82 am__v_CCLD_0 = @echo " CCLD " $@; macro
83 AM_V_GEN = $(am__v_GEN_$(V)) macro
84 am__v_GEN_ = $(am__v_GEN_$(AM_DEFAULT_VERBOSITY)) macro
85 am__v_GEN_0 = @echo " GEN " $@; macro
86 SOURCES = $(librawmidi_la_SOURCES) macro
87 DIST_SOURCES = $(am__librawmidi_la_SOURCES_DIST) macro
88 HEADERS = $(noinst_HEADERS) macro
89 ETAGS = etags macro
90 CTAGS = ctags macro
91 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) macro
92 ACLOCAL = ${SHELL} $(SRC_PATH)/alsa-lib-1.0.26/missing --run aclocal-1.11 macro
93 ALSA_CONFIG_DIR = /usr/share/alsa macro
94 ALSA_DEPLIBS = -lm -ldl -lpthread -lrt macro
95 ALSA_PKGCONF_DIR = /usr/lib/pkgconfig macro
96 ALSA_PLUGIN_DIR = /usr/lib/alsa-lib macro
97 AMTAR = $${TAR-tar} macro
98 AM_DEFAULT_VERBOSITY = 0 macro
99 AR = arm-brcm-linux-uclibcgnueabi-ar macro
100 AUTOCONF = ${SHELL} $(SRC_PATH)/alsa-lib-1.0.26/missing --run autoconf macro
101 AUTOHEADER = ${SHELL} $(SRC_PATH)/alsa-lib-1.0.26/missing --run autoheader macro
102 AUTOMAKE = ${SHELL} $(SRC_PATH)/alsa-lib-1.0.26/missing --run automake-1.11 macro
103 AWK = gawk macro
104 CC = arm-brcm-linux-uclibcgnueabi-gcc macro
105 CCDEPMODE = depmode=gcc3 macro
106 CFLAGS = -Os -O2 -DBCMWPA2 -DRESTART_ALL_PROCESSES -D__CONFIG_USBAP__ -DBCMQOS -DBCMWPS -D__CONFIG_EMF__ -DTRAFFIC_MGMT -DPHYMON -DSUPPORT_REMOTE_HTTPS -DINCLUDE_WPS_V20 -DINCLUDE_5G_AUTO_CHANNEL -DOPENDNS_PARENTAL_CONTROL -DINCLUDE_UCP -DU12H240 -DR6300v2 -DMULTIPLE_SSID -DENABLE_ML -DBCM53125 -DBCM5301X -DCONFIG_RUSSIA_IPTV -DDLNA -DHTTP_ACCESS_USB -DMAX_USB_ACCESS -DSAMBA_ENABLE -DUSB_NEW_SPEC -DINCLUDE_WIFI_BUTTON -DINCLUDE_USB_LED -DINCLUDE_DUAL_BAND -DSINGLE_FIRMWARE -DINCLUDE_GET_ST_CHKSUM -DUNIFIED_STR_TBL -DFIRST_MTD_ROTATION -DWIFI_ON_OFF_SCHE -DAUTO_CONN_24HR -DIGMP_PROXY -DAP_MODE -D__CONFIG_IGMP_SNOOPING__ -DLINUX26 -DINCLUDE_IPV6 -DPRESET_WL_SECURITY -DNEW_BCM_WPS_IPC -DSUPPORT_AC_MODE -DSTA_MODE -DPPP_RU_DESIGN -DEXT_ACS -D__CONFIG_PLC__ -D__CONFIG_URE__ -DPLC -DWPS_LONGPUSH_DISABLE -Os -DLINUX26 -DCONFIG_KERNEL_2_6_36 -I$(SRC_PATH)/build/usr/include -D_GNU_SOURCE macro
107 CPP = arm-brcm-linux-uclibcgnueabi-gcc -E macro
108 CPPFLAGS = -I$(SRC_PATH)/build/usr/include -D__arm__ macro
109 CYGPATH_W = echo macro
110 DEFS = -DHAVE_CONFIG_H macro
111 DEPDIR = .deps macro
112 DLLTOOL = false macro
113 DSYMUTIL = macro
114 DUMPBIN = macro
115 ECHO_C = macro
116 ECHO_N = -n macro
117 ECHO_T = macro
118 EGREP = /bin/grep -E macro
119 EXEEXT = macro
120 FGREP = /bin/grep -F macro
121 GREP = /bin/grep macro
122 INSTALL = /usr/bin/install -c macro
123 INSTALL_DATA = ${INSTALL} -m 644 macro
124 INSTALL_PROGRAM = ${INSTALL} macro
125 INSTALL_SCRIPT = ${INSTALL} macro
126 INSTALL_STRIP_PROGRAM = $(install_sh) -c -s macro
127 LD = arm-brcm-linux-uclibcgnueabi-ld macro
128 LDFLAGS = -L$(SRC_PATH)/build/usr/lib macro
129 LIBOBJS = macro
130 LIBS = macro
131 LIBTOOL = $(SHELL) $(top_builddir)/libtool macro
132 LIBTOOL_VERSION_INFO = 2:0:0 macro
133 LIPO = macro
134 LN_S = ln -s macro
135 LTLIBOBJS = macro
136 MAKEINFO = ${SHELL} $(SRC_PATH)/alsa-lib-1.0.26/missing --run makeinfo macro
137 MANIFEST_TOOL = : macro
138 MKDIR_P = /bin/mkdir -p macro
139 NM = arm-brcm-linux-uclibcgnueabi-nm macro
140 NMEDIT = macro
141 OBJDUMP = arm-brcm-linux-uclibcgnueabi-objdump macro
142 OBJEXT = o macro
143 OTOOL = macro
144 OTOOL64 = macro
145 PACKAGE = alsa-lib macro
146 PACKAGE_BUGREPORT = macro
147 PACKAGE_NAME = macro
148 PACKAGE_STRING = macro
149 PACKAGE_TARNAME = macro
150 PACKAGE_URL = macro
151 PACKAGE_VERSION = macro
152 PATH_SEPARATOR = : macro
153 PYTHON_INCLUDES = macro
154 PYTHON_LIBS = macro
155 RANLIB = arm-brcm-linux-uclibcgnueabi-ranlib macro
156 SED = /bin/sed macro
157 SET_MAKE = macro
158 SHELL = /bin/sh macro
159 SND_LIB_EXTRAVER = 1000000 macro
160 SND_LIB_MAJOR = 1 macro
161 SND_LIB_MINOR = 0 macro
162 SND_LIB_SUBMINOR = 26 macro
163 SND_LIB_VERSION = 1.0.26 macro
164 STRIP = arm-brcm-linux-uclibcgnueabi-strip macro
165 SYMBOL_PREFIX = macro
166 VERSION = 1.0.26 macro
167 abs_builddir = $(SRC_PATH)/alsa-lib-1.0.26/src/rawmidi macro
168 abs_srcdir = $(SRC_PATH)/alsa-lib-1.0.26/src/rawmidi macro
169 abs_top_builddir = $(SRC_PATH)/alsa-lib-1.0.26 macro
170 abs_top_srcdir = $(SRC_PATH)/alsa-lib-1.0.26 macro
171 ac_ct_AR = macro
172 ac_ct_CC = macro
173 ac_ct_DUMPBIN = macro
174 am__include = include macro
175 am__leading_dot = . macro
176 am__quote = macro
177 am__tar = $${TAR-tar} chof - "$$tardir" macro
178 am__untar = $${TAR-tar} xf - macro
179 bindir = ${exec_prefix}/bin macro
180 build = i686-pc-linux-gnu macro
181 build_alias = macro
182 build_cpu = i686 macro
183 build_os = linux-gnu macro
184 build_vendor = pc macro
185 builddir = . macro
186 datadir = ${datarootdir} macro
187 datarootdir = ${prefix}/share macro
188 docdir = ${datarootdir}/doc/${PACKAGE} macro
189 dvidir = ${docdir} macro
190 exec_prefix = /usr macro
191 host = arm-unknown-linux-gnu macro
192 host_alias = arm-linux macro
193 host_cpu = arm macro
194 host_os = linux-gnu macro
195 host_vendor = unknown macro
196 htmldir = ${docdir} macro
197 includedir = ${prefix}/include macro
198 infodir = ${datarootdir}/info macro
199 install_sh = ${SHELL} $(SRC_PATH)/alsa-lib-1.0.26/install-sh macro
200 libdir = ${exec_prefix}/lib macro
201 libexecdir = ${exec_prefix}/libexec macro
202 localedir = ${datarootdir}/locale macro
203 localstatedir = ${prefix}/var macro
204 mandir = ${datarootdir}/man macro
205 mkdir_p = /bin/mkdir -p macro
206 oldincludedir = /usr/include macro
207 pdfdir = ${docdir} macro
208 prefix = /usr macro
209 program_transform_name = s,x,x, macro
210 psdir = ${docdir} macro
211 sbindir = ${exec_prefix}/sbin macro
212 sharedstatedir = ${prefix}/com macro
213 srcdir = . macro
214 sysconfdir = ${prefix}/etc macro
215 target_alias = macro
216 top_build_prefix = ../../ macro
217 top_builddir = ../.. macro
218 top_srcdir = ../.. macro
219 EXTRA_LTLIBRARIES = librawmidi.la macro
220 librawmidi_la_SOURCES = rawmidi.c rawmidi_hw.c rawmidi_symbols.c \\ macro
222 noinst_HEADERS = rawmidi_local.h macro
223 INCLUDES = -I$(top_srcdir)/include macro
[all...]
H A Drawmidi.c150 snd_rawmidi_params_default(snd_rawmidi_t *rawmidi, snd_rawmidi_params_t *params) argument
160 snd_rawmidi_open_conf(snd_rawmidi_t **inputp, snd_rawmidi_t **outputp, const char *name, snd_config_t *rawmidi_root, snd_config_t *rawmidi_conf, int mode) argument
164 const char *str; local
165 char buf[256]; local
166 int err; local
167 snd_config_t *conf, *type_conf = NULL; local
168 snd_config_iterator_t i, next; local
169 snd_rawmidi_params_t params; local
170 const char *id; local
171 const char *lib = NULL, *open_name = NULL; local
177 void *h = NULL; local
207 snd_config_for_each(i, next, type_conf) { function
208 snd_config_t *n = snd_config_iterator_entry(i); local
209 const char *id; local
276 snd_rawmidi_open_noupdate(snd_rawmidi_t **inputp, snd_rawmidi_t **outputp, snd_config_t *root, const char *name, int mode) argument
279 int err; local
280 snd_config_t *rawmidi_conf; local
302 snd_rawmidi_open(snd_rawmidi_t **inputp, snd_rawmidi_t **outputp, const char *name, int mode) argument
305 int err; local
325 snd_rawmidi_open_lconf(snd_rawmidi_t **inputp, snd_rawmidi_t **outputp, const char *name, int mode, snd_config_t *lconf) argument
340 snd_rawmidi_close(snd_rawmidi_t *rawmidi) argument
342 int err; local
360 snd_rawmidi_name(snd_rawmidi_t *rawmidi) argument
373 snd_rawmidi_type(snd_rawmidi_t *rawmidi) argument
386 snd_rawmidi_stream(snd_rawmidi_t *rawmidi) argument
397 snd_rawmidi_poll_descriptors_count(snd_rawmidi_t *rawmidi) argument
410 snd_rawmidi_poll_descriptors(snd_rawmidi_t *rawmidi, struct pollfd *pfds, unsigned int space) argument
429 snd_rawmidi_poll_descriptors_revents(snd_rawmidi_t *rawmidi, struct pollfd *pfds, unsigned int nfds, unsigned short *revents) argument
448 snd_rawmidi_nonblock(snd_rawmidi_t *rawmidi, int nonblock) argument
450 int err; local
466 size_t snd_rawmidi_info_sizeof() function
479 snd_rawmidi_info_malloc(snd_rawmidi_info_t **info) argument
495 snd_rawmidi_info_free(snd_rawmidi_info_t *info) argument
506 snd_rawmidi_info_copy(snd_rawmidi_info_t *dst, const snd_rawmidi_info_t *src) argument
517 snd_rawmidi_info_get_device(const snd_rawmidi_info_t *info) argument
528 snd_rawmidi_info_get_subdevice(const snd_rawmidi_info_t *info) argument
539 snd_rawmidi_info_get_stream(const snd_rawmidi_info_t *info) argument
550 snd_rawmidi_info_get_card(const snd_rawmidi_info_t *info) argument
561 snd_rawmidi_info_get_flags(const snd_rawmidi_info_t *info) argument
572 snd_rawmidi_info_get_id(const snd_rawmidi_info_t *info) argument
583 snd_rawmidi_info_get_name(const snd_rawmidi_info_t *info) argument
594 snd_rawmidi_info_get_subdevice_name(const snd_rawmidi_info_t *info) argument
605 snd_rawmidi_info_get_subdevices_count(const snd_rawmidi_info_t *info) argument
616 snd_rawmidi_info_get_subdevices_avail(const snd_rawmidi_info_t *info) argument
627 snd_rawmidi_info_set_device(snd_rawmidi_info_t *info, unsigned int val) argument
638 snd_rawmidi_info_set_subdevice(snd_rawmidi_info_t *info, unsigned int val) argument
649 snd_rawmidi_info_set_stream(snd_rawmidi_info_t *info, snd_rawmidi_stream_t val) argument
661 snd_rawmidi_info(snd_rawmidi_t *rawmidi, snd_rawmidi_info_t * info) argument
672 size_t snd_rawmidi_params_sizeof() function
685 snd_rawmidi_params_malloc(snd_rawmidi_params_t **params) argument
701 snd_rawmidi_params_free(snd_rawmidi_params_t *params) argument
712 snd_rawmidi_params_copy(snd_rawmidi_params_t *dst, const snd_rawmidi_params_t *src) argument
726 snd_rawmidi_params_set_buffer_size(snd_rawmidi_t *rawmidi ATTRIBUTE_UNUSED, snd_rawmidi_params_t *params, size_t val) argument
742 snd_rawmidi_params_get_buffer_size(const snd_rawmidi_params_t *params) argument
755 snd_rawmidi_params_set_avail_min(snd_rawmidi_t *rawmidi ATTRIBUTE_UNUSED, snd_rawmidi_params_t *params, size_t val) argument
771 snd_rawmidi_params_get_avail_min(const snd_rawmidi_params_t *params) argument
785 snd_rawmidi_params_set_no_active_sensing(snd_rawmidi_t *rawmidi ATTRIBUTE_UNUSED, snd_rawmidi_params_t *params, int val) argument
800 snd_rawmidi_params_get_no_active_sensing(const snd_rawmidi_params_t *params) argument
812 snd_rawmidi_params(snd_rawmidi_t *rawmidi, snd_rawmidi_params_t * params) argument
814 int err; local
832 snd_rawmidi_params_current(snd_rawmidi_t *rawmidi, snd_rawmidi_params_t *params) argument
846 size_t snd_rawmidi_status_sizeof() function
859 snd_rawmidi_status_malloc(snd_rawmidi_status_t **ptr) argument
875 snd_rawmidi_status_free(snd_rawmidi_status_t *status) argument
886 snd_rawmidi_status_copy(snd_rawmidi_status_t *dst, const snd_rawmidi_status_t *src) argument
897 snd_rawmidi_status_get_tstamp(const snd_rawmidi_status_t *status, snd_htimestamp_t *tstamp) argument
908 snd_rawmidi_status_get_avail(const snd_rawmidi_status_t *status) argument
919 snd_rawmidi_status_get_xruns(const snd_rawmidi_status_t *status) argument
931 snd_rawmidi_status(snd_rawmidi_t *rawmidi, snd_rawmidi_status_t * status) argument
943 snd_rawmidi_drop(snd_rawmidi_t *rawmidi) argument
957 snd_rawmidi_drain(snd_rawmidi_t *rawmidi) argument
969 snd_rawmidi_write(snd_rawmidi_t *rawmidi, const void *buffer, size_t size) argument
983 snd_rawmidi_read(snd_rawmidi_t *rawmidi, void *buffer, size_t size) argument
992 snd_rawmidi_conf_generic_id(const char *id) argument
994 static const char ids[][8] = { local
999 unsigned int k; local
[all...]
H A Drawmidi_hw.c34 const char *_snd_module_rawmidi_hw = ""; variable
37 #define SNDRV_FILE_RAWMIDI macro
38 #define SNDRV_RAWMIDI_VERSION_MAX macro
42 int open; member in struct:__anon1508
43 int fd; member in struct:__anon1508
44 int card, device, subdevice; member in struct:__anon1508
45 } snd_rawmidi_hw_t; typedef in typeref:struct:__anon1508
48 snd_rawmidi_hw_close(snd_rawmidi_t *rmidi) argument
50 snd_rawmidi_hw_t *hw = rmidi->private_data; local
51 int err = 0; local
64 snd_rawmidi_hw_nonblock(snd_rawmidi_t *rmidi, int nonblock) argument
66 snd_rawmidi_hw_t *hw = rmidi->private_data; local
67 long flags; local
84 snd_rawmidi_hw_info(snd_rawmidi_t *rmidi, snd_rawmidi_info_t * info) argument
86 snd_rawmidi_hw_t *hw = rmidi->private_data; local
95 snd_rawmidi_hw_params(snd_rawmidi_t *rmidi, snd_rawmidi_params_t * params) argument
97 snd_rawmidi_hw_t *hw = rmidi->private_data; local
106 snd_rawmidi_hw_status(snd_rawmidi_t *rmidi, snd_rawmidi_status_t * status) argument
108 snd_rawmidi_hw_t *hw = rmidi->private_data; local
117 snd_rawmidi_hw_drop(snd_rawmidi_t *rmidi) argument
119 snd_rawmidi_hw_t *hw = rmidi->private_data; local
120 int str = rmidi->stream; local
128 snd_rawmidi_hw_drain(snd_rawmidi_t *rmidi) argument
130 snd_rawmidi_hw_t *hw = rmidi->private_data; local
131 int str = rmidi->stream; local
139 snd_rawmidi_hw_write(snd_rawmidi_t *rmidi, const void *buffer, size_t size) argument
141 snd_rawmidi_hw_t *hw = rmidi->private_data; local
142 ssize_t result; local
149 snd_rawmidi_hw_read(snd_rawmidi_t *rmidi, void *buffer, size_t size) argument
151 snd_rawmidi_hw_t *hw = rmidi->private_data; local
152 ssize_t result; local
159 static const snd_rawmidi_ops_t snd_rawmidi_hw_ops = { variable
172 snd_rawmidi_hw_open(snd_rawmidi_t **inputp, snd_rawmidi_t **outputp, const char *name, int card, int device, int subdevice, int mode) argument
176 int fd, ver, ret; local
177 int attempt = 0; local
178 char filename[sizeof(SNDRV_FILE_RAWMIDI) + 20]; local
179 snd_ctl_t *ctl; local
180 snd_rawmidi_t *rmidi; local
181 snd_rawmidi_hw_t *hw = NULL; local
182 snd_rawmidi_info_t info; local
183 int fmode; local
316 _snd_rawmidi_hw_open(snd_rawmidi_t **inputp, snd_rawmidi_t **outputp, char *name, snd_config_t *root ATTRIBUTE_UNUSED, snd_config_t *conf, int mode) argument
320 snd_config_iterator_t i, next; local
321 long card = -1, device = 0, subdevice = -1; local
322 const char *str; local
323 int err; local
324 snd_config_for_each(i, next, conf) { function
325 snd_config_t *n = snd_config_iterator_entry(i); local
326 const char *id; local
[all...]

Completed in 1091 milliseconds

<<21222324252627282930>>