Lines Matching refs:substream

20 #define snd_pcm_substream_chip(substream) ((substream)->private_data)  argument
54 int (*open)(struct snd_pcm_substream *substream);
55 int (*close)(struct snd_pcm_substream *substream);
56 int (*ioctl)(struct snd_pcm_substream * substream,
58 int (*hw_params)(struct snd_pcm_substream *substream,
60 int (*hw_free)(struct snd_pcm_substream *substream);
61 int (*prepare)(struct snd_pcm_substream *substream);
62 int (*trigger)(struct snd_pcm_substream *substream, int cmd);
63 int (*sync_stop)(struct snd_pcm_substream *substream);
64 snd_pcm_uframes_t (*pointer)(struct snd_pcm_substream *substream);
65 int (*get_time_info)(struct snd_pcm_substream *substream,
69 int (*fill_silence)(struct snd_pcm_substream *substream, int channel,
71 int (*copy_user)(struct snd_pcm_substream *substream, int channel,
74 int (*copy_kernel)(struct snd_pcm_substream *substream, int channel,
76 struct page *(*page)(struct snd_pcm_substream *substream,
78 int (*mmap)(struct snd_pcm_substream *substream, struct vm_area_struct *vma);
79 int (*ack)(struct snd_pcm_substream *substream);
220 struct snd_pcm_substream *substream; member
485 #define SUBSTREAM_BUSY(substream) ((substream)->ref_count > 0) argument
494 struct snd_pcm_substream *substream; member
559 int snd_pcm_info(struct snd_pcm_substream *substream, struct snd_pcm_info *info);
560 int snd_pcm_info_user(struct snd_pcm_substream *substream,
562 int snd_pcm_status64(struct snd_pcm_substream *substream,
564 int snd_pcm_start(struct snd_pcm_substream *substream);
565 int snd_pcm_stop(struct snd_pcm_substream *substream, snd_pcm_state_t status);
566 int snd_pcm_drain_done(struct snd_pcm_substream *substream);
567 int snd_pcm_stop_xrun(struct snd_pcm_substream *substream);
576 int snd_pcm_kernel_ioctl(struct snd_pcm_substream *substream, unsigned int cmd, void *arg);
579 void snd_pcm_release_substream(struct snd_pcm_substream *substream);
582 void snd_pcm_detach_substream(struct snd_pcm_substream *substream);
583 int snd_pcm_mmap_data(struct snd_pcm_substream *substream, struct file *file, struct vm_area_struct…
587 void snd_pcm_debug_name(struct snd_pcm_substream *substream,
591 snd_pcm_debug_name(struct snd_pcm_substream *substream, char *buf, size_t size) in snd_pcm_debug_name() argument
607 static inline int snd_pcm_stream_linked(struct snd_pcm_substream *substream) in snd_pcm_stream_linked() argument
609 return substream->group != &substream->self_group; in snd_pcm_stream_linked()
612 void snd_pcm_stream_lock(struct snd_pcm_substream *substream);
613 void snd_pcm_stream_unlock(struct snd_pcm_substream *substream);
614 void snd_pcm_stream_lock_irq(struct snd_pcm_substream *substream);
615 void snd_pcm_stream_unlock_irq(struct snd_pcm_substream *substream);
616 unsigned long _snd_pcm_stream_lock_irqsave(struct snd_pcm_substream *substream);
627 #define snd_pcm_stream_lock_irqsave(substream, flags) \ argument
630 flags = _snd_pcm_stream_lock_irqsave(substream); \
632 void snd_pcm_stream_unlock_irqrestore(struct snd_pcm_substream *substream,
644 #define snd_pcm_group_for_each_entry(s, substream) \ argument
645 list_for_each_entry(s, &substream->group->substreams, link_list)
659 static inline int snd_pcm_running(struct snd_pcm_substream *substream) in snd_pcm_running() argument
661 return (substream->runtime->status->state == SNDRV_PCM_STATE_RUNNING || in snd_pcm_running()
662 (substream->runtime->status->state == SNDRV_PCM_STATE_DRAINING && in snd_pcm_running()
663 substream->stream == SNDRV_PCM_STREAM_PLAYBACK)); in snd_pcm_running()
720 static inline size_t snd_pcm_lib_buffer_bytes(struct snd_pcm_substream *substream) in snd_pcm_lib_buffer_bytes() argument
722 struct snd_pcm_runtime *runtime = substream->runtime; in snd_pcm_lib_buffer_bytes()
730 static inline size_t snd_pcm_lib_period_bytes(struct snd_pcm_substream *substream) in snd_pcm_lib_period_bytes() argument
732 struct snd_pcm_runtime *runtime = substream->runtime; in snd_pcm_lib_period_bytes()
792 static inline int snd_pcm_playback_ready(struct snd_pcm_substream *substream) in snd_pcm_playback_ready() argument
794 struct snd_pcm_runtime *runtime = substream->runtime; in snd_pcm_playback_ready()
806 static inline int snd_pcm_capture_ready(struct snd_pcm_substream *substream) in snd_pcm_capture_ready() argument
808 struct snd_pcm_runtime *runtime = substream->runtime; in snd_pcm_capture_ready()
821 static inline int snd_pcm_playback_data(struct snd_pcm_substream *substream) in snd_pcm_playback_data() argument
823 struct snd_pcm_runtime *runtime = substream->runtime; in snd_pcm_playback_data()
838 static inline int snd_pcm_playback_empty(struct snd_pcm_substream *substream) in snd_pcm_playback_empty() argument
840 struct snd_pcm_runtime *runtime = substream->runtime; in snd_pcm_playback_empty()
852 static inline int snd_pcm_capture_empty(struct snd_pcm_substream *substream) in snd_pcm_capture_empty() argument
854 struct snd_pcm_runtime *runtime = substream->runtime; in snd_pcm_capture_empty()
872 static inline void snd_pcm_trigger_done(struct snd_pcm_substream *substream, in snd_pcm_trigger_done() argument
875 substream->runtime->trigger_master = master; in snd_pcm_trigger_done()
980 int snd_pcm_hw_refine(struct snd_pcm_substream *substream, struct snd_pcm_hw_params *params);
1066 void snd_pcm_set_sync(struct snd_pcm_substream *substream);
1067 int snd_pcm_lib_ioctl(struct snd_pcm_substream *substream,
1069 void snd_pcm_period_elapsed_under_stream_lock(struct snd_pcm_substream *substream);
1070 void snd_pcm_period_elapsed(struct snd_pcm_substream *substream);
1071 snd_pcm_sframes_t __snd_pcm_lib_xfer(struct snd_pcm_substream *substream,
1076 snd_pcm_lib_write(struct snd_pcm_substream *substream, in snd_pcm_lib_write() argument
1079 return __snd_pcm_lib_xfer(substream, (void __force *)buf, true, frames, false); in snd_pcm_lib_write()
1083 snd_pcm_lib_read(struct snd_pcm_substream *substream, in snd_pcm_lib_read() argument
1086 return __snd_pcm_lib_xfer(substream, (void __force *)buf, true, frames, false); in snd_pcm_lib_read()
1090 snd_pcm_lib_writev(struct snd_pcm_substream *substream, in snd_pcm_lib_writev() argument
1093 return __snd_pcm_lib_xfer(substream, (void *)bufs, false, frames, false); in snd_pcm_lib_writev()
1097 snd_pcm_lib_readv(struct snd_pcm_substream *substream, in snd_pcm_lib_readv() argument
1100 return __snd_pcm_lib_xfer(substream, (void *)bufs, false, frames, false); in snd_pcm_lib_readv()
1104 snd_pcm_kernel_write(struct snd_pcm_substream *substream, in snd_pcm_kernel_write() argument
1107 return __snd_pcm_lib_xfer(substream, (void *)buf, true, frames, true); in snd_pcm_kernel_write()
1111 snd_pcm_kernel_read(struct snd_pcm_substream *substream, in snd_pcm_kernel_read() argument
1114 return __snd_pcm_lib_xfer(substream, buf, true, frames, true); in snd_pcm_kernel_read()
1118 snd_pcm_kernel_writev(struct snd_pcm_substream *substream, in snd_pcm_kernel_writev() argument
1121 return __snd_pcm_lib_xfer(substream, bufs, false, frames, true); in snd_pcm_kernel_writev()
1125 snd_pcm_kernel_readv(struct snd_pcm_substream *substream, in snd_pcm_kernel_readv() argument
1128 return __snd_pcm_lib_xfer(substream, bufs, false, frames, true); in snd_pcm_kernel_readv()
1154 static inline void snd_pcm_set_runtime_buffer(struct snd_pcm_substream *substream, in snd_pcm_set_runtime_buffer() argument
1157 struct snd_pcm_runtime *runtime = substream->runtime; in snd_pcm_set_runtime_buffer()
1196 void snd_pcm_lib_preallocate_free(struct snd_pcm_substream *substream);
1198 void snd_pcm_lib_preallocate_pages(struct snd_pcm_substream *substream,
1204 int snd_pcm_lib_malloc_pages(struct snd_pcm_substream *substream, size_t size);
1205 int snd_pcm_lib_free_pages(struct snd_pcm_substream *substream);
1207 int snd_pcm_set_managed_buffer(struct snd_pcm_substream *substream, int type,
1226 snd_pcm_set_fixed_buffer(struct snd_pcm_substream *substream, int type, in snd_pcm_set_fixed_buffer() argument
1229 return snd_pcm_set_managed_buffer(substream, type, data, size, 0); in snd_pcm_set_fixed_buffer()
1250 int _snd_pcm_lib_alloc_vmalloc_buffer(struct snd_pcm_substream *substream,
1252 int snd_pcm_lib_free_vmalloc_buffer(struct snd_pcm_substream *substream);
1253 struct page *snd_pcm_lib_get_vmalloc_page(struct snd_pcm_substream *substream,
1268 (struct snd_pcm_substream *substream, size_t size) in snd_pcm_lib_alloc_vmalloc_buffer() argument
1270 return _snd_pcm_lib_alloc_vmalloc_buffer(substream, size, in snd_pcm_lib_alloc_vmalloc_buffer()
1286 (struct snd_pcm_substream *substream, size_t size) in snd_pcm_lib_alloc_vmalloc_32_buffer() argument
1288 return _snd_pcm_lib_alloc_vmalloc_buffer(substream, size, in snd_pcm_lib_alloc_vmalloc_32_buffer()
1292 #define snd_pcm_get_dma_buf(substream) ((substream)->runtime->dma_buffer_p) argument
1300 snd_pcm_sgbuf_get_addr(struct snd_pcm_substream *substream, unsigned int ofs) in snd_pcm_sgbuf_get_addr() argument
1302 return snd_sgbuf_get_addr(snd_pcm_get_dma_buf(substream), ofs); in snd_pcm_sgbuf_get_addr()
1313 snd_pcm_sgbuf_get_chunk_size(struct snd_pcm_substream *substream, in snd_pcm_sgbuf_get_chunk_size() argument
1316 return snd_sgbuf_get_chunk_size(snd_pcm_get_dma_buf(substream), ofs, size); in snd_pcm_sgbuf_get_chunk_size()
1327 struct snd_pcm_substream *substream = (struct snd_pcm_substream *)area->vm_private_data; in snd_pcm_mmap_data_open() local
1328 atomic_inc(&substream->mmap_count); in snd_pcm_mmap_data_open()
1339 struct snd_pcm_substream *substream = (struct snd_pcm_substream *)area->vm_private_data; in snd_pcm_mmap_data_close() local
1340 atomic_dec(&substream->mmap_count); in snd_pcm_mmap_data_close()
1343 int snd_pcm_lib_default_mmap(struct snd_pcm_substream *substream,
1348 int snd_pcm_lib_mmap_iomem(struct snd_pcm_substream *substream, struct vm_area_struct *area);
1381 static inline const char *snd_pcm_stream_str(struct snd_pcm_substream *substream) in snd_pcm_stream_str() argument
1383 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) in snd_pcm_stream_str()
1418 for (s = info->pcm->streams[info->stream].substream; s; s = s->next) in snd_pcm_chmap_substream()