Lines Matching refs:substream

21 #define snd_pcm_substream_chip(substream) ((substream)->private_data)  argument
56 int (*open)(struct snd_pcm_substream *substream);
57 int (*close)(struct snd_pcm_substream *substream);
58 int (*ioctl)(struct snd_pcm_substream * substream,
60 int (*hw_params)(struct snd_pcm_substream *substream,
62 int (*hw_free)(struct snd_pcm_substream *substream);
63 int (*prepare)(struct snd_pcm_substream *substream);
64 int (*trigger)(struct snd_pcm_substream *substream, int cmd);
65 int (*sync_stop)(struct snd_pcm_substream *substream);
66 snd_pcm_uframes_t (*pointer)(struct snd_pcm_substream *substream);
67 int (*get_time_info)(struct snd_pcm_substream *substream,
71 int (*fill_silence)(struct snd_pcm_substream *substream, int channel,
73 int (*copy)(struct snd_pcm_substream *substream, int channel,
75 struct page *(*page)(struct snd_pcm_substream *substream,
77 int (*mmap)(struct snd_pcm_substream *substream, struct vm_area_struct *vma);
78 int (*ack)(struct snd_pcm_substream *substream);
238 struct snd_pcm_substream *substream; member
510 #define SUBSTREAM_BUSY(substream) ((substream)->ref_count > 0) argument
519 struct snd_pcm_substream *substream; member
584 int snd_pcm_info(struct snd_pcm_substream *substream, struct snd_pcm_info *info);
585 int snd_pcm_info_user(struct snd_pcm_substream *substream,
587 int snd_pcm_status64(struct snd_pcm_substream *substream,
589 int snd_pcm_start(struct snd_pcm_substream *substream);
590 int snd_pcm_stop(struct snd_pcm_substream *substream, snd_pcm_state_t status);
591 int snd_pcm_drain_done(struct snd_pcm_substream *substream);
592 int snd_pcm_stop_xrun(struct snd_pcm_substream *substream);
601 int snd_pcm_kernel_ioctl(struct snd_pcm_substream *substream, unsigned int cmd, void *arg);
604 void snd_pcm_release_substream(struct snd_pcm_substream *substream);
607 void snd_pcm_detach_substream(struct snd_pcm_substream *substream);
608 int snd_pcm_mmap_data(struct snd_pcm_substream *substream, struct file *file, struct vm_area_struct…
612 void snd_pcm_debug_name(struct snd_pcm_substream *substream,
616 snd_pcm_debug_name(struct snd_pcm_substream *substream, char *buf, size_t size) in snd_pcm_debug_name() argument
632 static inline int snd_pcm_stream_linked(struct snd_pcm_substream *substream) in snd_pcm_stream_linked() argument
634 return substream->group != &substream->self_group; in snd_pcm_stream_linked()
637 void snd_pcm_stream_lock(struct snd_pcm_substream *substream);
638 void snd_pcm_stream_unlock(struct snd_pcm_substream *substream);
639 void snd_pcm_stream_lock_irq(struct snd_pcm_substream *substream);
640 void snd_pcm_stream_unlock_irq(struct snd_pcm_substream *substream);
641 unsigned long _snd_pcm_stream_lock_irqsave(struct snd_pcm_substream *substream);
642 unsigned long _snd_pcm_stream_lock_irqsave_nested(struct snd_pcm_substream *substream);
653 #define snd_pcm_stream_lock_irqsave(substream, flags) \ argument
656 flags = _snd_pcm_stream_lock_irqsave(substream); \
658 void snd_pcm_stream_unlock_irqrestore(struct snd_pcm_substream *substream,
669 #define snd_pcm_stream_lock_irqsave_nested(substream, flags) \ argument
672 flags = _snd_pcm_stream_lock_irqsave_nested(substream); \
696 #define snd_pcm_group_for_each_entry(s, substream) \ argument
697 list_for_each_entry(s, &substream->group->substreams, link_list)
711 static inline int snd_pcm_running(struct snd_pcm_substream *substream) in snd_pcm_running() argument
713 return (substream->runtime->state == SNDRV_PCM_STATE_RUNNING || in snd_pcm_running()
714 (substream->runtime->state == SNDRV_PCM_STATE_DRAINING && in snd_pcm_running()
715 substream->stream == SNDRV_PCM_STREAM_PLAYBACK)); in snd_pcm_running()
798 static inline size_t snd_pcm_lib_buffer_bytes(struct snd_pcm_substream *substream) in snd_pcm_lib_buffer_bytes() argument
800 struct snd_pcm_runtime *runtime = substream->runtime; in snd_pcm_lib_buffer_bytes()
810 static inline size_t snd_pcm_lib_period_bytes(struct snd_pcm_substream *substream) in snd_pcm_lib_period_bytes() argument
812 struct snd_pcm_runtime *runtime = substream->runtime; in snd_pcm_lib_period_bytes()
880 static inline int snd_pcm_playback_ready(struct snd_pcm_substream *substream) in snd_pcm_playback_ready() argument
882 struct snd_pcm_runtime *runtime = substream->runtime; in snd_pcm_playback_ready()
894 static inline int snd_pcm_capture_ready(struct snd_pcm_substream *substream) in snd_pcm_capture_ready() argument
896 struct snd_pcm_runtime *runtime = substream->runtime; in snd_pcm_capture_ready()
909 static inline int snd_pcm_playback_data(struct snd_pcm_substream *substream) in snd_pcm_playback_data() argument
911 struct snd_pcm_runtime *runtime = substream->runtime; in snd_pcm_playback_data()
926 static inline int snd_pcm_playback_empty(struct snd_pcm_substream *substream) in snd_pcm_playback_empty() argument
928 struct snd_pcm_runtime *runtime = substream->runtime; in snd_pcm_playback_empty()
940 static inline int snd_pcm_capture_empty(struct snd_pcm_substream *substream) in snd_pcm_capture_empty() argument
942 struct snd_pcm_runtime *runtime = substream->runtime; in snd_pcm_capture_empty()
960 static inline void snd_pcm_trigger_done(struct snd_pcm_substream *substream, in snd_pcm_trigger_done() argument
963 substream->runtime->trigger_master = master; in snd_pcm_trigger_done()
1080 int snd_pcm_hw_refine(struct snd_pcm_substream *substream, struct snd_pcm_hw_params *params);
1166 void snd_pcm_set_sync_per_card(struct snd_pcm_substream *substream, struct snd_pcm_hw_params *param…
1174 static inline void snd_pcm_set_sync(struct snd_pcm_substream *substream) in snd_pcm_set_sync() argument
1176 substream->runtime->std_sync_id = true; in snd_pcm_set_sync()
1178 int snd_pcm_lib_ioctl(struct snd_pcm_substream *substream,
1180 void snd_pcm_period_elapsed_under_stream_lock(struct snd_pcm_substream *substream);
1181 void snd_pcm_period_elapsed(struct snd_pcm_substream *substream);
1182 snd_pcm_sframes_t __snd_pcm_lib_xfer(struct snd_pcm_substream *substream,
1187 snd_pcm_lib_write(struct snd_pcm_substream *substream, in snd_pcm_lib_write() argument
1190 return __snd_pcm_lib_xfer(substream, (void __force *)buf, true, frames, false); in snd_pcm_lib_write()
1194 snd_pcm_lib_read(struct snd_pcm_substream *substream, in snd_pcm_lib_read() argument
1197 return __snd_pcm_lib_xfer(substream, (void __force *)buf, true, frames, false); in snd_pcm_lib_read()
1201 snd_pcm_lib_writev(struct snd_pcm_substream *substream, in snd_pcm_lib_writev() argument
1204 return __snd_pcm_lib_xfer(substream, (void *)bufs, false, frames, false); in snd_pcm_lib_writev()
1208 snd_pcm_lib_readv(struct snd_pcm_substream *substream, in snd_pcm_lib_readv() argument
1211 return __snd_pcm_lib_xfer(substream, (void *)bufs, false, frames, false); in snd_pcm_lib_readv()
1215 snd_pcm_kernel_write(struct snd_pcm_substream *substream, in snd_pcm_kernel_write() argument
1218 return __snd_pcm_lib_xfer(substream, (void *)buf, true, frames, true); in snd_pcm_kernel_write()
1222 snd_pcm_kernel_read(struct snd_pcm_substream *substream, in snd_pcm_kernel_read() argument
1225 return __snd_pcm_lib_xfer(substream, buf, true, frames, true); in snd_pcm_kernel_read()
1229 snd_pcm_kernel_writev(struct snd_pcm_substream *substream, in snd_pcm_kernel_writev() argument
1232 return __snd_pcm_lib_xfer(substream, bufs, false, frames, true); in snd_pcm_kernel_writev()
1236 snd_pcm_kernel_readv(struct snd_pcm_substream *substream, in snd_pcm_kernel_readv() argument
1239 return __snd_pcm_lib_xfer(substream, bufs, false, frames, true); in snd_pcm_kernel_readv()
1263 static inline void snd_pcm_set_runtime_buffer(struct snd_pcm_substream *substream, in snd_pcm_set_runtime_buffer() argument
1266 struct snd_pcm_runtime *runtime = substream->runtime; in snd_pcm_set_runtime_buffer()
1305 void snd_pcm_lib_preallocate_free(struct snd_pcm_substream *substream);
1307 void snd_pcm_lib_preallocate_pages(struct snd_pcm_substream *substream,
1313 int snd_pcm_lib_malloc_pages(struct snd_pcm_substream *substream, size_t size);
1314 int snd_pcm_lib_free_pages(struct snd_pcm_substream *substream);
1316 int snd_pcm_set_managed_buffer(struct snd_pcm_substream *substream, int type,
1337 snd_pcm_set_fixed_buffer(struct snd_pcm_substream *substream, int type, in snd_pcm_set_fixed_buffer() argument
1340 return snd_pcm_set_managed_buffer(substream, type, data, size, 0); in snd_pcm_set_fixed_buffer()
1363 #define snd_pcm_get_dma_buf(substream) ((substream)->runtime->dma_buffer_p) argument
1373 snd_pcm_sgbuf_get_addr(struct snd_pcm_substream *substream, unsigned int ofs) in snd_pcm_sgbuf_get_addr() argument
1375 return snd_sgbuf_get_addr(snd_pcm_get_dma_buf(substream), ofs); in snd_pcm_sgbuf_get_addr()
1388 snd_pcm_sgbuf_get_chunk_size(struct snd_pcm_substream *substream, in snd_pcm_sgbuf_get_chunk_size() argument
1391 return snd_sgbuf_get_chunk_size(snd_pcm_get_dma_buf(substream), ofs, size); in snd_pcm_sgbuf_get_chunk_size()
1394 int snd_pcm_lib_default_mmap(struct snd_pcm_substream *substream,
1399 int snd_pcm_lib_mmap_iomem(struct snd_pcm_substream *substream, struct vm_area_struct *area);
1448 static inline const char *snd_pcm_stream_str(struct snd_pcm_substream *substream) in snd_pcm_stream_str() argument
1450 return snd_pcm_direction_name(substream->stream); in snd_pcm_stream_str()
1484 for (s = info->pcm->streams[info->stream].substream; s; s = s->next) in snd_pcm_chmap_substream()