Lines Matching refs:substream
34 #define snd_pcm_substream_chip(substream) ((substream)->private_data) argument
67 int (*open)(struct snd_pcm_substream *substream);
68 int (*close)(struct snd_pcm_substream *substream);
69 int (*ioctl)(struct snd_pcm_substream * substream,
71 int (*hw_params)(struct snd_pcm_substream *substream,
73 int (*hw_free)(struct snd_pcm_substream *substream);
74 int (*prepare)(struct snd_pcm_substream *substream);
75 int (*trigger)(struct snd_pcm_substream *substream, int cmd);
76 snd_pcm_uframes_t (*pointer)(struct snd_pcm_substream *substream);
77 int (*get_time_info)(struct snd_pcm_substream *substream,
81 int (*copy)(struct snd_pcm_substream *substream, int channel,
84 int (*silence)(struct snd_pcm_substream *substream, int channel,
86 struct page *(*page)(struct snd_pcm_substream *substream,
88 int (*mmap)(struct snd_pcm_substream *substream, struct vm_area_struct *vma);
89 int (*ack)(struct snd_pcm_substream *substream);
217 struct snd_pcm_substream *substream; member
487 #define SUBSTREAM_BUSY(substream) ((substream)->ref_count > 0) argument
496 struct snd_pcm_substream *substream; member
561 int snd_pcm_info(struct snd_pcm_substream *substream, struct snd_pcm_info *info);
562 int snd_pcm_info_user(struct snd_pcm_substream *substream,
564 int snd_pcm_status(struct snd_pcm_substream *substream,
566 int snd_pcm_start(struct snd_pcm_substream *substream);
567 int snd_pcm_stop(struct snd_pcm_substream *substream, snd_pcm_state_t status);
568 int snd_pcm_drain_done(struct snd_pcm_substream *substream);
569 int snd_pcm_stop_xrun(struct snd_pcm_substream *substream);
571 int snd_pcm_suspend(struct snd_pcm_substream *substream);
574 int snd_pcm_kernel_ioctl(struct snd_pcm_substream *substream, unsigned int cmd, void *arg);
577 void snd_pcm_release_substream(struct snd_pcm_substream *substream);
580 void snd_pcm_detach_substream(struct snd_pcm_substream *substream);
581 int snd_pcm_mmap_data(struct snd_pcm_substream *substream, struct file *file, struct vm_area_struct…
585 void snd_pcm_debug_name(struct snd_pcm_substream *substream,
589 snd_pcm_debug_name(struct snd_pcm_substream *substream, char *buf, size_t size) in snd_pcm_debug_name() argument
605 static inline int snd_pcm_stream_linked(struct snd_pcm_substream *substream) in snd_pcm_stream_linked() argument
607 return substream->group != &substream->self_group; in snd_pcm_stream_linked()
610 void snd_pcm_stream_lock(struct snd_pcm_substream *substream);
611 void snd_pcm_stream_unlock(struct snd_pcm_substream *substream);
612 void snd_pcm_stream_lock_irq(struct snd_pcm_substream *substream);
613 void snd_pcm_stream_unlock_irq(struct snd_pcm_substream *substream);
614 unsigned long _snd_pcm_stream_lock_irqsave(struct snd_pcm_substream *substream);
625 #define snd_pcm_stream_lock_irqsave(substream, flags) \ argument
628 flags = _snd_pcm_stream_lock_irqsave(substream); \
630 void snd_pcm_stream_unlock_irqrestore(struct snd_pcm_substream *substream,
642 #define snd_pcm_group_for_each_entry(s, substream) \ argument
643 list_for_each_entry(s, &substream->group->substreams, link_list)
652 static inline int snd_pcm_running(struct snd_pcm_substream *substream) in snd_pcm_running() argument
654 return (substream->runtime->status->state == SNDRV_PCM_STATE_RUNNING || in snd_pcm_running()
655 (substream->runtime->status->state == SNDRV_PCM_STATE_DRAINING && in snd_pcm_running()
656 substream->stream == SNDRV_PCM_STREAM_PLAYBACK)); in snd_pcm_running()
713 static inline size_t snd_pcm_lib_buffer_bytes(struct snd_pcm_substream *substream) in snd_pcm_lib_buffer_bytes() argument
715 struct snd_pcm_runtime *runtime = substream->runtime; in snd_pcm_lib_buffer_bytes()
723 static inline size_t snd_pcm_lib_period_bytes(struct snd_pcm_substream *substream) in snd_pcm_lib_period_bytes() argument
725 struct snd_pcm_runtime *runtime = substream->runtime; in snd_pcm_lib_period_bytes()
785 static inline int snd_pcm_playback_ready(struct snd_pcm_substream *substream) in snd_pcm_playback_ready() argument
787 struct snd_pcm_runtime *runtime = substream->runtime; in snd_pcm_playback_ready()
799 static inline int snd_pcm_capture_ready(struct snd_pcm_substream *substream) in snd_pcm_capture_ready() argument
801 struct snd_pcm_runtime *runtime = substream->runtime; in snd_pcm_capture_ready()
814 static inline int snd_pcm_playback_data(struct snd_pcm_substream *substream) in snd_pcm_playback_data() argument
816 struct snd_pcm_runtime *runtime = substream->runtime; in snd_pcm_playback_data()
831 static inline int snd_pcm_playback_empty(struct snd_pcm_substream *substream) in snd_pcm_playback_empty() argument
833 struct snd_pcm_runtime *runtime = substream->runtime; in snd_pcm_playback_empty()
845 static inline int snd_pcm_capture_empty(struct snd_pcm_substream *substream) in snd_pcm_capture_empty() argument
847 struct snd_pcm_runtime *runtime = substream->runtime; in snd_pcm_capture_empty()
865 static inline void snd_pcm_trigger_done(struct snd_pcm_substream *substream, in snd_pcm_trigger_done() argument
868 substream->runtime->trigger_master = master; in snd_pcm_trigger_done()
978 int snd_pcm_hw_params_choose(struct snd_pcm_substream *substream, struct snd_pcm_hw_params *params);
980 int snd_pcm_hw_refine(struct snd_pcm_substream *substream, struct snd_pcm_hw_params *params);
982 int snd_pcm_hw_constraints_init(struct snd_pcm_substream *substream);
983 int snd_pcm_hw_constraints_complete(struct snd_pcm_substream *substream);
1071 void snd_pcm_set_sync(struct snd_pcm_substream *substream);
1072 int snd_pcm_lib_ioctl(struct snd_pcm_substream *substream,
1074 int snd_pcm_update_state(struct snd_pcm_substream *substream,
1076 int snd_pcm_update_hw_ptr(struct snd_pcm_substream *substream);
1077 void snd_pcm_playback_silence(struct snd_pcm_substream *substream, snd_pcm_uframes_t new_hw_ptr);
1078 void snd_pcm_period_elapsed(struct snd_pcm_substream *substream);
1079 snd_pcm_sframes_t snd_pcm_lib_write(struct snd_pcm_substream *substream,
1082 snd_pcm_sframes_t snd_pcm_lib_read(struct snd_pcm_substream *substream,
1084 snd_pcm_sframes_t snd_pcm_lib_writev(struct snd_pcm_substream *substream,
1086 snd_pcm_sframes_t snd_pcm_lib_readv(struct snd_pcm_substream *substream,
1105 static inline void snd_pcm_set_runtime_buffer(struct snd_pcm_substream *substream, in snd_pcm_set_runtime_buffer() argument
1108 struct snd_pcm_runtime *runtime = substream->runtime; in snd_pcm_set_runtime_buffer()
1127 void snd_pcm_timer_resolution_change(struct snd_pcm_substream *substream);
1128 void snd_pcm_timer_init(struct snd_pcm_substream *substream);
1129 void snd_pcm_timer_done(struct snd_pcm_substream *substream);
1132 snd_pcm_timer_resolution_change(struct snd_pcm_substream *substream) {} in snd_pcm_timer_resolution_change() argument
1133 static inline void snd_pcm_timer_init(struct snd_pcm_substream *substream) {} in snd_pcm_timer_init() argument
1134 static inline void snd_pcm_timer_done(struct snd_pcm_substream *substream) {} in snd_pcm_timer_done() argument
1161 int snd_pcm_lib_preallocate_free(struct snd_pcm_substream *substream);
1163 int snd_pcm_lib_preallocate_pages(struct snd_pcm_substream *substream,
1169 int snd_pcm_lib_malloc_pages(struct snd_pcm_substream *substream, size_t size);
1170 int snd_pcm_lib_free_pages(struct snd_pcm_substream *substream);
1172 int _snd_pcm_lib_alloc_vmalloc_buffer(struct snd_pcm_substream *substream,
1174 int snd_pcm_lib_free_vmalloc_buffer(struct snd_pcm_substream *substream);
1175 struct page *snd_pcm_lib_get_vmalloc_page(struct snd_pcm_substream *substream,
1190 (struct snd_pcm_substream *substream, size_t size) in snd_pcm_lib_alloc_vmalloc_buffer() argument
1192 return _snd_pcm_lib_alloc_vmalloc_buffer(substream, size, in snd_pcm_lib_alloc_vmalloc_buffer()
1208 (struct snd_pcm_substream *substream, size_t size) in snd_pcm_lib_alloc_vmalloc_32_buffer() argument
1210 return _snd_pcm_lib_alloc_vmalloc_buffer(substream, size, in snd_pcm_lib_alloc_vmalloc_32_buffer()
1214 #define snd_pcm_get_dma_buf(substream) ((substream)->runtime->dma_buffer_p) argument
1220 #define snd_pcm_substream_sgbuf(substream) \ argument
1221 snd_pcm_get_dma_buf(substream)->private_data
1223 struct page *snd_pcm_sgbuf_ops_page(struct snd_pcm_substream *substream,
1238 snd_pcm_sgbuf_get_addr(struct snd_pcm_substream *substream, unsigned int ofs) in snd_pcm_sgbuf_get_addr() argument
1240 return snd_sgbuf_get_addr(snd_pcm_get_dma_buf(substream), ofs); in snd_pcm_sgbuf_get_addr()
1249 snd_pcm_sgbuf_get_ptr(struct snd_pcm_substream *substream, unsigned int ofs) in snd_pcm_sgbuf_get_ptr() argument
1251 return snd_sgbuf_get_ptr(snd_pcm_get_dma_buf(substream), ofs); in snd_pcm_sgbuf_get_ptr()
1262 snd_pcm_sgbuf_get_chunk_size(struct snd_pcm_substream *substream, in snd_pcm_sgbuf_get_chunk_size() argument
1265 return snd_sgbuf_get_chunk_size(snd_pcm_get_dma_buf(substream), ofs, size); in snd_pcm_sgbuf_get_chunk_size()
1276 struct snd_pcm_substream *substream = (struct snd_pcm_substream *)area->vm_private_data; in snd_pcm_mmap_data_open() local
1277 atomic_inc(&substream->mmap_count); in snd_pcm_mmap_data_open()
1288 struct snd_pcm_substream *substream = (struct snd_pcm_substream *)area->vm_private_data; in snd_pcm_mmap_data_close() local
1289 atomic_dec(&substream->mmap_count); in snd_pcm_mmap_data_close()
1292 int snd_pcm_lib_default_mmap(struct snd_pcm_substream *substream,
1297 int snd_pcm_lib_mmap_iomem(struct snd_pcm_substream *substream, struct vm_area_struct *area);
1334 static inline const char *snd_pcm_stream_str(struct snd_pcm_substream *substream) in snd_pcm_stream_str() argument
1336 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) in snd_pcm_stream_str()
1371 for (s = info->pcm->streams[info->stream].substream; s; s = s->next) in snd_pcm_chmap_substream()