Home
last modified time | relevance | path

Searched refs:substream (Results 1 - 25 of 1752) sorted by relevance

12345678910>>...71

/kernel/linux/linux-5.10/sound/core/
H A Dpcm_native.c36 #define trace_hw_mask_param(substream, type, index, prev, curr)
37 #define trace_hw_interval_param(substream, type, index, prev, curr)
64 static int snd_pcm_hw_refine_old_user(struct snd_pcm_substream *substream,
66 static int snd_pcm_hw_params_old_user(struct snd_pcm_substream *substream,
102 * @substream: PCM substream
105 * flag of the given substream. This also takes the global link rw lock
108 void snd_pcm_stream_lock(struct snd_pcm_substream *substream) in snd_pcm_stream_lock() argument
110 snd_pcm_group_lock(&substream->self_group, substream in snd_pcm_stream_lock()
120 snd_pcm_stream_unlock(struct snd_pcm_substream *substream) snd_pcm_stream_unlock() argument
134 snd_pcm_stream_lock_irq(struct snd_pcm_substream *substream) snd_pcm_stream_lock_irq() argument
141 snd_pcm_stream_lock_nested(struct snd_pcm_substream *substream) snd_pcm_stream_lock_nested() argument
157 snd_pcm_stream_unlock_irq(struct snd_pcm_substream *substream) snd_pcm_stream_unlock_irq() argument
164 _snd_pcm_stream_lock_irqsave(struct snd_pcm_substream *substream) _snd_pcm_stream_lock_irqsave() argument
182 snd_pcm_stream_unlock_irqrestore(struct snd_pcm_substream *substream, unsigned long flags) snd_pcm_stream_unlock_irqrestore() argument
193 snd_pcm_ops_ioctl(struct snd_pcm_substream *substream, unsigned cmd, void *arg) snd_pcm_ops_ioctl() argument
202 snd_pcm_info(struct snd_pcm_substream *substream, struct snd_pcm_info *info) snd_pcm_info() argument
223 snd_pcm_info_user(struct snd_pcm_substream *substream, struct snd_pcm_info __user * _info) snd_pcm_info_user() argument
244 hw_support_mmap(struct snd_pcm_substream *substream) hw_support_mmap() argument
266 constrain_mask_params(struct snd_pcm_substream *substream, struct snd_pcm_hw_params *params) constrain_mask_params() argument
302 constrain_interval_params(struct snd_pcm_substream *substream, struct snd_pcm_hw_params *params) constrain_interval_params() argument
338 constrain_params_by_rules(struct snd_pcm_substream *substream, struct snd_pcm_hw_params *params) constrain_params_by_rules() argument
459 fixup_unreferenced_params(struct snd_pcm_substream *substream, struct snd_pcm_hw_params *params) fixup_unreferenced_params() argument
504 snd_pcm_hw_refine(struct snd_pcm_substream *substream, struct snd_pcm_hw_params *params) snd_pcm_hw_refine() argument
536 snd_pcm_hw_refine_user(struct snd_pcm_substream *substream, struct snd_pcm_hw_params __user * _params) snd_pcm_hw_refine_user() argument
576 snd_pcm_set_state(struct snd_pcm_substream *substream, snd_pcm_state_t state) snd_pcm_set_state() argument
585 snd_pcm_timer_notify(struct snd_pcm_substream *substream, int event) snd_pcm_timer_notify() argument
595 snd_pcm_sync_stop(struct snd_pcm_substream *substream, bool sync_irq) snd_pcm_sync_stop() argument
694 snd_pcm_hw_params(struct snd_pcm_substream *substream, struct snd_pcm_hw_params *params) snd_pcm_hw_params() argument
828 snd_pcm_hw_params_user(struct snd_pcm_substream *substream, struct snd_pcm_hw_params __user * _params) snd_pcm_hw_params_user() argument
849 do_hw_free(struct snd_pcm_substream *substream) do_hw_free() argument
861 snd_pcm_hw_free(struct snd_pcm_substream *substream) snd_pcm_hw_free() argument
894 snd_pcm_sw_params(struct snd_pcm_substream *substream, struct snd_pcm_sw_params *params) snd_pcm_sw_params() argument
949 snd_pcm_sw_params_user(struct snd_pcm_substream *substream, struct snd_pcm_sw_params __user * _params) snd_pcm_sw_params_user() argument
963 snd_pcm_calc_delay(struct snd_pcm_substream *substream) snd_pcm_calc_delay() argument
974 snd_pcm_status64(struct snd_pcm_substream *substream, struct snd_pcm_status64 *status) snd_pcm_status64() argument
1050 snd_pcm_status_user64(struct snd_pcm_substream *substream, struct snd_pcm_status64 __user * _status, bool ext) snd_pcm_status_user64() argument
1074 snd_pcm_status_user32(struct snd_pcm_substream *substream, struct snd_pcm_status32 __user * _status, bool ext) snd_pcm_status_user32() argument
1123 snd_pcm_channel_info(struct snd_pcm_substream *substream, struct snd_pcm_channel_info * info) snd_pcm_channel_info() argument
1144 snd_pcm_channel_info_user(struct snd_pcm_substream *substream, struct snd_pcm_channel_info __user * _info) snd_pcm_channel_info_user() argument
1160 snd_pcm_trigger_tstamp(struct snd_pcm_substream *substream) snd_pcm_trigger_tstamp() argument
1193 snd_pcm_action_group(const struct action_ops *ops, struct snd_pcm_substream *substream, snd_pcm_state_t state, bool stream_lock) snd_pcm_action_group() argument
1253 snd_pcm_action_single(const struct action_ops *ops, struct snd_pcm_substream *substream, snd_pcm_state_t state) snd_pcm_action_single() argument
1270 snd_pcm_group_assign(struct snd_pcm_substream *substream, struct snd_pcm_group *new_group) snd_pcm_group_assign() argument
1281 snd_pcm_group_unref(struct snd_pcm_group *group, struct snd_pcm_substream *substream) snd_pcm_group_unref() argument
1299 snd_pcm_stream_group_ref(struct snd_pcm_substream *substream) snd_pcm_stream_group_ref() argument
1334 snd_pcm_action(const struct action_ops *ops, struct snd_pcm_substream *substream, snd_pcm_state_t state) snd_pcm_action() argument
1353 snd_pcm_action_lock_irq(const struct action_ops *ops, struct snd_pcm_substream *substream, snd_pcm_state_t state) snd_pcm_action_lock_irq() argument
1367 snd_pcm_action_nonatomic(const struct action_ops *ops, struct snd_pcm_substream *substream, snd_pcm_state_t state) snd_pcm_action_nonatomic() argument
1391 snd_pcm_pre_start(struct snd_pcm_substream *substream, snd_pcm_state_t state) snd_pcm_pre_start() argument
1405 snd_pcm_do_start(struct snd_pcm_substream *substream, snd_pcm_state_t state) snd_pcm_do_start() argument
1413 snd_pcm_undo_start(struct snd_pcm_substream *substream, snd_pcm_state_t state) snd_pcm_undo_start() argument
1422 snd_pcm_post_start(struct snd_pcm_substream *substream, snd_pcm_state_t state) snd_pcm_post_start() argument
1451 snd_pcm_start(struct snd_pcm_substream *substream) snd_pcm_start() argument
1458 snd_pcm_start_lock_irq(struct snd_pcm_substream *substream) snd_pcm_start_lock_irq() argument
1467 snd_pcm_pre_stop(struct snd_pcm_substream *substream, snd_pcm_state_t state) snd_pcm_pre_stop() argument
1477 snd_pcm_do_stop(struct snd_pcm_substream *substream, snd_pcm_state_t state) snd_pcm_do_stop() argument
1488 snd_pcm_post_stop(struct snd_pcm_substream *substream, snd_pcm_state_t state) snd_pcm_post_stop() argument
1516 snd_pcm_stop(struct snd_pcm_substream *substream, snd_pcm_state_t state) snd_pcm_stop() argument
1531 snd_pcm_drain_done(struct snd_pcm_substream *substream) snd_pcm_drain_done() argument
1546 snd_pcm_stop_xrun(struct snd_pcm_substream *substream) snd_pcm_stop_xrun() argument
1563 snd_pcm_pre_pause(struct snd_pcm_substream *substream, snd_pcm_state_t state) snd_pcm_pre_pause() argument
1578 snd_pcm_do_pause(struct snd_pcm_substream *substream, snd_pcm_state_t state) snd_pcm_do_pause() argument
1598 snd_pcm_undo_pause(struct snd_pcm_substream *substream, snd_pcm_state_t state) snd_pcm_undo_pause() argument
1608 snd_pcm_post_pause(struct snd_pcm_substream *substream, snd_pcm_state_t state) snd_pcm_post_pause() argument
1634 snd_pcm_pause(struct snd_pcm_substream *substream, bool push) snd_pcm_pause() argument
1640 snd_pcm_pause_lock_irq(struct snd_pcm_substream *substream, bool push) snd_pcm_pause_lock_irq() argument
1650 snd_pcm_pre_suspend(struct snd_pcm_substream *substream, snd_pcm_state_t state) snd_pcm_pre_suspend() argument
1667 snd_pcm_do_suspend(struct snd_pcm_substream *substream, snd_pcm_state_t state) snd_pcm_do_suspend() argument
1680 snd_pcm_post_suspend(struct snd_pcm_substream *substream, snd_pcm_state_t state) snd_pcm_post_suspend() argument
1706 snd_pcm_suspend(struct snd_pcm_substream *substream) snd_pcm_suspend() argument
1728 struct snd_pcm_substream *substream; snd_pcm_suspend_all() local
1765 snd_pcm_pre_resume(struct snd_pcm_substream *substream, snd_pcm_state_t state) snd_pcm_pre_resume() argument
1775 snd_pcm_do_resume(struct snd_pcm_substream *substream, snd_pcm_state_t state) snd_pcm_do_resume() argument
1789 snd_pcm_undo_resume(struct snd_pcm_substream *substream, snd_pcm_state_t state) snd_pcm_undo_resume() argument
1797 snd_pcm_post_resume(struct snd_pcm_substream *substream, snd_pcm_state_t state) snd_pcm_post_resume() argument
1813 snd_pcm_resume(struct snd_pcm_substream *substream) snd_pcm_resume() argument
1821 snd_pcm_resume(struct snd_pcm_substream *substream) snd_pcm_resume() argument
1833 snd_pcm_xrun(struct snd_pcm_substream *substream) snd_pcm_xrun() argument
1858 snd_pcm_pre_reset(struct snd_pcm_substream *substream, snd_pcm_state_t state) snd_pcm_pre_reset() argument
1873 snd_pcm_do_reset(struct snd_pcm_substream *substream, snd_pcm_state_t state) snd_pcm_do_reset() argument
1890 snd_pcm_post_reset(struct snd_pcm_substream *substream, snd_pcm_state_t state) snd_pcm_post_reset() argument
1908 snd_pcm_reset(struct snd_pcm_substream *substream) snd_pcm_reset() argument
1918 snd_pcm_pre_prepare(struct snd_pcm_substream *substream, snd_pcm_state_t state) snd_pcm_pre_prepare() argument
1933 snd_pcm_do_prepare(struct snd_pcm_substream *substream, snd_pcm_state_t state) snd_pcm_do_prepare() argument
1944 snd_pcm_post_prepare(struct snd_pcm_substream *substream, snd_pcm_state_t state) snd_pcm_post_prepare() argument
1965 snd_pcm_prepare(struct snd_pcm_substream *substream, struct file *file) snd_pcm_prepare() argument
1996 snd_pcm_pre_drain_init(struct snd_pcm_substream *substream, snd_pcm_state_t state) snd_pcm_pre_drain_init() argument
2010 snd_pcm_do_drain_init(struct snd_pcm_substream *substream, snd_pcm_state_t state) snd_pcm_do_drain_init() argument
2055 snd_pcm_post_drain_init(struct snd_pcm_substream *substream, snd_pcm_state_t state) snd_pcm_post_drain_init() argument
2073 snd_pcm_drain(struct snd_pcm_substream *substream, struct file *file) snd_pcm_drain() argument
2188 snd_pcm_drop(struct snd_pcm_substream *substream) snd_pcm_drop() argument
2235 snd_pcm_link(struct snd_pcm_substream *substream, int fd) snd_pcm_link() argument
2300 relink_to_local(struct snd_pcm_substream *substream) relink_to_local() argument
2307 snd_pcm_unlink(struct snd_pcm_substream *substream) snd_pcm_unlink() argument
2460 struct snd_pcm_substream *substream = rule->private; snd_pcm_hw_rule_buffer_bytes_max() local
2469 snd_pcm_hw_constraints_init(struct snd_pcm_substream *substream) snd_pcm_hw_constraints_init() argument
2593 snd_pcm_hw_constraints_complete(struct snd_pcm_substream *substream) snd_pcm_hw_constraints_complete() argument
2677 pcm_release_private(struct snd_pcm_substream *substream) pcm_release_private() argument
2683 snd_pcm_release_substream(struct snd_pcm_substream *substream) snd_pcm_release_substream() argument
2710 struct snd_pcm_substream *substream; snd_pcm_open_substream() local
2752 struct snd_pcm_substream *substream; snd_pcm_open_file() local
2860 struct snd_pcm_substream *substream; snd_pcm_release() local
2881 do_pcm_hwsync(struct snd_pcm_substream *substream) do_pcm_hwsync() argument
2903 forward_appl_ptr(struct snd_pcm_substream *substream, snd_pcm_uframes_t frames, snd_pcm_sframes_t avail) forward_appl_ptr() argument
2923 rewind_appl_ptr(struct snd_pcm_substream *substream, snd_pcm_uframes_t frames, snd_pcm_sframes_t avail) rewind_appl_ptr() argument
2947 snd_pcm_rewind(struct snd_pcm_substream *substream, snd_pcm_uframes_t frames) snd_pcm_rewind() argument
2964 snd_pcm_forward(struct snd_pcm_substream *substream, snd_pcm_uframes_t frames) snd_pcm_forward() argument
2981 snd_pcm_hwsync(struct snd_pcm_substream *substream) snd_pcm_hwsync() argument
2991 snd_pcm_delay(struct snd_pcm_substream *substream, snd_pcm_sframes_t *delay) snd_pcm_delay() argument
3007 snd_pcm_sync_ptr(struct snd_pcm_substream *substream, struct snd_pcm_sync_ptr __user *_sync_ptr) snd_pcm_sync_ptr() argument
3095 snd_pcm_ioctl_sync_ptr_compat(struct snd_pcm_substream *substream, struct snd_pcm_sync_ptr32 __user *src) snd_pcm_ioctl_sync_ptr_compat() argument
3160 snd_pcm_tstamp(struct snd_pcm_substream *substream, int __user *_arg) snd_pcm_tstamp() argument
3173 snd_pcm_xferi_frames_ioctl(struct snd_pcm_substream *substream, struct snd_xferi __user *_xferi) snd_pcm_xferi_frames_ioctl() argument
3195 snd_pcm_xfern_frames_ioctl(struct snd_pcm_substream *substream, struct snd_xfern __user *_xfern) snd_pcm_xfern_frames_ioctl() argument
3225 snd_pcm_rewind_ioctl(struct snd_pcm_substream *substream, snd_pcm_uframes_t __user *_frames) snd_pcm_rewind_ioctl() argument
3241 snd_pcm_forward_ioctl(struct snd_pcm_substream *substream, snd_pcm_uframes_t __user *_frames) snd_pcm_forward_ioctl() argument
3257 snd_pcm_common_ioctl(struct file *file, struct snd_pcm_substream *substream, unsigned int cmd, void __user *arg) snd_pcm_common_ioctl() argument
3387 snd_pcm_kernel_ioctl(struct snd_pcm_substream *substream, unsigned int cmd, void *arg) snd_pcm_kernel_ioctl() argument
3426 struct snd_pcm_substream *substream; snd_pcm_read() local
3450 struct snd_pcm_substream *substream; snd_pcm_write() local
3473 struct snd_pcm_substream *substream; snd_pcm_readv() local
3509 struct snd_pcm_substream *substream; snd_pcm_writev() local
3544 struct snd_pcm_substream *substream; snd_pcm_poll() local
3601 struct snd_pcm_substream *substream = vmf->vma->vm_private_data; snd_pcm_mmap_status_fault() local
3617 snd_pcm_mmap_status(struct snd_pcm_substream *substream, struct file *file, struct vm_area_struct *area) snd_pcm_mmap_status() argument
3637 struct snd_pcm_substream *substream = vmf->vma->vm_private_data; snd_pcm_mmap_control_fault() local
3653 snd_pcm_mmap_control(struct snd_pcm_substream *substream, struct file *file, struct vm_area_struct *area) snd_pcm_mmap_control() argument
3700 snd_pcm_mmap_status(struct snd_pcm_substream *substream, struct file *file, struct vm_area_struct *area) snd_pcm_mmap_status() argument
3705 snd_pcm_mmap_control(struct snd_pcm_substream *substream, struct file *file, struct vm_area_struct *area) snd_pcm_mmap_control() argument
3713 snd_pcm_default_page_ops(struct snd_pcm_substream *substream, unsigned long ofs) snd_pcm_default_page_ops() argument
3735 struct snd_pcm_substream *substream = vmf->vma->vm_private_data; snd_pcm_mmap_data_fault() local
3782 snd_pcm_lib_default_mmap(struct snd_pcm_substream *substream, struct vm_area_struct *area) snd_pcm_lib_default_mmap() argument
3821 snd_pcm_lib_mmap_iomem(struct snd_pcm_substream *substream, struct vm_area_struct *area) snd_pcm_lib_mmap_iomem() argument
3835 snd_pcm_mmap_data(struct snd_pcm_substream *substream, struct file *file, struct vm_area_struct *area) snd_pcm_mmap_data() argument
3882 struct snd_pcm_substream *substream; snd_pcm_mmap() local
3917 struct snd_pcm_substream *substream; snd_pcm_fasync() local
3983 snd_pcm_hw_refine_old_user(struct snd_pcm_substream *substream, struct snd_pcm_hw_params_old __user * _oparams) snd_pcm_hw_refine_old_user() argument
4018 snd_pcm_hw_params_old_user(struct snd_pcm_substream *substream, struct snd_pcm_hw_params_old __user * _oparams) snd_pcm_hw_params_old_user() argument
4059 struct snd_pcm_substream *substream = pcm_file->substream; snd_pcm_get_unmapped_area() local
[all...]
H A Dpcm_memory.c98 static int preallocate_pcm_pages(struct snd_pcm_substream *substream, size_t size) in preallocate_pcm_pages() argument
100 struct snd_dma_buffer *dmab = &substream->dma_buffer; in preallocate_pcm_pages()
101 struct snd_card *card = substream->pcm->card; in preallocate_pcm_pages()
114 substream->pcm->card->number, substream->pcm->device, in preallocate_pcm_pages()
115 substream->stream ? 'c' : 'p', substream->number, in preallocate_pcm_pages()
116 substream->pcm->name, orig_size); in preallocate_pcm_pages()
123 static void snd_pcm_lib_preallocate_dma_free(struct snd_pcm_substream *substream) in snd_pcm_lib_preallocate_dma_free() argument
125 do_free_pages(substream in snd_pcm_lib_preallocate_dma_free()
134 snd_pcm_lib_preallocate_free(struct snd_pcm_substream *substream) snd_pcm_lib_preallocate_free() argument
147 struct snd_pcm_substream *substream; snd_pcm_lib_preallocate_free_for_all() local
165 struct snd_pcm_substream *substream = entry->private_data; snd_pcm_lib_preallocate_proc_read() local
177 struct snd_pcm_substream *substream = entry->private_data; snd_pcm_lib_preallocate_max_proc_read() local
189 struct snd_pcm_substream *substream = entry->private_data; snd_pcm_lib_preallocate_proc_write() local
233 preallocate_info_init(struct snd_pcm_substream *substream) preallocate_info_init() argument
259 preallocate_pages(struct snd_pcm_substream *substream, int type, struct device *data, size_t size, size_t max, bool managed) preallocate_pages() argument
285 struct snd_pcm_substream *substream; preallocate_pages_for_all() local
305 snd_pcm_lib_preallocate_pages(struct snd_pcm_substream *substream, int type, struct device *data, size_t size, size_t max) snd_pcm_lib_preallocate_pages() argument
350 snd_pcm_set_managed_buffer(struct snd_pcm_substream *substream, int type, struct device *data, size_t size, size_t max) snd_pcm_set_managed_buffer() argument
387 snd_pcm_sgbuf_ops_page(struct snd_pcm_substream *substream, unsigned long offset) snd_pcm_sgbuf_ops_page() argument
409 snd_pcm_lib_malloc_pages(struct snd_pcm_substream *substream, size_t size) snd_pcm_lib_malloc_pages() argument
463 snd_pcm_lib_free_pages(struct snd_pcm_substream *substream) snd_pcm_lib_free_pages() argument
484 _snd_pcm_lib_alloc_vmalloc_buffer(struct snd_pcm_substream *substream, size_t size, gfp_t gfp_flags) _snd_pcm_lib_alloc_vmalloc_buffer() argument
512 snd_pcm_lib_free_vmalloc_buffer(struct snd_pcm_substream *substream) snd_pcm_lib_free_vmalloc_buffer() argument
535 snd_pcm_lib_get_vmalloc_page(struct snd_pcm_substream *substream, unsigned long offset) snd_pcm_lib_get_vmalloc_page() argument
[all...]
H A Dpcm_timer.c19 void snd_pcm_timer_resolution_change(struct snd_pcm_substream *substream) in snd_pcm_timer_resolution_change() argument
22 struct snd_pcm_runtime *runtime = substream->runtime; in snd_pcm_timer_resolution_change()
43 pcm_err(substream->pcm, in snd_pcm_timer_resolution_change()
54 struct snd_pcm_substream *substream; in snd_pcm_timer_resolution() local
56 substream = timer->private_data; in snd_pcm_timer_resolution()
57 return substream->runtime ? substream->runtime->timer_resolution : 0; in snd_pcm_timer_resolution()
62 struct snd_pcm_substream *substream; in snd_pcm_timer_start() local
64 substream = snd_timer_chip(timer); in snd_pcm_timer_start()
65 substream in snd_pcm_timer_start()
71 struct snd_pcm_substream *substream; snd_pcm_timer_stop() local
94 struct snd_pcm_substream *substream = timer->private_data; snd_pcm_timer_free() local
98 snd_pcm_timer_init(struct snd_pcm_substream *substream) snd_pcm_timer_init() argument
124 snd_pcm_timer_done(struct snd_pcm_substream *substream) snd_pcm_timer_done() argument
[all...]
H A Dpcm.c108 struct snd_pcm_substream *substream; in snd_pcm_control_ioctl() local
136 for (substream = pstr->substream; substream; in snd_pcm_control_ioctl()
137 substream = substream->next) in snd_pcm_control_ioctl()
138 if (substream->number == (int)subdevice) in snd_pcm_control_ioctl()
140 if (substream == NULL) { in snd_pcm_control_ioctl()
145 err = snd_pcm_info_user(substream, info); in snd_pcm_control_ioctl()
331 static void snd_pcm_proc_info_read(struct snd_pcm_substream *substream, in snd_pcm_proc_info_read() argument
380 struct snd_pcm_substream *substream = entry->private_data; snd_pcm_substream_proc_hw_params_read() local
417 struct snd_pcm_substream *substream = entry->private_data; snd_pcm_substream_proc_sw_params_read() local
445 struct snd_pcm_substream *substream = entry->private_data; snd_pcm_substream_proc_status_read() local
482 struct snd_pcm_substream *substream = entry->private_data; snd_pcm_xrun_injection_write() local
541 create_substream_info_entry(struct snd_pcm_substream *substream, const char *name, void (*read)(struct snd_info_entry *, struct snd_info_buffer *)) create_substream_info_entry() argument
555 snd_pcm_substream_proc_init(struct snd_pcm_substream *substream) snd_pcm_substream_proc_init() argument
594 snd_pcm_substream_proc_init(struct snd_pcm_substream *substream) snd_pcm_substream_proc_init() argument
641 struct snd_pcm_substream *substream, *prev; snd_pcm_new_stream() local
825 struct snd_pcm_substream *substream, *substream_next; snd_pcm_free_stream() local
889 struct snd_pcm_substream *substream; snd_pcm_attach_substream() local
986 snd_pcm_detach_substream(struct snd_pcm_substream *substream) snd_pcm_detach_substream() argument
1053 struct snd_pcm_substream *substream; snd_pcm_dev_register() local
1099 struct snd_pcm_substream *substream; snd_pcm_dev_disconnect() local
[all...]
H A Dpcm_trace.h12 TP_PROTO(struct snd_pcm_substream *substream, snd_pcm_uframes_t pos, bool irq),
13 TP_ARGS(substream, pos, irq),
28 __entry->card = (substream)->pcm->card->number;
29 __entry->device = (substream)->pcm->device;
30 __entry->number = (substream)->number;
31 __entry->stream = (substream)->stream;
33 __entry->period_size = (substream)->runtime->period_size;
34 __entry->buffer_size = (substream)->runtime->buffer_size;
35 __entry->old_hw_ptr = (substream)->runtime->status->hw_ptr;
36 __entry->hw_ptr_base = (substream)
[all...]
H A Dpcm_local.h26 int pcm_lib_apply_appl_ptr(struct snd_pcm_substream *substream,
28 int snd_pcm_update_state(struct snd_pcm_substream *substream,
30 int snd_pcm_update_hw_ptr(struct snd_pcm_substream *substream);
32 void snd_pcm_playback_silence(struct snd_pcm_substream *substream,
36 snd_pcm_avail(struct snd_pcm_substream *substream) in snd_pcm_avail() argument
38 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) in snd_pcm_avail()
39 return snd_pcm_playback_avail(substream->runtime); in snd_pcm_avail()
41 return snd_pcm_capture_avail(substream->runtime); in snd_pcm_avail()
45 snd_pcm_hw_avail(struct snd_pcm_substream *substream) in snd_pcm_hw_avail() argument
47 if (substream in snd_pcm_hw_avail()
59 snd_pcm_timer_resolution_change(struct snd_pcm_substream *substream) snd_pcm_timer_resolution_change() argument
60 snd_pcm_timer_init(struct snd_pcm_substream *substream) snd_pcm_timer_init() argument
61 snd_pcm_timer_done(struct snd_pcm_substream *substream) snd_pcm_timer_done() argument
[all...]
H A Dpcm_dmaengine.c30 const struct snd_pcm_substream *substream) in substream_to_prtd()
32 return substream->runtime->private_data; in substream_to_prtd()
35 struct dma_chan *snd_dmaengine_pcm_get_chan(struct snd_pcm_substream *substream) in snd_dmaengine_pcm_get_chan() argument
37 struct dmaengine_pcm_runtime_data *prtd = substream_to_prtd(substream); in snd_dmaengine_pcm_get_chan()
45 * @substream: PCM substream
49 * This function can be used to initialize a dma_slave_config from a substream
52 int snd_hwparams_to_dma_slave_config(const struct snd_pcm_substream *substream, in snd_hwparams_to_dma_slave_config() argument
73 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) { in snd_hwparams_to_dma_slave_config()
90 * @substream
29 substream_to_prtd( const struct snd_pcm_substream *substream) substream_to_prtd() argument
104 snd_dmaengine_pcm_set_config_from_dai_data( const struct snd_pcm_substream *substream, const struct snd_dmaengine_dai_dma_data *dma_data, struct dma_slave_config *slave_config) snd_dmaengine_pcm_set_config_from_dai_data() argument
134 struct snd_pcm_substream *substream = arg; dmaengine_pcm_dma_complete() local
145 dmaengine_pcm_prepare_and_submit(struct snd_pcm_substream *substream) dmaengine_pcm_prepare_and_submit() argument
184 snd_dmaengine_pcm_trigger(struct snd_pcm_substream *substream, int cmd) snd_dmaengine_pcm_trigger() argument
228 snd_dmaengine_pcm_pointer_no_residue(struct snd_pcm_substream *substream) snd_dmaengine_pcm_pointer_no_residue() argument
242 snd_dmaengine_pcm_pointer(struct snd_pcm_substream *substream) snd_dmaengine_pcm_pointer() argument
298 snd_dmaengine_pcm_open(struct snd_pcm_substream *substream, struct dma_chan *chan) snd_dmaengine_pcm_open() argument
337 snd_dmaengine_pcm_open_request_chan(struct snd_pcm_substream *substream, dma_filter_fn filter_fn, void *filter_data) snd_dmaengine_pcm_open_request_chan() argument
349 snd_dmaengine_pcm_close(struct snd_pcm_substream *substream) snd_dmaengine_pcm_close() argument
367 snd_dmaengine_pcm_close_release_chan(struct snd_pcm_substream *substream) snd_dmaengine_pcm_close_release_chan() argument
391 snd_dmaengine_pcm_refine_runtime_hwparams( struct snd_pcm_substream *substream, struct snd_dmaengine_dai_dma_data *dma_data, struct snd_pcm_hardware *hw, struct dma_chan *chan) snd_dmaengine_pcm_refine_runtime_hwparams() argument
[all...]
/kernel/linux/linux-6.6/sound/core/
H A Dpcm_native.c36 #define trace_hw_mask_param(substream, type, index, prev, curr)
37 #define trace_hw_interval_param(substream, type, index, prev, curr)
64 static int snd_pcm_hw_refine_old_user(struct snd_pcm_substream *substream,
66 static int snd_pcm_hw_params_old_user(struct snd_pcm_substream *substream,
102 * @substream: PCM substream
105 * flag of the given substream. This also takes the global link rw lock
108 void snd_pcm_stream_lock(struct snd_pcm_substream *substream) in snd_pcm_stream_lock() argument
110 snd_pcm_group_lock(&substream->self_group, substream in snd_pcm_stream_lock()
120 snd_pcm_stream_unlock(struct snd_pcm_substream *substream) snd_pcm_stream_unlock() argument
134 snd_pcm_stream_lock_irq(struct snd_pcm_substream *substream) snd_pcm_stream_lock_irq() argument
141 snd_pcm_stream_lock_nested(struct snd_pcm_substream *substream) snd_pcm_stream_lock_nested() argument
157 snd_pcm_stream_unlock_irq(struct snd_pcm_substream *substream) snd_pcm_stream_unlock_irq() argument
164 _snd_pcm_stream_lock_irqsave(struct snd_pcm_substream *substream) _snd_pcm_stream_lock_irqsave() argument
175 _snd_pcm_stream_lock_irqsave_nested(struct snd_pcm_substream *substream) _snd_pcm_stream_lock_irqsave_nested() argument
195 snd_pcm_stream_unlock_irqrestore(struct snd_pcm_substream *substream, unsigned long flags) snd_pcm_stream_unlock_irqrestore() argument
206 snd_pcm_ops_ioctl(struct snd_pcm_substream *substream, unsigned cmd, void *arg) snd_pcm_ops_ioctl() argument
215 snd_pcm_info(struct snd_pcm_substream *substream, struct snd_pcm_info *info) snd_pcm_info() argument
236 snd_pcm_info_user(struct snd_pcm_substream *substream, struct snd_pcm_info __user * _info) snd_pcm_info_user() argument
257 hw_support_mmap(struct snd_pcm_substream *substream) hw_support_mmap() argument
284 constrain_mask_params(struct snd_pcm_substream *substream, struct snd_pcm_hw_params *params) constrain_mask_params() argument
320 constrain_interval_params(struct snd_pcm_substream *substream, struct snd_pcm_hw_params *params) constrain_interval_params() argument
356 constrain_params_by_rules(struct snd_pcm_substream *substream, struct snd_pcm_hw_params *params) constrain_params_by_rules() argument
477 fixup_unreferenced_params(struct snd_pcm_substream *substream, struct snd_pcm_hw_params *params) fixup_unreferenced_params() argument
522 snd_pcm_hw_refine(struct snd_pcm_substream *substream, struct snd_pcm_hw_params *params) snd_pcm_hw_refine() argument
554 snd_pcm_hw_refine_user(struct snd_pcm_substream *substream, struct snd_pcm_hw_params __user * _params) snd_pcm_hw_refine_user() argument
594 snd_pcm_set_state(struct snd_pcm_substream *substream, snd_pcm_state_t state) snd_pcm_set_state() argument
603 snd_pcm_timer_notify(struct snd_pcm_substream *substream, int event) snd_pcm_timer_notify() argument
613 snd_pcm_sync_stop(struct snd_pcm_substream *substream, bool sync_irq) snd_pcm_sync_stop() argument
712 snd_pcm_hw_params(struct snd_pcm_substream *substream, struct snd_pcm_hw_params *params) snd_pcm_hw_params() argument
847 snd_pcm_hw_params_user(struct snd_pcm_substream *substream, struct snd_pcm_hw_params __user * _params) snd_pcm_hw_params_user() argument
868 do_hw_free(struct snd_pcm_substream *substream) do_hw_free() argument
880 snd_pcm_hw_free(struct snd_pcm_substream *substream) snd_pcm_hw_free() argument
913 snd_pcm_sw_params(struct snd_pcm_substream *substream, struct snd_pcm_sw_params *params) snd_pcm_sw_params() argument
968 snd_pcm_sw_params_user(struct snd_pcm_substream *substream, struct snd_pcm_sw_params __user * _params) snd_pcm_sw_params_user() argument
982 snd_pcm_calc_delay(struct snd_pcm_substream *substream) snd_pcm_calc_delay() argument
993 snd_pcm_status64(struct snd_pcm_substream *substream, struct snd_pcm_status64 *status) snd_pcm_status64() argument
1069 snd_pcm_status_user64(struct snd_pcm_substream *substream, struct snd_pcm_status64 __user * _status, bool ext) snd_pcm_status_user64() argument
1093 snd_pcm_status_user32(struct snd_pcm_substream *substream, struct snd_pcm_status32 __user * _status, bool ext) snd_pcm_status_user32() argument
1142 snd_pcm_channel_info(struct snd_pcm_substream *substream, struct snd_pcm_channel_info * info) snd_pcm_channel_info() argument
1163 snd_pcm_channel_info_user(struct snd_pcm_substream *substream, struct snd_pcm_channel_info __user * _info) snd_pcm_channel_info_user() argument
1179 snd_pcm_trigger_tstamp(struct snd_pcm_substream *substream) snd_pcm_trigger_tstamp() argument
1212 snd_pcm_action_group(const struct action_ops *ops, struct snd_pcm_substream *substream, snd_pcm_state_t state, bool stream_lock) snd_pcm_action_group() argument
1272 snd_pcm_action_single(const struct action_ops *ops, struct snd_pcm_substream *substream, snd_pcm_state_t state) snd_pcm_action_single() argument
1289 snd_pcm_group_assign(struct snd_pcm_substream *substream, struct snd_pcm_group *new_group) snd_pcm_group_assign() argument
1300 snd_pcm_group_unref(struct snd_pcm_group *group, struct snd_pcm_substream *substream) snd_pcm_group_unref() argument
1318 snd_pcm_stream_group_ref(struct snd_pcm_substream *substream) snd_pcm_stream_group_ref() argument
1353 snd_pcm_action(const struct action_ops *ops, struct snd_pcm_substream *substream, snd_pcm_state_t state) snd_pcm_action() argument
1372 snd_pcm_action_lock_irq(const struct action_ops *ops, struct snd_pcm_substream *substream, snd_pcm_state_t state) snd_pcm_action_lock_irq() argument
1386 snd_pcm_action_nonatomic(const struct action_ops *ops, struct snd_pcm_substream *substream, snd_pcm_state_t state) snd_pcm_action_nonatomic() argument
1410 snd_pcm_pre_start(struct snd_pcm_substream *substream, snd_pcm_state_t state) snd_pcm_pre_start() argument
1424 snd_pcm_do_start(struct snd_pcm_substream *substream, snd_pcm_state_t state) snd_pcm_do_start() argument
1438 snd_pcm_undo_start(struct snd_pcm_substream *substream, snd_pcm_state_t state) snd_pcm_undo_start() argument
1447 snd_pcm_post_start(struct snd_pcm_substream *substream, snd_pcm_state_t state) snd_pcm_post_start() argument
1476 snd_pcm_start(struct snd_pcm_substream *substream) snd_pcm_start() argument
1483 snd_pcm_start_lock_irq(struct snd_pcm_substream *substream) snd_pcm_start_lock_irq() argument
1492 snd_pcm_pre_stop(struct snd_pcm_substream *substream, snd_pcm_state_t state) snd_pcm_pre_stop() argument
1502 snd_pcm_do_stop(struct snd_pcm_substream *substream, snd_pcm_state_t state) snd_pcm_do_stop() argument
1513 snd_pcm_post_stop(struct snd_pcm_substream *substream, snd_pcm_state_t state) snd_pcm_post_stop() argument
1541 snd_pcm_stop(struct snd_pcm_substream *substream, snd_pcm_state_t state) snd_pcm_stop() argument
1556 snd_pcm_drain_done(struct snd_pcm_substream *substream) snd_pcm_drain_done() argument
1571 snd_pcm_stop_xrun(struct snd_pcm_substream *substream) snd_pcm_stop_xrun() argument
1588 snd_pcm_pre_pause(struct snd_pcm_substream *substream, snd_pcm_state_t state) snd_pcm_pre_pause() argument
1603 snd_pcm_do_pause(struct snd_pcm_substream *substream, snd_pcm_state_t state) snd_pcm_do_pause() argument
1619 snd_pcm_undo_pause(struct snd_pcm_substream *substream, snd_pcm_state_t state) snd_pcm_undo_pause() argument
1629 snd_pcm_post_pause(struct snd_pcm_substream *substream, snd_pcm_state_t state) snd_pcm_post_pause() argument
1655 snd_pcm_pause(struct snd_pcm_substream *substream, bool push) snd_pcm_pause() argument
1661 snd_pcm_pause_lock_irq(struct snd_pcm_substream *substream, bool push) snd_pcm_pause_lock_irq() argument
1671 snd_pcm_pre_suspend(struct snd_pcm_substream *substream, snd_pcm_state_t state) snd_pcm_pre_suspend() argument
1688 snd_pcm_do_suspend(struct snd_pcm_substream *substream, snd_pcm_state_t state) snd_pcm_do_suspend() argument
1701 snd_pcm_post_suspend(struct snd_pcm_substream *substream, snd_pcm_state_t state) snd_pcm_post_suspend() argument
1728 snd_pcm_suspend(struct snd_pcm_substream *substream) snd_pcm_suspend() argument
1750 struct snd_pcm_substream *substream; snd_pcm_suspend_all() local
1782 snd_pcm_pre_resume(struct snd_pcm_substream *substream, snd_pcm_state_t state) snd_pcm_pre_resume() argument
1792 snd_pcm_do_resume(struct snd_pcm_substream *substream, snd_pcm_state_t state) snd_pcm_do_resume() argument
1806 snd_pcm_undo_resume(struct snd_pcm_substream *substream, snd_pcm_state_t state) snd_pcm_undo_resume() argument
1814 snd_pcm_post_resume(struct snd_pcm_substream *substream, snd_pcm_state_t state) snd_pcm_post_resume() argument
1830 snd_pcm_resume(struct snd_pcm_substream *substream) snd_pcm_resume() argument
1838 snd_pcm_resume(struct snd_pcm_substream *substream) snd_pcm_resume() argument
1850 snd_pcm_xrun(struct snd_pcm_substream *substream) snd_pcm_xrun() argument
1875 snd_pcm_pre_reset(struct snd_pcm_substream *substream, snd_pcm_state_t state) snd_pcm_pre_reset() argument
1890 snd_pcm_do_reset(struct snd_pcm_substream *substream, snd_pcm_state_t state) snd_pcm_do_reset() argument
1907 snd_pcm_post_reset(struct snd_pcm_substream *substream, snd_pcm_state_t state) snd_pcm_post_reset() argument
1925 snd_pcm_reset(struct snd_pcm_substream *substream) snd_pcm_reset() argument
1935 snd_pcm_pre_prepare(struct snd_pcm_substream *substream, snd_pcm_state_t state) snd_pcm_pre_prepare() argument
1950 snd_pcm_do_prepare(struct snd_pcm_substream *substream, snd_pcm_state_t state) snd_pcm_do_prepare() argument
1961 snd_pcm_post_prepare(struct snd_pcm_substream *substream, snd_pcm_state_t state) snd_pcm_post_prepare() argument
1982 snd_pcm_prepare(struct snd_pcm_substream *substream, struct file *file) snd_pcm_prepare() argument
2013 snd_pcm_pre_drain_init(struct snd_pcm_substream *substream, snd_pcm_state_t state) snd_pcm_pre_drain_init() argument
2027 snd_pcm_do_drain_init(struct snd_pcm_substream *substream, snd_pcm_state_t state) snd_pcm_do_drain_init() argument
2072 snd_pcm_post_drain_init(struct snd_pcm_substream *substream, snd_pcm_state_t state) snd_pcm_post_drain_init() argument
2090 snd_pcm_drain(struct snd_pcm_substream *substream, struct file *file) snd_pcm_drain() argument
2205 snd_pcm_drop(struct snd_pcm_substream *substream) snd_pcm_drop() argument
2252 snd_pcm_link(struct snd_pcm_substream *substream, int fd) snd_pcm_link() argument
2317 relink_to_local(struct snd_pcm_substream *substream) relink_to_local() argument
2324 snd_pcm_unlink(struct snd_pcm_substream *substream) snd_pcm_unlink() argument
2477 struct snd_pcm_substream *substream = rule->private; snd_pcm_hw_rule_buffer_bytes_max() local
2486 snd_pcm_hw_constraints_init(struct snd_pcm_substream *substream) snd_pcm_hw_constraints_init() argument
2610 snd_pcm_hw_constraints_complete(struct snd_pcm_substream *substream) snd_pcm_hw_constraints_complete() argument
2694 pcm_release_private(struct snd_pcm_substream *substream) pcm_release_private() argument
2700 snd_pcm_release_substream(struct snd_pcm_substream *substream) snd_pcm_release_substream() argument
2727 struct snd_pcm_substream *substream; snd_pcm_open_substream() local
2777 struct snd_pcm_substream *substream; snd_pcm_open_file() local
2885 struct snd_pcm_substream *substream; snd_pcm_release() local
2910 do_pcm_hwsync(struct snd_pcm_substream *substream) do_pcm_hwsync() argument
2932 forward_appl_ptr(struct snd_pcm_substream *substream, snd_pcm_uframes_t frames, snd_pcm_sframes_t avail) forward_appl_ptr() argument
2952 rewind_appl_ptr(struct snd_pcm_substream *substream, snd_pcm_uframes_t frames, snd_pcm_sframes_t avail) rewind_appl_ptr() argument
2976 snd_pcm_rewind(struct snd_pcm_substream *substream, snd_pcm_uframes_t frames) snd_pcm_rewind() argument
2995 snd_pcm_forward(struct snd_pcm_substream *substream, snd_pcm_uframes_t frames) snd_pcm_forward() argument
3014 snd_pcm_delay(struct snd_pcm_substream *substream, snd_pcm_sframes_t *delay) snd_pcm_delay() argument
3029 snd_pcm_hwsync(struct snd_pcm_substream *substream) snd_pcm_hwsync() argument
3034 snd_pcm_sync_ptr(struct snd_pcm_substream *substream, struct snd_pcm_sync_ptr __user *_sync_ptr) snd_pcm_sync_ptr() argument
3124 snd_pcm_ioctl_sync_ptr_compat(struct snd_pcm_substream *substream, struct snd_pcm_sync_ptr32 __user *src) snd_pcm_ioctl_sync_ptr_compat() argument
3191 snd_pcm_tstamp(struct snd_pcm_substream *substream, int __user *_arg) snd_pcm_tstamp() argument
3204 snd_pcm_xferi_frames_ioctl(struct snd_pcm_substream *substream, struct snd_xferi __user *_xferi) snd_pcm_xferi_frames_ioctl() argument
3226 snd_pcm_xfern_frames_ioctl(struct snd_pcm_substream *substream, struct snd_xfern __user *_xfern) snd_pcm_xfern_frames_ioctl() argument
3256 snd_pcm_rewind_ioctl(struct snd_pcm_substream *substream, snd_pcm_uframes_t __user *_frames) snd_pcm_rewind_ioctl() argument
3272 snd_pcm_forward_ioctl(struct snd_pcm_substream *substream, snd_pcm_uframes_t __user *_frames) snd_pcm_forward_ioctl() argument
3288 snd_pcm_common_ioctl(struct file *file, struct snd_pcm_substream *substream, unsigned int cmd, void __user *arg) snd_pcm_common_ioctl() argument
3423 snd_pcm_kernel_ioctl(struct snd_pcm_substream *substream, unsigned int cmd, void *arg) snd_pcm_kernel_ioctl() argument
3465 struct snd_pcm_substream *substream; snd_pcm_read() local
3490 struct snd_pcm_substream *substream; snd_pcm_write() local
3514 struct snd_pcm_substream *substream; snd_pcm_readv() local
3554 struct snd_pcm_substream *substream; snd_pcm_writev() local
3593 struct snd_pcm_substream *substream; snd_pcm_poll() local
3653 struct snd_pcm_substream *substream = vmf->vma->vm_private_data; snd_pcm_mmap_status_fault() local
3669 snd_pcm_mmap_status(struct snd_pcm_substream *substream, struct file *file, struct vm_area_struct *area) snd_pcm_mmap_status() argument
3691 struct snd_pcm_substream *substream = vmf->vma->vm_private_data; snd_pcm_mmap_control_fault() local
3707 snd_pcm_mmap_control(struct snd_pcm_substream *substream, struct file *file, struct vm_area_struct *area) snd_pcm_mmap_control() argument
3763 snd_pcm_mmap_status(struct snd_pcm_substream *substream, struct file *file, struct vm_area_struct *area) snd_pcm_mmap_status() argument
3768 snd_pcm_mmap_control(struct snd_pcm_substream *substream, struct file *file, struct vm_area_struct *area) snd_pcm_mmap_control() argument
3780 struct snd_pcm_substream *substream = vmf->vma->vm_private_data; snd_pcm_mmap_data_fault() local
3831 snd_pcm_lib_default_mmap(struct snd_pcm_substream *substream, struct vm_area_struct *area) snd_pcm_lib_default_mmap() argument
3859 snd_pcm_lib_mmap_iomem(struct snd_pcm_substream *substream, struct vm_area_struct *area) snd_pcm_lib_mmap_iomem() argument
3873 snd_pcm_mmap_data(struct snd_pcm_substream *substream, struct file *file, struct vm_area_struct *area) snd_pcm_mmap_data() argument
3920 struct snd_pcm_substream *substream; snd_pcm_mmap() local
3957 struct snd_pcm_substream *substream; snd_pcm_fasync() local
4025 snd_pcm_hw_refine_old_user(struct snd_pcm_substream *substream, struct snd_pcm_hw_params_old __user * _oparams) snd_pcm_hw_refine_old_user() argument
4060 snd_pcm_hw_params_old_user(struct snd_pcm_substream *substream, struct snd_pcm_hw_params_old __user * _oparams) snd_pcm_hw_params_old_user() argument
4101 struct snd_pcm_substream *substream = pcm_file->substream; snd_pcm_get_unmapped_area() local
[all...]
H A Dpcm_memory.c103 static int preallocate_pcm_pages(struct snd_pcm_substream *substream, in preallocate_pcm_pages() argument
106 struct snd_dma_buffer *dmab = &substream->dma_buffer; in preallocate_pcm_pages()
107 struct snd_card *card = substream->pcm->card; in preallocate_pcm_pages()
113 substream->stream, size, dmab); in preallocate_pcm_pages()
122 substream->pcm->card->number, substream->pcm->device, in preallocate_pcm_pages()
123 substream->stream ? 'c' : 'p', substream->number, in preallocate_pcm_pages()
124 substream->pcm->name, orig_size); in preallocate_pcm_pages()
129 * snd_pcm_lib_preallocate_free - release the preallocated buffer of the specified substream
134 snd_pcm_lib_preallocate_free(struct snd_pcm_substream *substream) snd_pcm_lib_preallocate_free() argument
147 struct snd_pcm_substream *substream; snd_pcm_lib_preallocate_free_for_all() local
164 struct snd_pcm_substream *substream = entry->private_data; snd_pcm_lib_preallocate_proc_read() local
176 struct snd_pcm_substream *substream = entry->private_data; snd_pcm_lib_preallocate_max_proc_read() local
188 struct snd_pcm_substream *substream = entry->private_data; snd_pcm_lib_preallocate_proc_write() local
237 preallocate_info_init(struct snd_pcm_substream *substream) preallocate_info_init() argument
257 preallocate_info_init(struct snd_pcm_substream *substream) preallocate_info_init() argument
265 preallocate_pages(struct snd_pcm_substream *substream, int type, struct device *data, size_t size, size_t max, bool managed) preallocate_pages() argument
305 struct snd_pcm_substream *substream; preallocate_pages_for_all() local
326 snd_pcm_lib_preallocate_pages(struct snd_pcm_substream *substream, int type, struct device *data, size_t size, size_t max) snd_pcm_lib_preallocate_pages() argument
384 snd_pcm_set_managed_buffer(struct snd_pcm_substream *substream, int type, struct device *data, size_t size, size_t max) snd_pcm_set_managed_buffer() argument
424 snd_pcm_lib_malloc_pages(struct snd_pcm_substream *substream, size_t size) snd_pcm_lib_malloc_pages() argument
486 snd_pcm_lib_free_pages(struct snd_pcm_substream *substream) snd_pcm_lib_free_pages() argument
507 _snd_pcm_lib_alloc_vmalloc_buffer(struct snd_pcm_substream *substream, size_t size, gfp_t gfp_flags) _snd_pcm_lib_alloc_vmalloc_buffer() argument
535 snd_pcm_lib_free_vmalloc_buffer(struct snd_pcm_substream *substream) snd_pcm_lib_free_vmalloc_buffer() argument
558 snd_pcm_lib_get_vmalloc_page(struct snd_pcm_substream *substream, unsigned long offset) snd_pcm_lib_get_vmalloc_page() argument
[all...]
H A Drawmidi.c106 static bool snd_rawmidi_ready(struct snd_rawmidi_substream *substream) in snd_rawmidi_ready() argument
111 spin_lock_irqsave(&substream->lock, flags); in snd_rawmidi_ready()
112 ready = __snd_rawmidi_ready(substream->runtime); in snd_rawmidi_ready()
113 spin_unlock_irqrestore(&substream->lock, flags); in snd_rawmidi_ready()
117 static inline int snd_rawmidi_ready_append(struct snd_rawmidi_substream *substream, in snd_rawmidi_ready_append() argument
120 struct snd_rawmidi_runtime *runtime = substream->runtime; in snd_rawmidi_ready_append()
123 (!substream->append || runtime->avail >= count); in snd_rawmidi_ready_append()
132 runtime->event(runtime->substream); in snd_rawmidi_input_event_work()
135 /* buffer refcount management: call with substream->lock held */
146 static void snd_rawmidi_buffer_ref_sync(struct snd_rawmidi_substream *substream) in snd_rawmidi_buffer_ref_sync() argument
163 snd_rawmidi_runtime_create(struct snd_rawmidi_substream *substream) snd_rawmidi_runtime_create() argument
204 snd_rawmidi_runtime_free(struct snd_rawmidi_substream *substream) snd_rawmidi_runtime_free() argument
214 snd_rawmidi_output_trigger(struct snd_rawmidi_substream *substream, int up) snd_rawmidi_output_trigger() argument
221 snd_rawmidi_input_trigger(struct snd_rawmidi_substream *substream, int up) snd_rawmidi_input_trigger() argument
238 reset_runtime_ptrs(struct snd_rawmidi_substream *substream, bool is_input) reset_runtime_ptrs() argument
249 snd_rawmidi_drop_output(struct snd_rawmidi_substream *substream) snd_rawmidi_drop_output() argument
257 snd_rawmidi_drain_output(struct snd_rawmidi_substream *substream) snd_rawmidi_drain_output() argument
308 snd_rawmidi_drain_input(struct snd_rawmidi_substream *substream) snd_rawmidi_drain_input() argument
323 struct snd_rawmidi_substream *substream; assign_substream() local
351 open_substream(struct snd_rawmidi *rmidi, struct snd_rawmidi_substream *substream, int mode) open_substream() argument
548 close_substream(struct snd_rawmidi *rmidi, struct snd_rawmidi_substream *substream, int cleanup) close_substream() argument
634 snd_rawmidi_info(struct snd_rawmidi_substream *substream, struct snd_rawmidi_info *info) snd_rawmidi_info() argument
657 snd_rawmidi_info_user(struct snd_rawmidi_substream *substream, struct snd_rawmidi_info __user *_info) snd_rawmidi_info_user() argument
676 struct snd_rawmidi_substream *substream; __snd_rawmidi_info_select() local
727 resize_runtime_buffer(struct snd_rawmidi_substream *substream, struct snd_rawmidi_params *params, bool is_input) resize_runtime_buffer() argument
764 snd_rawmidi_output_params(struct snd_rawmidi_substream *substream, struct snd_rawmidi_params *params) snd_rawmidi_output_params() argument
783 snd_rawmidi_input_params(struct snd_rawmidi_substream *substream, struct snd_rawmidi_params *params) snd_rawmidi_input_params() argument
810 snd_rawmidi_output_status(struct snd_rawmidi_substream *substream, struct snd_rawmidi_status64 *status) snd_rawmidi_output_status() argument
823 snd_rawmidi_input_status(struct snd_rawmidi_substream *substream, struct snd_rawmidi_status64 *status) snd_rawmidi_input_status() argument
1101 receive_with_tstamp_framing(struct snd_rawmidi_substream *substream, const unsigned char *buffer, int src_count, const struct timespec64 *tstamp) receive_with_tstamp_framing() argument
1140 get_framing_tstamp(struct snd_rawmidi_substream *substream) get_framing_tstamp() argument
1168 snd_rawmidi_receive(struct snd_rawmidi_substream *substream, const unsigned char *buffer, int count) snd_rawmidi_receive() argument
1248 snd_rawmidi_kernel_read1(struct snd_rawmidi_substream *substream, unsigned char __user *userbuf, unsigned char *kernelbuf, long count) snd_rawmidi_kernel_read1() argument
1293 snd_rawmidi_kernel_read(struct snd_rawmidi_substream *substream, unsigned char *buf, long count) snd_rawmidi_kernel_read() argument
1307 struct snd_rawmidi_substream *substream; snd_rawmidi_read() local
1362 snd_rawmidi_transmit_empty(struct snd_rawmidi_substream *substream) snd_rawmidi_transmit_empty() argument
1390 __snd_rawmidi_transmit_peek(struct snd_rawmidi_substream *substream, unsigned char *buffer, int count) __snd_rawmidi_transmit_peek() argument
1449 snd_rawmidi_transmit_peek(struct snd_rawmidi_substream *substream, unsigned char *buffer, int count) snd_rawmidi_transmit_peek() argument
1472 __snd_rawmidi_transmit_ack(struct snd_rawmidi_substream *substream, int count) __snd_rawmidi_transmit_ack() argument
1506 snd_rawmidi_transmit_ack(struct snd_rawmidi_substream *substream, int count) snd_rawmidi_transmit_ack() argument
1531 snd_rawmidi_transmit(struct snd_rawmidi_substream *substream, unsigned char *buffer, int count) snd_rawmidi_transmit() argument
1558 snd_rawmidi_proceed(struct snd_rawmidi_substream *substream) snd_rawmidi_proceed() argument
1576 snd_rawmidi_kernel_write1(struct snd_rawmidi_substream *substream, const unsigned char __user *userbuf, const unsigned char *kernelbuf, long count) snd_rawmidi_kernel_write1() argument
1638 snd_rawmidi_kernel_write(struct snd_rawmidi_substream *substream, const unsigned char *buf, long count) snd_rawmidi_kernel_write() argument
1652 struct snd_rawmidi_substream *substream; snd_rawmidi_write() local
1762 struct snd_rawmidi_substream *substream; snd_rawmidi_proc_info_read() local
1862 struct snd_rawmidi_substream *substream; snd_rawmidi_alloc_substreams() local
1971 struct snd_rawmidi_substream *substream; snd_rawmidi_free_substreams() local
2159 struct snd_rawmidi_substream *substream; snd_rawmidi_set_ops() local
[all...]
H A Dpcm_local.h26 int pcm_lib_apply_appl_ptr(struct snd_pcm_substream *substream,
28 int snd_pcm_update_state(struct snd_pcm_substream *substream,
30 int snd_pcm_update_hw_ptr(struct snd_pcm_substream *substream);
32 void snd_pcm_playback_silence(struct snd_pcm_substream *substream,
36 snd_pcm_avail(struct snd_pcm_substream *substream) in snd_pcm_avail() argument
38 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) in snd_pcm_avail()
39 return snd_pcm_playback_avail(substream->runtime); in snd_pcm_avail()
41 return snd_pcm_capture_avail(substream->runtime); in snd_pcm_avail()
45 snd_pcm_hw_avail(struct snd_pcm_substream *substream) in snd_pcm_hw_avail() argument
47 if (substream in snd_pcm_hw_avail()
59 snd_pcm_timer_resolution_change(struct snd_pcm_substream *substream) snd_pcm_timer_resolution_change() argument
60 snd_pcm_timer_init(struct snd_pcm_substream *substream) snd_pcm_timer_init() argument
61 snd_pcm_timer_done(struct snd_pcm_substream *substream) snd_pcm_timer_done() argument
76 snd_pcm_dma_buffer_sync(struct snd_pcm_substream *substream, enum snd_dma_sync_mode mode) snd_pcm_dma_buffer_sync() argument
[all...]
H A Dpcm_timer.c19 void snd_pcm_timer_resolution_change(struct snd_pcm_substream *substream) in snd_pcm_timer_resolution_change() argument
22 struct snd_pcm_runtime *runtime = substream->runtime; in snd_pcm_timer_resolution_change()
43 pcm_err(substream->pcm, in snd_pcm_timer_resolution_change()
54 struct snd_pcm_substream *substream; in snd_pcm_timer_resolution() local
56 substream = timer->private_data; in snd_pcm_timer_resolution()
57 return substream->runtime ? substream->runtime->timer_resolution : 0; in snd_pcm_timer_resolution()
62 struct snd_pcm_substream *substream; in snd_pcm_timer_start() local
64 substream = snd_timer_chip(timer); in snd_pcm_timer_start()
65 substream in snd_pcm_timer_start()
71 struct snd_pcm_substream *substream; snd_pcm_timer_stop() local
94 struct snd_pcm_substream *substream = timer->private_data; snd_pcm_timer_free() local
98 snd_pcm_timer_init(struct snd_pcm_substream *substream) snd_pcm_timer_init() argument
124 snd_pcm_timer_done(struct snd_pcm_substream *substream) snd_pcm_timer_done() argument
[all...]
H A Dpcm_trace.h12 TP_PROTO(struct snd_pcm_substream *substream, snd_pcm_uframes_t pos, bool irq),
13 TP_ARGS(substream, pos, irq),
28 __entry->card = (substream)->pcm->card->number;
29 __entry->device = (substream)->pcm->device;
30 __entry->number = (substream)->number;
31 __entry->stream = (substream)->stream;
33 __entry->period_size = (substream)->runtime->period_size;
34 __entry->buffer_size = (substream)->runtime->buffer_size;
35 __entry->old_hw_ptr = (substream)->runtime->status->hw_ptr;
36 __entry->hw_ptr_base = (substream)
[all...]
H A Dpcm.c108 struct snd_pcm_substream *substream; in snd_pcm_control_ioctl() local
136 for (substream = pstr->substream; substream; in snd_pcm_control_ioctl()
137 substream = substream->next) in snd_pcm_control_ioctl()
138 if (substream->number == (int)subdevice) in snd_pcm_control_ioctl()
140 if (substream == NULL) { in snd_pcm_control_ioctl()
145 err = snd_pcm_info_user(substream, info); in snd_pcm_control_ioctl()
333 static void snd_pcm_proc_info_read(struct snd_pcm_substream *substream, in snd_pcm_proc_info_read() argument
382 struct snd_pcm_substream *substream = entry->private_data; snd_pcm_substream_proc_hw_params_read() local
419 struct snd_pcm_substream *substream = entry->private_data; snd_pcm_substream_proc_sw_params_read() local
447 struct snd_pcm_substream *substream = entry->private_data; snd_pcm_substream_proc_status_read() local
484 struct snd_pcm_substream *substream = entry->private_data; snd_pcm_xrun_injection_write() local
543 create_substream_info_entry(struct snd_pcm_substream *substream, const char *name, void (*read)(struct snd_info_entry *, struct snd_info_buffer *)) create_substream_info_entry() argument
557 snd_pcm_substream_proc_init(struct snd_pcm_substream *substream) snd_pcm_substream_proc_init() argument
596 snd_pcm_substream_proc_init(struct snd_pcm_substream *substream) snd_pcm_substream_proc_init() argument
643 struct snd_pcm_substream *substream, *prev; snd_pcm_new_stream() local
828 struct snd_pcm_substream *substream, *substream_next; snd_pcm_free_stream() local
892 struct snd_pcm_substream *substream; snd_pcm_attach_substream() local
989 snd_pcm_detach_substream(struct snd_pcm_substream *substream) snd_pcm_detach_substream() argument
1057 struct snd_pcm_substream *substream; snd_pcm_dev_register() local
1103 struct snd_pcm_substream *substream; snd_pcm_dev_disconnect() local
[all...]
H A Dpcm_dmaengine.c30 const struct snd_pcm_substream *substream) in substream_to_prtd()
32 return substream->runtime->private_data; in substream_to_prtd()
35 struct dma_chan *snd_dmaengine_pcm_get_chan(struct snd_pcm_substream *substream) in snd_dmaengine_pcm_get_chan() argument
37 struct dmaengine_pcm_runtime_data *prtd = substream_to_prtd(substream); in snd_dmaengine_pcm_get_chan()
45 * @substream: PCM substream
49 * This function can be used to initialize a dma_slave_config from a substream
54 int snd_hwparams_to_dma_slave_config(const struct snd_pcm_substream *substream, in snd_hwparams_to_dma_slave_config() argument
75 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) { in snd_hwparams_to_dma_slave_config()
92 * @substream
29 substream_to_prtd( const struct snd_pcm_substream *substream) substream_to_prtd() argument
106 snd_dmaengine_pcm_set_config_from_dai_data( const struct snd_pcm_substream *substream, const struct snd_dmaengine_dai_dma_data *dma_data, struct dma_slave_config *slave_config) snd_dmaengine_pcm_set_config_from_dai_data() argument
137 struct snd_pcm_substream *substream = arg; dmaengine_pcm_dma_complete() local
148 dmaengine_pcm_prepare_and_submit(struct snd_pcm_substream *substream) dmaengine_pcm_prepare_and_submit() argument
187 snd_dmaengine_pcm_trigger(struct snd_pcm_substream *substream, int cmd) snd_dmaengine_pcm_trigger() argument
233 snd_dmaengine_pcm_pointer_no_residue(struct snd_pcm_substream *substream) snd_dmaengine_pcm_pointer_no_residue() argument
249 snd_dmaengine_pcm_pointer(struct snd_pcm_substream *substream) snd_dmaengine_pcm_pointer() argument
305 snd_dmaengine_pcm_open(struct snd_pcm_substream *substream, struct dma_chan *chan) snd_dmaengine_pcm_open() argument
344 snd_dmaengine_pcm_open_request_chan(struct snd_pcm_substream *substream, dma_filter_fn filter_fn, void *filter_data) snd_dmaengine_pcm_open_request_chan() argument
358 snd_dmaengine_pcm_close(struct snd_pcm_substream *substream) snd_dmaengine_pcm_close() argument
378 snd_dmaengine_pcm_close_release_chan(struct snd_pcm_substream *substream) snd_dmaengine_pcm_close_release_chan() argument
402 snd_dmaengine_pcm_refine_runtime_hwparams( struct snd_pcm_substream *substream, struct snd_dmaengine_dai_dma_data *dma_data, struct snd_pcm_hardware *hw, struct dma_chan *chan) snd_dmaengine_pcm_refine_runtime_hwparams() argument
[all...]
/kernel/linux/linux-5.10/sound/arm/
H A Dpxa2xx-pcm-lib.c32 int pxa2xx_pcm_hw_params(struct snd_pcm_substream *substream, in pxa2xx_pcm_hw_params() argument
35 struct dma_chan *chan = snd_dmaengine_pcm_get_chan(substream); in pxa2xx_pcm_hw_params()
36 struct snd_soc_pcm_runtime *rtd = substream->private_data; in pxa2xx_pcm_hw_params()
41 dma_params = snd_soc_dai_get_dma_data(asoc_rtd_to_cpu(rtd, 0), substream); in pxa2xx_pcm_hw_params()
45 ret = snd_hwparams_to_dma_slave_config(substream, params, &config); in pxa2xx_pcm_hw_params()
49 snd_dmaengine_pcm_set_config_from_dai_data(substream, in pxa2xx_pcm_hw_params()
50 snd_soc_dai_get_dma_data(asoc_rtd_to_cpu(rtd, 0), substream), in pxa2xx_pcm_hw_params()
57 snd_pcm_set_runtime_buffer(substream, &substream->dma_buffer); in pxa2xx_pcm_hw_params()
63 int pxa2xx_pcm_hw_free(struct snd_pcm_substream *substream) in pxa2xx_pcm_hw_free() argument
70 pxa2xx_pcm_trigger(struct snd_pcm_substream *substream, int cmd) pxa2xx_pcm_trigger() argument
77 pxa2xx_pcm_pointer(struct snd_pcm_substream *substream) pxa2xx_pcm_pointer() argument
83 pxa2xx_pcm_prepare(struct snd_pcm_substream *substream) pxa2xx_pcm_prepare() argument
89 pxa2xx_pcm_open(struct snd_pcm_substream *substream) pxa2xx_pcm_open() argument
128 pxa2xx_pcm_close(struct snd_pcm_substream *substream) pxa2xx_pcm_close() argument
134 pxa2xx_pcm_mmap(struct snd_pcm_substream *substream, struct vm_area_struct *vma) pxa2xx_pcm_mmap() argument
145 struct snd_pcm_substream *substream = pcm->streams[stream].substream; pxa2xx_pcm_preallocate_dma_buffer() local
161 struct snd_pcm_substream *substream; pxa2xx_pcm_free_dma_buffers() local
214 pxa2xx_soc_pcm_open(struct snd_soc_component *component, struct snd_pcm_substream *substream) pxa2xx_soc_pcm_open() argument
221 pxa2xx_soc_pcm_close(struct snd_soc_component *component, struct snd_pcm_substream *substream) pxa2xx_soc_pcm_close() argument
228 pxa2xx_soc_pcm_hw_params(struct snd_soc_component *component, struct snd_pcm_substream *substream, struct snd_pcm_hw_params *params) pxa2xx_soc_pcm_hw_params() argument
236 pxa2xx_soc_pcm_hw_free(struct snd_soc_component *component, struct snd_pcm_substream *substream) pxa2xx_soc_pcm_hw_free() argument
243 pxa2xx_soc_pcm_prepare(struct snd_soc_component *component, struct snd_pcm_substream *substream) pxa2xx_soc_pcm_prepare() argument
250 pxa2xx_soc_pcm_trigger(struct snd_soc_component *component, struct snd_pcm_substream *substream, int cmd) pxa2xx_soc_pcm_trigger() argument
258 pxa2xx_soc_pcm_pointer(struct snd_soc_component *component, struct snd_pcm_substream *substream) pxa2xx_soc_pcm_pointer() argument
265 pxa2xx_soc_pcm_mmap(struct snd_soc_component *component, struct snd_pcm_substream *substream, struct vm_area_struct *vma) pxa2xx_soc_pcm_mmap() argument
[all...]
/kernel/linux/linux-5.10/sound/soc/fsl/
H A Dimx-pcm-fiq.c39 struct snd_pcm_substream *substream; member
48 struct snd_pcm_substream *substream = iprtd->substream; in snd_hrtimer_callback() local
56 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) in snd_hrtimer_callback()
61 snd_pcm_period_elapsed(substream); in snd_hrtimer_callback()
73 struct snd_pcm_substream *substream, in snd_imx_pcm_hw_params()
76 struct snd_pcm_runtime *runtime = substream->runtime; in snd_imx_pcm_hw_params()
84 snd_pcm_set_runtime_buffer(substream, &substream->dma_buffer); in snd_imx_pcm_hw_params()
90 struct snd_pcm_substream *substream) in snd_imx_pcm_prepare()
72 snd_imx_pcm_hw_params(struct snd_soc_component *component, struct snd_pcm_substream *substream, struct snd_pcm_hw_params *params) snd_imx_pcm_hw_params() argument
89 snd_imx_pcm_prepare(struct snd_soc_component *component, struct snd_pcm_substream *substream) snd_imx_pcm_prepare() argument
109 snd_imx_pcm_trigger(struct snd_soc_component *component, struct snd_pcm_substream *substream, int cmd) snd_imx_pcm_trigger() argument
148 snd_imx_pcm_pointer(struct snd_soc_component *component, struct snd_pcm_substream *substream) snd_imx_pcm_pointer() argument
173 snd_imx_open(struct snd_soc_component *component, struct snd_pcm_substream *substream) snd_imx_open() argument
203 snd_imx_close(struct snd_soc_component *component, struct snd_pcm_substream *substream) snd_imx_close() argument
216 snd_imx_pcm_mmap(struct snd_soc_component *component, struct snd_pcm_substream *substream, struct vm_area_struct *vma) snd_imx_pcm_mmap() argument
235 struct snd_pcm_substream *substream = pcm->streams[stream].substream; imx_pcm_preallocate_dma_buffer() local
283 struct snd_pcm_substream *substream; snd_imx_pcm_new() local
312 struct snd_pcm_substream *substream; imx_pcm_free() local
[all...]
/kernel/linux/linux-6.6/sound/soc/sof/
H A Dpcm.c25 struct snd_pcm_substream *substream, in create_page_table()
28 struct snd_soc_pcm_runtime *rtd = asoc_substream_to_rtd(substream); in create_page_table()
30 struct snd_dma_buffer *dmab = snd_pcm_get_dma_buf(substream); in create_page_table()
31 int stream = substream->stream; in create_page_table()
50 snd_pcm_period_elapsed(sps->substream); in snd_sof_pcm_period_elapsed_work()
61 void snd_sof_pcm_period_elapsed(struct snd_pcm_substream *substream) in snd_sof_pcm_period_elapsed() argument
63 struct snd_soc_pcm_runtime *rtd = asoc_substream_to_rtd(substream); in snd_sof_pcm_period_elapsed()
83 schedule_work(&spcm->stream[substream->stream].period_elapsed_work); in snd_sof_pcm_period_elapsed()
123 struct snd_pcm_substream *substream, in sof_pcm_hw_params()
127 struct snd_soc_pcm_runtime *rtd = asoc_substream_to_rtd(substream); in sof_pcm_hw_params()
24 create_page_table(struct snd_soc_component *component, struct snd_pcm_substream *substream, unsigned char *dma_area, size_t size) create_page_table() argument
122 sof_pcm_hw_params(struct snd_soc_component *component, struct snd_pcm_substream *substream, struct snd_pcm_hw_params *params) sof_pcm_hw_params() argument
194 sof_pcm_hw_free(struct snd_soc_component *component, struct snd_pcm_substream *substream) sof_pcm_hw_free() argument
246 sof_pcm_prepare(struct snd_soc_component *component, struct snd_pcm_substream *substream) sof_pcm_prepare() argument
283 sof_pcm_trigger(struct snd_soc_component *component, struct snd_pcm_substream *substream, int cmd) sof_pcm_trigger() argument
386 sof_pcm_pointer(struct snd_soc_component *component, struct snd_pcm_substream *substream) sof_pcm_pointer() argument
417 sof_pcm_open(struct snd_soc_component *component, struct snd_pcm_substream *substream) sof_pcm_open() argument
482 sof_pcm_close(struct snd_soc_component *component, struct snd_pcm_substream *substream) sof_pcm_close() argument
669 sof_pcm_ack(struct snd_soc_component *component, struct snd_pcm_substream *substream) sof_pcm_ack() argument
677 sof_pcm_delay(struct snd_soc_component *component, struct snd_pcm_substream *substream) sof_pcm_delay() argument
[all...]
/kernel/linux/linux-6.6/sound/arm/
H A Dpxa2xx-pcm-lib.c32 int pxa2xx_pcm_hw_params(struct snd_pcm_substream *substream, in pxa2xx_pcm_hw_params() argument
35 struct dma_chan *chan = snd_dmaengine_pcm_get_chan(substream); in pxa2xx_pcm_hw_params()
36 struct snd_soc_pcm_runtime *rtd = substream->private_data; in pxa2xx_pcm_hw_params()
41 dma_params = snd_soc_dai_get_dma_data(asoc_rtd_to_cpu(rtd, 0), substream); in pxa2xx_pcm_hw_params()
45 ret = snd_hwparams_to_dma_slave_config(substream, params, &config); in pxa2xx_pcm_hw_params()
49 snd_dmaengine_pcm_set_config_from_dai_data(substream, in pxa2xx_pcm_hw_params()
50 snd_soc_dai_get_dma_data(asoc_rtd_to_cpu(rtd, 0), substream), in pxa2xx_pcm_hw_params()
61 int pxa2xx_pcm_trigger(struct snd_pcm_substream *substream, int cmd) in pxa2xx_pcm_trigger() argument
63 return snd_dmaengine_pcm_trigger(substream, cmd); in pxa2xx_pcm_trigger()
68 pxa2xx_pcm_pointer(struct snd_pcm_substream *substream) in pxa2xx_pcm_pointer() argument
74 pxa2xx_pcm_prepare(struct snd_pcm_substream *substream) pxa2xx_pcm_prepare() argument
80 pxa2xx_pcm_open(struct snd_pcm_substream *substream) pxa2xx_pcm_open() argument
119 pxa2xx_pcm_close(struct snd_pcm_substream *substream) pxa2xx_pcm_close() argument
149 pxa2xx_soc_pcm_open(struct snd_soc_component *component, struct snd_pcm_substream *substream) pxa2xx_soc_pcm_open() argument
156 pxa2xx_soc_pcm_close(struct snd_soc_component *component, struct snd_pcm_substream *substream) pxa2xx_soc_pcm_close() argument
163 pxa2xx_soc_pcm_hw_params(struct snd_soc_component *component, struct snd_pcm_substream *substream, struct snd_pcm_hw_params *params) pxa2xx_soc_pcm_hw_params() argument
171 pxa2xx_soc_pcm_prepare(struct snd_soc_component *component, struct snd_pcm_substream *substream) pxa2xx_soc_pcm_prepare() argument
178 pxa2xx_soc_pcm_trigger(struct snd_soc_component *component, struct snd_pcm_substream *substream, int cmd) pxa2xx_soc_pcm_trigger() argument
186 pxa2xx_soc_pcm_pointer(struct snd_soc_component *component, struct snd_pcm_substream *substream) pxa2xx_soc_pcm_pointer() argument
[all...]
/kernel/linux/linux-5.10/sound/firewire/fireface/
H A Dff-midi.c10 static int midi_capture_open(struct snd_rawmidi_substream *substream) in midi_capture_open() argument
16 static int midi_playback_open(struct snd_rawmidi_substream *substream) in midi_playback_open() argument
18 struct snd_ff *ff = substream->rmidi->private_data; in midi_playback_open()
21 ff->on_sysex[substream->number] = 0; in midi_playback_open()
22 ff->rx_midi_error[substream->number] = false; in midi_playback_open()
24 WRITE_ONCE(ff->rx_midi_substreams[substream->number], substream); in midi_playback_open()
29 static int midi_capture_close(struct snd_rawmidi_substream *substream) in midi_capture_close() argument
35 static int midi_playback_close(struct snd_rawmidi_substream *substream) in midi_playback_close() argument
37 struct snd_ff *ff = substream in midi_playback_close()
45 midi_capture_trigger(struct snd_rawmidi_substream *substream, int up) midi_capture_trigger() argument
62 midi_playback_trigger(struct snd_rawmidi_substream *substream, int up) midi_playback_trigger() argument
79 struct snd_rawmidi_substream *substream; set_midi_substream_names() local
[all...]
/kernel/linux/linux-6.6/sound/firewire/fireface/
H A Dff-midi.c10 static int midi_capture_open(struct snd_rawmidi_substream *substream) in midi_capture_open() argument
16 static int midi_playback_open(struct snd_rawmidi_substream *substream) in midi_playback_open() argument
18 struct snd_ff *ff = substream->rmidi->private_data; in midi_playback_open()
21 ff->on_sysex[substream->number] = 0; in midi_playback_open()
22 ff->rx_midi_error[substream->number] = false; in midi_playback_open()
24 WRITE_ONCE(ff->rx_midi_substreams[substream->number], substream); in midi_playback_open()
29 static int midi_capture_close(struct snd_rawmidi_substream *substream) in midi_capture_close() argument
35 static int midi_playback_close(struct snd_rawmidi_substream *substream) in midi_playback_close() argument
37 struct snd_ff *ff = substream in midi_playback_close()
45 midi_capture_trigger(struct snd_rawmidi_substream *substream, int up) midi_capture_trigger() argument
62 midi_playback_trigger(struct snd_rawmidi_substream *substream, int up) midi_playback_trigger() argument
79 struct snd_rawmidi_substream *substream; set_midi_substream_names() local
[all...]
/kernel/linux/linux-6.6/sound/soc/
H A Dsoc-link.c34 * We might want to check substream by using list.
37 #define soc_link_mark_push(rtd, substream, tgt) ((rtd)->mark_##tgt = substream)
38 #define soc_link_mark_pop(rtd, substream, tgt) ((rtd)->mark_##tgt = NULL)
39 #define soc_link_mark_match(rtd, substream, tgt) ((rtd)->mark_##tgt == substream)
68 int snd_soc_link_startup(struct snd_pcm_substream *substream) in snd_soc_link_startup() argument
70 struct snd_soc_pcm_runtime *rtd = asoc_substream_to_rtd(substream); in snd_soc_link_startup()
75 ret = rtd->dai_link->ops->startup(substream); in snd_soc_link_startup()
77 /* mark substream i in snd_soc_link_startup()
84 snd_soc_link_shutdown(struct snd_pcm_substream *substream, int rollback) snd_soc_link_shutdown() argument
100 snd_soc_link_prepare(struct snd_pcm_substream *substream) snd_soc_link_prepare() argument
112 snd_soc_link_hw_params(struct snd_pcm_substream *substream, struct snd_pcm_hw_params *params) snd_soc_link_hw_params() argument
129 snd_soc_link_hw_free(struct snd_pcm_substream *substream, int rollback) snd_soc_link_hw_free() argument
144 soc_link_trigger(struct snd_pcm_substream *substream, int cmd) soc_link_trigger() argument
156 snd_soc_link_trigger(struct snd_pcm_substream *substream, int cmd, int rollback) snd_soc_link_trigger() argument
[all...]
/kernel/linux/linux-6.6/sound/firewire/tascam/
H A Dtascam-pcm.c11 struct snd_pcm_substream *substream) in pcm_init_hw_params()
13 struct snd_pcm_runtime *runtime = substream->runtime; in pcm_init_hw_params()
18 if (substream->stream == SNDRV_PCM_STREAM_CAPTURE) { in pcm_init_hw_params()
43 static int pcm_open(struct snd_pcm_substream *substream) in pcm_open() argument
45 struct snd_tscm *tscm = substream->private_data; in pcm_open()
54 err = pcm_init_hw_params(tscm, substream); in pcm_open()
77 substream->runtime->hw.rate_min = rate; in pcm_open()
78 substream->runtime->hw.rate_max = rate; in pcm_open()
80 err = snd_pcm_hw_constraint_minmax(substream->runtime, in pcm_open()
88 err = snd_pcm_hw_constraint_minmax(substream in pcm_open()
10 pcm_init_hw_params(struct snd_tscm *tscm, struct snd_pcm_substream *substream) pcm_init_hw_params() argument
107 pcm_close(struct snd_pcm_substream *substream) pcm_close() argument
116 pcm_hw_params(struct snd_pcm_substream *substream, struct snd_pcm_hw_params *hw_params) pcm_hw_params() argument
138 pcm_hw_free(struct snd_pcm_substream *substream) pcm_hw_free() argument
154 pcm_capture_prepare(struct snd_pcm_substream *substream) pcm_capture_prepare() argument
171 pcm_playback_prepare(struct snd_pcm_substream *substream) pcm_playback_prepare() argument
188 pcm_capture_trigger(struct snd_pcm_substream *substream, int cmd) pcm_capture_trigger() argument
206 pcm_playback_trigger(struct snd_pcm_substream *substream, int cmd) pcm_playback_trigger() argument
238 pcm_capture_ack(struct snd_pcm_substream *substream) pcm_capture_ack() argument
245 pcm_playback_ack(struct snd_pcm_substream *substream) pcm_playback_ack() argument
[all...]
/kernel/linux/linux-5.10/sound/soc/bcm/
H A Dbcm63xx-pcm-whistler.c44 struct snd_pcm_substream *substream, in bcm63xx_pcm_hw_params()
48 struct snd_soc_pcm_runtime *rtd = asoc_substream_to_rtd(substream); in bcm63xx_pcm_hw_params()
49 struct snd_pcm_runtime *runtime = substream->runtime; in bcm63xx_pcm_hw_params()
51 snd_pcm_set_runtime_buffer(substream, &substream->dma_buffer); in bcm63xx_pcm_hw_params()
58 snd_soc_dai_set_dma_data(asoc_rtd_to_cpu(rtd, 0), substream, dma_desc); in bcm63xx_pcm_hw_params()
64 struct snd_pcm_substream *substream) in bcm63xx_pcm_hw_free()
67 struct snd_soc_pcm_runtime *rtd = asoc_substream_to_rtd(substream); in bcm63xx_pcm_hw_free()
69 dma_desc = snd_soc_dai_get_dma_data(asoc_rtd_to_cpu(rtd, 0), substream); in bcm63xx_pcm_hw_free()
71 snd_pcm_set_runtime_buffer(substream, NUL in bcm63xx_pcm_hw_free()
43 bcm63xx_pcm_hw_params(struct snd_soc_component *component, struct snd_pcm_substream *substream, struct snd_pcm_hw_params *params) bcm63xx_pcm_hw_params() argument
63 bcm63xx_pcm_hw_free(struct snd_soc_component *component, struct snd_pcm_substream *substream) bcm63xx_pcm_hw_free() argument
76 bcm63xx_pcm_trigger(struct snd_soc_component *component, struct snd_pcm_substream *substream, int cmd) bcm63xx_pcm_trigger() argument
145 bcm63xx_pcm_prepare(struct snd_soc_component *component, struct snd_pcm_substream *substream) bcm63xx_pcm_prepare() argument
178 bcm63xx_pcm_pointer(struct snd_soc_component *component, struct snd_pcm_substream *substream) bcm63xx_pcm_pointer() argument
193 bcm63xx_pcm_mmap(struct snd_soc_component *component, struct snd_pcm_substream *substream, struct vm_area_struct *vma) bcm63xx_pcm_mmap() argument
206 bcm63xx_pcm_open(struct snd_soc_component *component, struct snd_pcm_substream *substream) bcm63xx_pcm_open() argument
240 bcm63xx_pcm_close(struct snd_soc_component *component, struct snd_pcm_substream *substream) bcm63xx_pcm_close() argument
254 struct snd_pcm_substream *substream; i2s_dma_isr() local
367 struct snd_pcm_substream *substream = pcm->streams[stream].substream; bcm63xx_pcm_preallocate_dma_buffer() local
427 struct snd_pcm_substream *substream; bcm63xx_pcm_free_dma_buffers() local
[all...]
H A Dcygnus-pcm.c208 struct snd_pcm_substream *substream) in cygnus_dai_get_dma_data()
210 struct snd_soc_pcm_runtime *soc_runtime = asoc_substream_to_rtd(substream); in cygnus_dai_get_dma_data()
212 return snd_soc_dai_get_dma_data(asoc_rtd_to_cpu(soc_runtime, 0), substream); in cygnus_dai_get_dma_data()
256 static int configure_ringbuf_regs(struct snd_pcm_substream *substream) in configure_ringbuf_regs() argument
262 aio = cygnus_dai_get_dma_data(substream); in configure_ringbuf_regs()
265 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) { in configure_ringbuf_regs()
305 static struct ringbuf_regs *get_ringbuf(struct snd_pcm_substream *substream) in get_ringbuf() argument
310 aio = cygnus_dai_get_dma_data(substream); in get_ringbuf()
312 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) in get_ringbuf()
320 static void enable_intr(struct snd_pcm_substream *substream) in enable_intr() argument
207 cygnus_dai_get_dma_data( struct snd_pcm_substream *substream) cygnus_dai_get_dma_data() argument
354 disable_intr(struct snd_pcm_substream *substream) disable_intr() argument
379 cygnus_pcm_trigger(struct snd_soc_component *component, struct snd_pcm_substream *substream, int cmd) cygnus_pcm_trigger() argument
401 cygnus_pcm_period_elapsed(struct snd_pcm_substream *substream) cygnus_pcm_period_elapsed() argument
581 cygnus_pcm_open(struct snd_soc_component *component, struct snd_pcm_substream *substream) cygnus_pcm_open() argument
618 cygnus_pcm_close(struct snd_soc_component *component, struct snd_pcm_substream *substream) cygnus_pcm_close() argument
639 cygnus_pcm_hw_params(struct snd_soc_component *component, struct snd_pcm_substream *substream, struct snd_pcm_hw_params *params) cygnus_pcm_hw_params() argument
656 cygnus_pcm_hw_free(struct snd_soc_component *component, struct snd_pcm_substream *substream) cygnus_pcm_hw_free() argument
669 cygnus_pcm_prepare(struct snd_soc_component *component, struct snd_pcm_substream *substream) cygnus_pcm_prepare() argument
703 cygnus_pcm_pointer(struct snd_soc_component *component, struct snd_pcm_substream *substream) cygnus_pcm_pointer() argument
735 struct snd_pcm_substream *substream = pcm->streams[stream].substream; cygnus_pcm_preallocate_dma_buffer() local
763 struct snd_pcm_substream *substream; cygnus_dma_free_dma_buffers() local
[all...]

Completed in 18 milliseconds

12345678910>>...71