Home
last modified time | relevance | path

Searched refs:substream (Results 1 – 25 of 672) sorted by relevance

12345678910>>...27

/linux/sound/core/
H A Dpcm_memory.c98 static int preallocate_pcm_pages(struct snd_pcm_substream *substream, in preallocate_pcm_pages() argument
101 struct snd_dma_buffer *dmab = &substream->dma_buffer; in preallocate_pcm_pages()
102 struct snd_card *card = substream->pcm->card; in preallocate_pcm_pages()
108 substream->stream, size, dmab); in preallocate_pcm_pages()
117 substream->pcm->card->number, substream->pcm->device, in preallocate_pcm_pages()
118 substream->stream ? 'c' : 'p', substream->number, in preallocate_pcm_pages()
119 substream->pcm->name, orig_size); in preallocate_pcm_pages()
129 void snd_pcm_lib_preallocate_free(struct snd_pcm_substream *substream) in snd_pcm_lib_preallocate_free() argument
131 do_free_pages(substream->pcm->card, &substream->dma_buffer); in snd_pcm_lib_preallocate_free()
142 struct snd_pcm_substream *substream; in snd_pcm_lib_preallocate_free_for_all() local
[all …]
H A Dpcm_native.c37 #define trace_hw_mask_param(substream, type, index, prev, curr) argument
38 #define trace_hw_interval_param(substream, type, index, prev, curr) argument
65 static int snd_pcm_hw_refine_old_user(struct snd_pcm_substream *substream,
67 static int snd_pcm_hw_params_old_user(struct snd_pcm_substream *substream,
108 * @substream: PCM substream
111 * flag of the given substream. This also takes the global link rw lock
114 void snd_pcm_stream_lock(struct snd_pcm_substream *substream) in snd_pcm_stream_lock() argument
116 snd_pcm_group_lock(&substream->self_group, substream in snd_pcm_stream_lock()
126 snd_pcm_stream_unlock(struct snd_pcm_substream * substream) snd_pcm_stream_unlock() argument
140 snd_pcm_stream_lock_irq(struct snd_pcm_substream * substream) snd_pcm_stream_lock_irq() argument
147 snd_pcm_stream_lock_nested(struct snd_pcm_substream * substream) snd_pcm_stream_lock_nested() argument
163 snd_pcm_stream_unlock_irq(struct snd_pcm_substream * substream) snd_pcm_stream_unlock_irq() argument
170 _snd_pcm_stream_lock_irqsave(struct snd_pcm_substream * substream) _snd_pcm_stream_lock_irqsave() argument
181 _snd_pcm_stream_lock_irqsave_nested(struct snd_pcm_substream * substream) _snd_pcm_stream_lock_irqsave_nested() argument
201 snd_pcm_stream_unlock_irqrestore(struct snd_pcm_substream * substream,unsigned long flags) snd_pcm_stream_unlock_irqrestore() argument
212 snd_pcm_ops_ioctl(struct snd_pcm_substream * substream,unsigned cmd,void * arg) snd_pcm_ops_ioctl() argument
221 snd_pcm_info(struct snd_pcm_substream * substream,struct snd_pcm_info * info) snd_pcm_info() argument
242 snd_pcm_info_user(struct snd_pcm_substream * substream,struct snd_pcm_info __user * _info) snd_pcm_info_user() argument
262 hw_support_mmap(struct snd_pcm_substream * substream) hw_support_mmap() argument
289 constrain_mask_params(struct snd_pcm_substream * substream,struct snd_pcm_hw_params * params) constrain_mask_params() argument
325 constrain_interval_params(struct snd_pcm_substream * substream,struct snd_pcm_hw_params * params) constrain_interval_params() argument
361 constrain_params_by_rules(struct snd_pcm_substream * substream,struct snd_pcm_hw_params * params) constrain_params_by_rules() argument
478 fixup_unreferenced_params(struct snd_pcm_substream * substream,struct snd_pcm_hw_params * params) fixup_unreferenced_params() argument
551 snd_pcm_hw_refine(struct snd_pcm_substream * substream,struct snd_pcm_hw_params * params) snd_pcm_hw_refine() argument
583 snd_pcm_hw_refine_user(struct snd_pcm_substream * substream,struct snd_pcm_hw_params __user * _params) snd_pcm_hw_refine_user() argument
626 snd_pcm_set_state(struct snd_pcm_substream * substream,snd_pcm_state_t state) snd_pcm_set_state() argument
641 snd_pcm_get_state(struct snd_pcm_substream * substream) snd_pcm_get_state() argument
648 snd_pcm_state_open_or_disconnected(struct snd_pcm_substream * substream) snd_pcm_state_open_or_disconnected() argument
656 snd_pcm_timer_notify(struct snd_pcm_substream * substream,int event) snd_pcm_timer_notify() argument
666 snd_pcm_sync_stop(struct snd_pcm_substream * substream,bool sync_irq) snd_pcm_sync_stop() argument
776 is_oss_stream(substream) global() argument
778 is_oss_stream(substream) global() argument
781 snd_pcm_hw_params(struct snd_pcm_substream * substream,struct snd_pcm_hw_params * params) snd_pcm_hw_params() argument
916 snd_pcm_hw_params_user(struct snd_pcm_substream * substream,struct snd_pcm_hw_params __user * _params) snd_pcm_hw_params_user() argument
935 do_hw_free(struct snd_pcm_substream * substream) do_hw_free() argument
947 snd_pcm_hw_free(struct snd_pcm_substream * substream) snd_pcm_hw_free() argument
980 snd_pcm_sw_params(struct snd_pcm_substream * substream,struct snd_pcm_sw_params * params) snd_pcm_sw_params() argument
1033 snd_pcm_sw_params_user(struct snd_pcm_substream * substream,struct snd_pcm_sw_params __user * _params) snd_pcm_sw_params_user() argument
1047 snd_pcm_calc_delay(struct snd_pcm_substream * substream) snd_pcm_calc_delay() argument
1058 snd_pcm_status64(struct snd_pcm_substream * substream,struct snd_pcm_status64 * status) snd_pcm_status64() argument
1132 snd_pcm_status_user64(struct snd_pcm_substream * substream,struct snd_pcm_status64 __user * _status,bool ext) snd_pcm_status_user64() argument
1156 snd_pcm_status_user32(struct snd_pcm_substream * substream,struct snd_pcm_status32 __user * _status,bool ext) snd_pcm_status_user32() argument
1205 snd_pcm_channel_info(struct snd_pcm_substream * substream,struct snd_pcm_channel_info * info) snd_pcm_channel_info() argument
1224 snd_pcm_channel_info_user(struct snd_pcm_substream * substream,struct snd_pcm_channel_info __user * _info) snd_pcm_channel_info_user() argument
1240 snd_pcm_trigger_tstamp(struct snd_pcm_substream * substream) snd_pcm_trigger_tstamp() argument
1274 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
1334 snd_pcm_action_single(const struct action_ops * ops,struct snd_pcm_substream * substream,snd_pcm_state_t state) snd_pcm_action_single() argument
1350 snd_pcm_group_assign(struct snd_pcm_substream * substream,struct snd_pcm_group * new_group) snd_pcm_group_assign() argument
1362 snd_pcm_group_unref(struct snd_pcm_group * group,struct snd_pcm_substream * substream) snd_pcm_group_unref() argument
1379 snd_pcm_stream_group_ref(struct snd_pcm_substream * substream) snd_pcm_stream_group_ref() argument
1415 snd_pcm_action(const struct action_ops * ops,struct snd_pcm_substream * substream,snd_pcm_state_t state) snd_pcm_action() argument
1434 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
1444 snd_pcm_action_nonatomic(const struct action_ops * ops,struct snd_pcm_substream * substream,snd_pcm_state_t state) snd_pcm_action_nonatomic() argument
1465 snd_pcm_pre_start(struct snd_pcm_substream * substream,snd_pcm_state_t state) snd_pcm_pre_start() argument
1481 snd_pcm_do_start(struct snd_pcm_substream * substream,snd_pcm_state_t state) snd_pcm_do_start() argument
1495 snd_pcm_undo_start(struct snd_pcm_substream * substream,snd_pcm_state_t state) snd_pcm_undo_start() argument
1504 snd_pcm_post_start(struct snd_pcm_substream * substream,snd_pcm_state_t state) snd_pcm_post_start() argument
1533 snd_pcm_start(struct snd_pcm_substream * substream) snd_pcm_start() argument
1540 snd_pcm_start_lock_irq(struct snd_pcm_substream * substream) snd_pcm_start_lock_irq() argument
1549 snd_pcm_pre_stop(struct snd_pcm_substream * substream,snd_pcm_state_t state) snd_pcm_pre_stop() argument
1559 snd_pcm_do_stop(struct snd_pcm_substream * substream,snd_pcm_state_t state) snd_pcm_do_stop() argument
1570 snd_pcm_post_stop(struct snd_pcm_substream * substream,snd_pcm_state_t state) snd_pcm_post_stop() argument
1598 snd_pcm_stop(struct snd_pcm_substream * substream,snd_pcm_state_t state) snd_pcm_stop() argument
1613 snd_pcm_drain_done(struct snd_pcm_substream * substream) snd_pcm_drain_done() argument
1628 snd_pcm_stop_xrun(struct snd_pcm_substream * substream) snd_pcm_stop_xrun() argument
1642 snd_pcm_pre_pause(struct snd_pcm_substream * substream,snd_pcm_state_t state) snd_pcm_pre_pause() argument
1657 snd_pcm_do_pause(struct snd_pcm_substream * substream,snd_pcm_state_t state) snd_pcm_do_pause() argument
1673 snd_pcm_undo_pause(struct snd_pcm_substream * substream,snd_pcm_state_t state) snd_pcm_undo_pause() argument
1683 snd_pcm_post_pause(struct snd_pcm_substream * substream,snd_pcm_state_t state) snd_pcm_post_pause() argument
1709 snd_pcm_pause(struct snd_pcm_substream * substream,bool push) snd_pcm_pause() argument
1715 snd_pcm_pause_lock_irq(struct snd_pcm_substream * substream,bool push) snd_pcm_pause_lock_irq() argument
1725 snd_pcm_pre_suspend(struct snd_pcm_substream * substream,snd_pcm_state_t state) snd_pcm_pre_suspend() argument
1742 snd_pcm_do_suspend(struct snd_pcm_substream * substream,snd_pcm_state_t state) snd_pcm_do_suspend() argument
1755 snd_pcm_post_suspend(struct snd_pcm_substream * substream,snd_pcm_state_t state) snd_pcm_post_suspend() argument
1782 snd_pcm_suspend(struct snd_pcm_substream * substream) snd_pcm_suspend() argument
1802 struct snd_pcm_substream *substream; snd_pcm_suspend_all() local
1835 snd_pcm_pre_resume(struct snd_pcm_substream * substream,snd_pcm_state_t state) snd_pcm_pre_resume() argument
1847 snd_pcm_do_resume(struct snd_pcm_substream * substream,snd_pcm_state_t state) snd_pcm_do_resume() argument
1861 snd_pcm_undo_resume(struct snd_pcm_substream * substream,snd_pcm_state_t state) snd_pcm_undo_resume() argument
1869 snd_pcm_post_resume(struct snd_pcm_substream * substream,snd_pcm_state_t state) snd_pcm_post_resume() argument
1885 snd_pcm_resume(struct snd_pcm_substream * substream) snd_pcm_resume() argument
1893 snd_pcm_resume(struct snd_pcm_substream * substream) snd_pcm_resume() argument
1905 snd_pcm_xrun(struct snd_pcm_substream * substream) snd_pcm_xrun() argument
1925 snd_pcm_pre_reset(struct snd_pcm_substream * substream,snd_pcm_state_t state) snd_pcm_pre_reset() argument
1940 snd_pcm_do_reset(struct snd_pcm_substream * substream,snd_pcm_state_t state) snd_pcm_do_reset() argument
1956 snd_pcm_post_reset(struct snd_pcm_substream * substream,snd_pcm_state_t state) snd_pcm_post_reset() argument
1973 snd_pcm_reset(struct snd_pcm_substream * substream) snd_pcm_reset() argument
1983 snd_pcm_pre_prepare(struct snd_pcm_substream * substream,snd_pcm_state_t state) snd_pcm_pre_prepare() argument
2000 snd_pcm_do_prepare(struct snd_pcm_substream * substream,snd_pcm_state_t state) snd_pcm_do_prepare() argument
2011 snd_pcm_post_prepare(struct snd_pcm_substream * substream,snd_pcm_state_t state) snd_pcm_post_prepare() argument
2032 snd_pcm_prepare(struct snd_pcm_substream * substream,struct file * file) snd_pcm_prepare() argument
2063 snd_pcm_pre_drain_init(struct snd_pcm_substream * substream,snd_pcm_state_t state) snd_pcm_pre_drain_init() argument
2077 snd_pcm_do_drain_init(struct snd_pcm_substream * substream,snd_pcm_state_t state) snd_pcm_do_drain_init() argument
2122 snd_pcm_post_drain_init(struct snd_pcm_substream * substream,snd_pcm_state_t state) snd_pcm_post_drain_init() argument
2140 snd_pcm_drain(struct snd_pcm_substream * substream,struct file * file) snd_pcm_drain() argument
2267 snd_pcm_drop(struct snd_pcm_substream * substream) snd_pcm_drop() argument
2313 snd_pcm_link(struct snd_pcm_substream * substream,int fd) snd_pcm_link() argument
2363 relink_to_local(struct snd_pcm_substream * substream) relink_to_local() argument
2370 snd_pcm_unlink(struct snd_pcm_substream * substream) snd_pcm_unlink() argument
2528 struct snd_pcm_substream *substream = rule->private; snd_pcm_hw_rule_buffer_bytes_max() local
2572 snd_pcm_hw_constraints_init(struct snd_pcm_substream * substream) snd_pcm_hw_constraints_init() argument
2696 snd_pcm_hw_constraints_complete(struct snd_pcm_substream * substream) snd_pcm_hw_constraints_complete() argument
2779 pcm_release_private(struct snd_pcm_substream * substream) pcm_release_private() argument
2785 snd_pcm_release_substream(struct snd_pcm_substream * substream) snd_pcm_release_substream() argument
2812 struct snd_pcm_substream *substream; snd_pcm_open_substream() local
2862 struct snd_pcm_substream *substream; snd_pcm_open_file() local
2972 struct snd_pcm_substream *substream; snd_pcm_release() local
2997 do_pcm_hwsync(struct snd_pcm_substream * substream) do_pcm_hwsync() argument
3019 forward_appl_ptr(struct snd_pcm_substream * substream,snd_pcm_uframes_t frames,snd_pcm_sframes_t avail) forward_appl_ptr() argument
3039 rewind_appl_ptr(struct snd_pcm_substream * substream,snd_pcm_uframes_t frames,snd_pcm_sframes_t avail) rewind_appl_ptr() argument
3063 snd_pcm_rewind(struct snd_pcm_substream * substream,snd_pcm_uframes_t frames) snd_pcm_rewind() argument
3082 snd_pcm_forward(struct snd_pcm_substream * substream,snd_pcm_uframes_t frames) snd_pcm_forward() argument
3101 snd_pcm_delay(struct snd_pcm_substream * substream,snd_pcm_sframes_t * delay) snd_pcm_delay() argument
3116 snd_pcm_hwsync(struct snd_pcm_substream * substream) snd_pcm_hwsync() argument
3161 snd_pcm_sync_ptr(struct snd_pcm_substream * substream,struct snd_pcm_sync_ptr __user * _sync_ptr) snd_pcm_sync_ptr() argument
3255 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
3310 snd_pcm_tstamp(struct snd_pcm_substream * substream,int __user * _arg) snd_pcm_tstamp() argument
3323 snd_pcm_xferi_frames_ioctl(struct snd_pcm_substream * substream,struct snd_xferi __user * _xferi) snd_pcm_xferi_frames_ioctl() argument
3344 snd_pcm_xfern_frames_ioctl(struct snd_pcm_substream * substream,struct snd_xfern __user * _xfern) snd_pcm_xfern_frames_ioctl() argument
3373 snd_pcm_rewind_ioctl(struct snd_pcm_substream * substream,snd_pcm_uframes_t __user * _frames) snd_pcm_rewind_ioctl() argument
3389 snd_pcm_forward_ioctl(struct snd_pcm_substream * substream,snd_pcm_uframes_t __user * _frames) snd_pcm_forward_ioctl() argument
3406 snd_pcm_common_ioctl(struct file * file,struct snd_pcm_substream * substream,unsigned int cmd,void __user * arg) snd_pcm_common_ioctl() argument
3540 snd_pcm_kernel_ioctl(struct snd_pcm_substream * substream,unsigned int cmd,void * arg) snd_pcm_kernel_ioctl() argument
3582 struct snd_pcm_substream *substream; snd_pcm_read() local
3606 struct snd_pcm_substream *substream; snd_pcm_write() local
3629 struct snd_pcm_substream *substream; snd_pcm_readv() local
3668 struct snd_pcm_substream *substream; snd_pcm_writev() local
3706 struct snd_pcm_substream *substream; snd_pcm_poll() local
3765 struct snd_pcm_substream *substream = vmf->vma->vm_private_data; snd_pcm_mmap_status_fault() local
3781 snd_pcm_mmap_status(struct snd_pcm_substream * substream,struct file * file,struct vm_area_struct * area) snd_pcm_mmap_status() argument
3803 struct snd_pcm_substream *substream = vmf->vma->vm_private_data; snd_pcm_mmap_control_fault() local
3819 snd_pcm_mmap_control(struct snd_pcm_substream * substream,struct file * file,struct vm_area_struct * area) snd_pcm_mmap_control() argument
3875 snd_pcm_mmap_status(struct snd_pcm_substream * substream,struct file * file,struct vm_area_struct * area) snd_pcm_mmap_status() argument
3880 snd_pcm_mmap_control(struct snd_pcm_substream * substream,struct file * file,struct vm_area_struct * area) snd_pcm_mmap_control() argument
3892 struct snd_pcm_substream *substream = area->vm_private_data; snd_pcm_mmap_data_open() local
3902 struct snd_pcm_substream *substream = area->vm_private_data; snd_pcm_mmap_data_close() local
3912 struct snd_pcm_substream *substream = vmf->vma->vm_private_data; snd_pcm_mmap_data_fault() local
3967 snd_pcm_lib_default_mmap(struct snd_pcm_substream * substream,struct vm_area_struct * area) snd_pcm_lib_default_mmap() argument
3995 snd_pcm_lib_mmap_iomem(struct snd_pcm_substream * substream,struct vm_area_struct * area) snd_pcm_lib_mmap_iomem() argument
4009 snd_pcm_mmap_data(struct snd_pcm_substream * substream,struct file * file,struct vm_area_struct * area) snd_pcm_mmap_data() argument
4071 struct snd_pcm_substream *substream; snd_pcm_mmap() local
4108 struct snd_pcm_substream *substream; snd_pcm_fasync() local
4176 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
4205 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
4240 struct snd_pcm_substream *substream = pcm_file->substream; snd_pcm_get_unmapped_area() local
[all...]
H A Drawmidi.c113 static bool snd_rawmidi_ready(struct snd_rawmidi_substream *substream) in snd_rawmidi_ready_append()
115 guard(spinlock_irqsave)(&substream->lock); in snd_rawmidi_ready_append()
116 return __snd_rawmidi_ready(substream->runtime); in snd_rawmidi_ready_append()
119 static inline int snd_rawmidi_ready_append(struct snd_rawmidi_substream *substream, in snd_rawmidi_ready_append()
122 struct snd_rawmidi_runtime *runtime = substream->runtime; in snd_rawmidi_input_event_work()
125 (!substream->append || runtime->avail >= count); in snd_rawmidi_input_event_work()
134 runtime->event(runtime->substream); in snd_rawmidi_buffer_ref()
137 /* buffer refcount management: call with substream->lock held */ in snd_rawmidi_buffer_unref()
148 static void snd_rawmidi_buffer_ref_sync(struct snd_rawmidi_substream *substream) in snd_rawmidi_buffer_ref_sync()
152 spin_lock_irq(&substream in snd_rawmidi_buffer_ref_sync()
106 snd_rawmidi_ready(struct snd_rawmidi_substream * substream) snd_rawmidi_ready() argument
112 snd_rawmidi_ready_append(struct snd_rawmidi_substream * substream,size_t count) snd_rawmidi_ready_append() argument
141 snd_rawmidi_buffer_ref_sync(struct snd_rawmidi_substream * substream) snd_rawmidi_buffer_ref_sync() argument
158 snd_rawmidi_runtime_create(struct snd_rawmidi_substream * substream) snd_rawmidi_runtime_create() argument
199 snd_rawmidi_runtime_free(struct snd_rawmidi_substream * substream) snd_rawmidi_runtime_free() argument
209 snd_rawmidi_output_trigger(struct snd_rawmidi_substream * substream,int up) snd_rawmidi_output_trigger() argument
216 snd_rawmidi_input_trigger(struct snd_rawmidi_substream * substream,int up) snd_rawmidi_input_trigger() argument
233 reset_runtime_ptrs(struct snd_rawmidi_substream * substream,bool is_input) reset_runtime_ptrs() argument
241 snd_rawmidi_drop_output(struct snd_rawmidi_substream * substream) snd_rawmidi_drop_output() argument
249 snd_rawmidi_drain_output(struct snd_rawmidi_substream * substream) snd_rawmidi_drain_output() argument
295 snd_rawmidi_drain_input(struct snd_rawmidi_substream * substream) snd_rawmidi_drain_input() argument
310 struct snd_rawmidi_substream *substream; assign_substream() local
339 open_substream(struct snd_rawmidi * rmidi,struct snd_rawmidi_substream * substream,int mode) open_substream() argument
534 close_substream(struct snd_rawmidi * rmidi,struct snd_rawmidi_substream * substream,int cleanup) close_substream() argument
621 snd_rawmidi_info(struct snd_rawmidi_substream * substream,struct snd_rawmidi_info * info) snd_rawmidi_info() argument
647 snd_rawmidi_info_user(struct snd_rawmidi_substream * substream,struct snd_rawmidi_info __user * _info) snd_rawmidi_info_user() argument
666 struct snd_rawmidi_substream *substream; __snd_rawmidi_info_select() local
713 resize_runtime_buffer(struct snd_rawmidi_substream * substream,struct snd_rawmidi_params * params,bool is_input) resize_runtime_buffer() argument
750 snd_rawmidi_output_params(struct snd_rawmidi_substream * substream,struct snd_rawmidi_params * params) snd_rawmidi_output_params() argument
766 snd_rawmidi_input_params(struct snd_rawmidi_substream * substream,struct snd_rawmidi_params * params) snd_rawmidi_input_params() argument
792 snd_rawmidi_output_status(struct snd_rawmidi_substream * substream,struct snd_rawmidi_status64 * status) snd_rawmidi_output_status() argument
804 snd_rawmidi_input_status(struct snd_rawmidi_substream * substream,struct snd_rawmidi_status64 * status) snd_rawmidi_input_status() argument
1079 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
1118 get_framing_tstamp(struct snd_rawmidi_substream * substream) get_framing_tstamp() argument
1146 snd_rawmidi_receive(struct snd_rawmidi_substream * substream,const unsigned char * buffer,int count) snd_rawmidi_receive() argument
1220 snd_rawmidi_kernel_read1(struct snd_rawmidi_substream * substream,unsigned char __user * userbuf,unsigned char * kernelbuf,long count) snd_rawmidi_kernel_read1() argument
1265 snd_rawmidi_kernel_read(struct snd_rawmidi_substream * substream,unsigned char * buf,long count) snd_rawmidi_kernel_read() argument
1279 struct snd_rawmidi_substream *substream; snd_rawmidi_read() local
1334 snd_rawmidi_transmit_empty(struct snd_rawmidi_substream * substream) snd_rawmidi_transmit_empty() argument
1357 __snd_rawmidi_transmit_peek(struct snd_rawmidi_substream * substream,unsigned char * buffer,int count) __snd_rawmidi_transmit_peek() argument
1416 snd_rawmidi_transmit_peek(struct snd_rawmidi_substream * substream,unsigned char * buffer,int count) snd_rawmidi_transmit_peek() argument
1433 __snd_rawmidi_transmit_ack(struct snd_rawmidi_substream * substream,int count) __snd_rawmidi_transmit_ack() argument
1467 snd_rawmidi_transmit_ack(struct snd_rawmidi_substream * substream,int count) snd_rawmidi_transmit_ack() argument
1486 snd_rawmidi_transmit(struct snd_rawmidi_substream * substream,unsigned char * buffer,int count) snd_rawmidi_transmit() argument
1505 snd_rawmidi_proceed(struct snd_rawmidi_substream * substream) snd_rawmidi_proceed() argument
1521 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
1583 snd_rawmidi_kernel_write(struct snd_rawmidi_substream * substream,const unsigned char * buf,long count) snd_rawmidi_kernel_write() argument
1597 struct snd_rawmidi_substream *substream; snd_rawmidi_write() local
1707 struct snd_rawmidi_substream *substream; snd_rawmidi_proc_info_read() local
1805 struct snd_rawmidi_substream *substream; snd_rawmidi_alloc_substreams() local
1914 struct snd_rawmidi_substream *substream; snd_rawmidi_free_substreams() local
2099 struct snd_rawmidi_substream *substream; snd_rawmidi_set_ops() local
[all...]
H A Dpcm.c107 struct snd_pcm_substream *substream; in snd_pcm_control_ioctl() local
128 for (substream = pstr->substream; substream; in snd_pcm_control_ioctl()
129 substream = substream->next) in snd_pcm_control_ioctl()
130 if (substream->number == (int)subdevice) in snd_pcm_control_ioctl()
132 if (substream == NULL) in snd_pcm_control_ioctl()
135 return snd_pcm_info_user(substream, info); in snd_pcm_control_ioctl()
326 static void snd_pcm_proc_info_read(struct snd_pcm_substream *substream,
328 snd_pcm_proc_info_read(struct snd_pcm_substream * substream,struct snd_info_buffer * buffer) snd_pcm_proc_info_read() argument
375 struct snd_pcm_substream *substream = entry->private_data; snd_pcm_substream_proc_hw_params_read() local
410 struct snd_pcm_substream *substream = entry->private_data; snd_pcm_substream_proc_sw_params_read() local
436 struct snd_pcm_substream *substream = entry->private_data; snd_pcm_substream_proc_status_read() local
474 struct snd_pcm_substream *substream = entry->private_data; snd_pcm_xrun_injection_write() local
533 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
547 snd_pcm_substream_proc_init(struct snd_pcm_substream * substream) snd_pcm_substream_proc_init() argument
586 snd_pcm_substream_proc_init(struct snd_pcm_substream * substream) snd_pcm_substream_proc_init() argument
631 struct snd_pcm_substream *substream, *prev; snd_pcm_new_stream() local
816 struct snd_pcm_substream *substream, *substream_next; snd_pcm_free_stream() local
880 struct snd_pcm_substream *substream; snd_pcm_attach_substream() local
980 snd_pcm_detach_substream(struct snd_pcm_substream * substream) snd_pcm_detach_substream() argument
1047 struct snd_pcm_substream *substream; snd_pcm_dev_register() local
1090 struct snd_pcm_substream *substream; snd_pcm_dev_disconnect() local
[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->timer_running = 1; in snd_pcm_timer_start()
71 struct snd_pcm_substream *substream; in snd_pcm_timer_stop() 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
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_dmaengine.c30 const struct snd_pcm_substream *substream) in substream_to_prtd() argument
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()
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()
107 const struct snd_pcm_substream *substream, in snd_dmaengine_pcm_set_config_from_dai_data() argument
111 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) { in snd_dmaengine_pcm_set_config_from_dai_data()
139 struct snd_pcm_substream *substream = arg; in dmaengine_pcm_dma_complete() local
140 struct dmaengine_pcm_runtime_data *prtd = substream_to_prtd(substream); in dmaengine_pcm_dma_complete()
[all …]
H A Dpcm_compat.c12 static int snd_pcm_ioctl_delay_compat(struct snd_pcm_substream *substream, in snd_pcm_ioctl_delay_compat() argument
18 err = snd_pcm_delay(substream, &delay); in snd_pcm_ioctl_delay_compat()
26 static int snd_pcm_ioctl_rewind_compat(struct snd_pcm_substream *substream, in snd_pcm_ioctl_rewind_compat() argument
34 err = snd_pcm_rewind(substream, frames); in snd_pcm_ioctl_rewind_compat()
40 static int snd_pcm_ioctl_forward_compat(struct snd_pcm_substream *substream, in snd_pcm_ioctl_forward_compat() argument
48 err = snd_pcm_forward(substream, frames); in snd_pcm_ioctl_forward_compat()
86 static int snd_pcm_ioctl_sw_params_compat(struct snd_pcm_substream *substream, in snd_pcm_ioctl_sw_params_compat() argument
110 boundary = recalculate_boundary(substream->runtime); in snd_pcm_ioctl_sw_params_compat()
112 params.silence_size = substream->runtime->boundary; in snd_pcm_ioctl_sw_params_compat()
113 err = snd_pcm_sw_params(substream, in snd_pcm_ioctl_sw_params_compat()
128 snd_pcm_ioctl_channel_info_compat(struct snd_pcm_substream * substream,struct snd_pcm_channel_info32 __user * src) snd_pcm_ioctl_channel_info_compat() argument
181 snd_pcm_status_user_compat64(struct snd_pcm_substream * substream,struct compat_snd_pcm_status64 __user * src,bool ext) snd_pcm_status_user_compat64() argument
234 snd_pcm_ioctl_hw_params_compat(struct snd_pcm_substream * substream,int refine,struct snd_pcm_hw_params32 __user * data32) snd_pcm_ioctl_hw_params_compat() argument
285 snd_pcm_ioctl_xferi_compat(struct snd_pcm_substream * substream,int dir,struct snd_xferi32 __user * data32) snd_pcm_ioctl_xferi_compat() argument
329 snd_pcm_ioctl_xfern_compat(struct snd_pcm_substream * substream,int dir,struct snd_xfern32 __user * data32) snd_pcm_ioctl_xfern_compat() argument
405 snd_pcm_ioctl_sync_ptr_x32(struct snd_pcm_substream * substream,struct snd_pcm_sync_ptr_x32 __user * src) snd_pcm_ioctl_sync_ptr_x32() argument
479 snd_pcm_ioctl_sync_ptr_buggy(struct snd_pcm_substream * substream,struct snd_pcm_sync_ptr __user * _sync_ptr) snd_pcm_ioctl_sync_ptr_buggy() argument
554 struct snd_pcm_substream *substream; snd_pcm_ioctl_compat() local
[all...]
H A Dpcm_lib.c27 #define trace_hwptr(substream, pos, in_interrupt) argument
28 #define trace_xrun(substream) argument
29 #define trace_hw_ptr_error(substream, reason) argument
30 #define trace_applptr(substream, prev, curr) argument
33 static int fill_silence_frames(struct snd_pcm_substream *substream,
64 void snd_pcm_playback_silence(struct snd_pcm_substream *substream, snd_pcm_uframes_t new_hw_ptr) in snd_pcm_playback_silence() argument
66 struct snd_pcm_runtime *runtime = substream->runtime; in snd_pcm_playback_silence()
128 err = fill_silence_frames(substream, ofs, transfer); in snd_pcm_playback_silence()
134 snd_pcm_dma_buffer_sync(substream, SNDRV_DMA_SYNC_DEVICE); in snd_pcm_playback_silence()
138 void snd_pcm_debug_name(struct snd_pcm_substream *substream, in snd_pcm_debug_name() argument
156 xrun_debug(substream,mask) global() argument
159 xrun_debug(substream,mask) global() argument
162 dump_stack_on_xrun(substream) global() argument
168 __snd_pcm_xrun(struct snd_pcm_substream * substream) __snd_pcm_xrun() argument
193 hw_ptr_error(substream,in_interrupt,reason,fmt,args...) global() argument
205 hw_ptr_error(substream,fmt,args...) global() argument
209 snd_pcm_update_state(struct snd_pcm_substream * substream,struct snd_pcm_runtime * runtime) snd_pcm_update_state() argument
236 update_audio_tstamp(struct snd_pcm_substream * substream,struct timespec64 * curr_tstamp,struct timespec64 * audio_tstamp) update_audio_tstamp() argument
286 snd_pcm_update_hw_ptr0(struct snd_pcm_substream * substream,unsigned int in_interrupt) snd_pcm_update_hw_ptr0() argument
497 snd_pcm_update_hw_ptr(struct snd_pcm_substream * substream) snd_pcm_update_hw_ptr() argument
514 struct snd_pcm_substream *substream; snd_pcm_set_ops() local
544 snd_pcm_set_sync_per_card(struct snd_pcm_substream * substream,struct snd_pcm_hw_params * params,const unsigned char * id,unsigned int len) snd_pcm_set_sync_per_card() argument
1763 snd_pcm_lib_ioctl_reset(struct snd_pcm_substream * substream,void * arg) snd_pcm_lib_ioctl_reset() argument
1779 snd_pcm_lib_ioctl_channel_info(struct snd_pcm_substream * substream,void * arg) snd_pcm_lib_ioctl_channel_info() argument
1814 snd_pcm_lib_ioctl_fifo_size(struct snd_pcm_substream * substream,void * arg) snd_pcm_lib_ioctl_fifo_size() argument
1833 snd_pcm_lib_ioctl_sync_id(struct snd_pcm_substream * substream,void * arg) snd_pcm_lib_ioctl_sync_id() argument
1856 snd_pcm_lib_ioctl(struct snd_pcm_substream * substream,unsigned int cmd,void * arg) snd_pcm_lib_ioctl() argument
1900 snd_pcm_period_elapsed_under_stream_lock(struct snd_pcm_substream * substream) snd_pcm_period_elapsed_under_stream_lock() argument
1933 snd_pcm_period_elapsed(struct snd_pcm_substream * substream) snd_pcm_period_elapsed() argument
1949 wait_for_avail(struct snd_pcm_substream * substream,snd_pcm_uframes_t * availp) wait_for_avail() argument
2055 default_write_copy(struct snd_pcm_substream * substream,int channel,unsigned long hwoff,struct iov_iter * iter,unsigned long bytes) default_write_copy() argument
2069 fill_silence(struct snd_pcm_substream * substream,int channel,unsigned long hwoff,struct iov_iter * iter,unsigned long bytes) fill_silence() argument
2088 default_read_copy(struct snd_pcm_substream * substream,int channel,unsigned long hwoff,struct iov_iter * iter,unsigned long bytes) default_read_copy() argument
2099 do_transfer(struct snd_pcm_substream * substream,int c,unsigned long hwoff,void * data,unsigned long bytes,pcm_transfer_f transfer,bool in_kernel) do_transfer() argument
2127 interleaved_copy(struct snd_pcm_substream * substream,snd_pcm_uframes_t hwoff,void * data,snd_pcm_uframes_t off,snd_pcm_uframes_t frames,pcm_transfer_f transfer,bool in_kernel) interleaved_copy() argument
2151 noninterleaved_copy(struct snd_pcm_substream * substream,snd_pcm_uframes_t hwoff,void * data,snd_pcm_uframes_t off,snd_pcm_uframes_t frames,pcm_transfer_f transfer,bool in_kernel) noninterleaved_copy() argument
2185 fill_silence_frames(struct snd_pcm_substream * substream,snd_pcm_uframes_t off,snd_pcm_uframes_t frames) fill_silence_frames() argument
2198 pcm_sanity_check(struct snd_pcm_substream * substream) pcm_sanity_check() argument
2230 pcm_lib_apply_appl_ptr(struct snd_pcm_substream * substream,snd_pcm_uframes_t appl_ptr) pcm_lib_apply_appl_ptr() argument
2274 __snd_pcm_lib_xfer(struct snd_pcm_substream * substream,void * data,bool interleaved,snd_pcm_uframes_t size,bool in_kernel) __snd_pcm_lib_xfer() argument
2497 struct snd_pcm_substream *substream; pcm_chmap_ctl_get() local
[all...]
/linux/sound/soc/sof/
H A Dpcm.c32 snd_pcm_period_elapsed(sps->substream); in snd_sof_pcm_period_elapsed_work()
43 void snd_sof_pcm_period_elapsed(struct snd_pcm_substream *substream) in snd_sof_pcm_period_elapsed() argument
45 struct snd_soc_pcm_runtime *rtd = snd_soc_substream_to_rtd(substream); in snd_sof_pcm_period_elapsed()
65 queue_work(system_highpri_wq, &spcm->stream[substream->stream].period_elapsed_work); in snd_sof_pcm_period_elapsed()
117 struct snd_pcm_substream *substream, in sof_pcm_hw_params()
121 struct snd_soc_pcm_runtime *rtd = snd_soc_substream_to_rtd(substream); in sof_pcm_hw_params()
125 struct snd_pcm_runtime *runtime = substream->runtime; in sof_pcm_hw_params()
138 spcm_dbg(spcm, substream->stream, "Entry: hw_params\n"); in sof_pcm_hw_params()
154 if (spcm->prepared[substream->stream] && pcm_ops && pcm_ops->hw_free) { in sof_pcm_hw_params()
155 ret = pcm_ops->hw_free(component, substream, spc in sof_pcm_hw_params()
104 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
177 sof_pcm_stream_free(struct snd_sof_dev * sdev,struct snd_pcm_substream * substream,struct snd_sof_pcm * spcm,int dir,bool free_widget_list) sof_pcm_stream_free() argument
230 struct snd_pcm_substream *substream; sof_pcm_free_all_streams() local
255 sof_pcm_hw_free(struct snd_soc_component * component,struct snd_pcm_substream * substream) sof_pcm_hw_free() argument
280 sof_pcm_prepare(struct snd_soc_component * component,struct snd_pcm_substream * substream) sof_pcm_prepare() argument
327 sof_pcm_trigger(struct snd_soc_component * component,struct snd_pcm_substream * substream,int cmd) sof_pcm_trigger() argument
439 sof_pcm_pointer(struct snd_soc_component * component,struct snd_pcm_substream * substream) sof_pcm_pointer() argument
478 sof_pcm_open(struct snd_soc_component * component,struct snd_pcm_substream * substream) sof_pcm_open() argument
541 sof_pcm_close(struct snd_soc_component * component,struct snd_pcm_substream * substream) sof_pcm_close() argument
727 sof_pcm_ack(struct snd_soc_component * component,struct snd_pcm_substream * substream) sof_pcm_ack() argument
735 sof_pcm_delay(struct snd_soc_component * component,struct snd_pcm_substream * substream) sof_pcm_delay() argument
[all...]
/linux/sound/arm/
H A Dpxa2xx-pcm-lib.c
/linux/sound/soc/google/
H A Dchv3-i2s.c132 struct snd_pcm_substream *substream) in chv3_dma_open() argument
134 struct snd_soc_pcm_runtime *rtd = snd_soc_substream_to_rtd(substream); in chv3_dma_open()
138 snd_soc_set_runtime_hwparams(substream, &chv3_dma_hw); in chv3_dma_open()
140 res = snd_pcm_hw_constraint_pow2(substream->runtime, 0, in chv3_dma_open()
145 if (substream->stream == SNDRV_PCM_STREAM_CAPTURE) in chv3_dma_open()
146 i2s->rx_substream = substream; in chv3_dma_open()
148 i2s->tx_substream = substream; in chv3_dma_open()
153 struct snd_pcm_substream *substream) in chv3_dma_close() argument
155 struct snd_soc_pcm_runtime *rtd = snd_soc_substream_to_rtd(substream); in chv3_dma_close()
158 if (substream in chv3_dma_close()
170 struct snd_pcm_substream *substream; chv3_dma_pcm_construct() local
193 chv3_dma_hw_params(struct snd_soc_component * component,struct snd_pcm_substream * substream,struct snd_pcm_hw_params * params) chv3_dma_hw_params() argument
201 chv3_dma_prepare(struct snd_soc_component * component,struct snd_pcm_substream * substream) chv3_dma_prepare() argument
230 chv3_dma_pointer(struct snd_soc_component * component,struct snd_pcm_substream * substream) chv3_dma_pointer() argument
252 chv3_dma_ack(struct snd_soc_component * component,struct snd_pcm_substream * substream) chv3_dma_ack() argument
[all...]
/linux/sound/soc/bcm/
H A Dbcm63xx-pcm-whistler.c45 struct snd_pcm_substream *substream, in bcm63xx_pcm_hw_params() argument
49 struct snd_soc_pcm_runtime *rtd = snd_soc_substream_to_rtd(substream); in bcm63xx_pcm_hw_params()
55 snd_soc_dai_set_dma_data(snd_soc_rtd_to_cpu(rtd, 0), substream, dma_desc); in bcm63xx_pcm_hw_params()
61 struct snd_pcm_substream *substream) in bcm63xx_pcm_hw_free() argument
64 struct snd_soc_pcm_runtime *rtd = snd_soc_substream_to_rtd(substream); in bcm63xx_pcm_hw_free()
66 dma_desc = snd_soc_dai_get_dma_data(snd_soc_rtd_to_cpu(rtd, 0), substream); in bcm63xx_pcm_hw_free()
73 struct snd_pcm_substream *substream, int cmd) in bcm63xx_pcm_trigger() argument
80 rtd = snd_soc_substream_to_rtd(substream); in bcm63xx_pcm_trigger()
84 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) { in bcm63xx_pcm_trigger()
142 struct snd_pcm_substream *substream) in bcm63xx_pcm_prepare() argument
175 bcm63xx_pcm_pointer(struct snd_soc_component * component,struct snd_pcm_substream * substream) bcm63xx_pcm_pointer() argument
190 bcm63xx_pcm_open(struct snd_soc_component * component,struct snd_pcm_substream * substream) bcm63xx_pcm_open() argument
224 bcm63xx_pcm_close(struct snd_soc_component * component,struct snd_pcm_substream * substream) bcm63xx_pcm_close() argument
237 struct snd_pcm_substream *substream; i2s_dma_isr() local
[all...]
/linux/sound/core/oss/
H A Dpcm_oss.c533 static int snd_pcm_oss_plugin_clear(struct snd_pcm_substream *substream) in snd_pcm_oss_plugin_clear() argument
535 struct snd_pcm_runtime *runtime = substream->runtime; in snd_pcm_oss_plugin_clear()
579 static long snd_pcm_oss_bytes(struct snd_pcm_substream *substream, long frames) in snd_pcm_oss_bytes() argument
581 struct snd_pcm_runtime *runtime = substream->runtime; in snd_pcm_oss_bytes()
582 long buffer_size = snd_pcm_lib_buffer_bytes(substream); in snd_pcm_oss_bytes()
596 static long snd_pcm_alsa_frames(struct snd_pcm_substream *substream, long bytes) in snd_pcm_alsa_frames() argument
598 struct snd_pcm_runtime *runtime = substream->runtime; in snd_pcm_alsa_frames()
599 long buffer_size = snd_pcm_lib_buffer_bytes(substream); in snd_pcm_alsa_frames()
675 static int snd_pcm_oss_period_size(struct snd_pcm_substream *substream, in snd_pcm_oss_period_size() argument
683 struct snd_pcm_runtime *runtime = substream in snd_pcm_oss_period_size()
782 choose_rate(struct snd_pcm_substream * substream,struct snd_pcm_hw_params * params,unsigned int best_rate) choose_rate() argument
836 snd_pcm_oss_release_buffers(struct snd_pcm_substream * substream) snd_pcm_oss_release_buffers() argument
848 snd_pcm_oss_change_params_locked(struct snd_pcm_substream * substream) snd_pcm_oss_change_params_locked() argument
1096 snd_pcm_oss_change_params(struct snd_pcm_substream * substream,bool trylock) snd_pcm_oss_change_params() argument
1116 struct snd_pcm_substream *asubstream = NULL, *substream; snd_pcm_oss_get_active_substream() local
1141 snd_pcm_oss_prepare(struct snd_pcm_substream * substream) snd_pcm_oss_prepare() argument
1160 snd_pcm_oss_make_ready(struct snd_pcm_substream * substream) snd_pcm_oss_make_ready() argument
1183 snd_pcm_oss_make_ready_locked(struct snd_pcm_substream * substream) snd_pcm_oss_make_ready_locked() argument
1202 snd_pcm_oss_capture_position_fixup(struct snd_pcm_substream * substream,snd_pcm_sframes_t * delay) snd_pcm_oss_capture_position_fixup() argument
1227 snd_pcm_oss_write3(struct snd_pcm_substream * substream,const char * ptr,snd_pcm_uframes_t frames,int in_kernel) snd_pcm_oss_write3() argument
1260 snd_pcm_oss_read3(struct snd_pcm_substream * substream,char * ptr,snd_pcm_uframes_t frames,int in_kernel) snd_pcm_oss_read3() argument
1306 snd_pcm_oss_writev3(struct snd_pcm_substream * substream,void ** bufs,snd_pcm_uframes_t frames) snd_pcm_oss_writev3() argument
1336 snd_pcm_oss_readv3(struct snd_pcm_substream * substream,void ** bufs,snd_pcm_uframes_t frames) snd_pcm_oss_readv3() argument
1366 snd_pcm_oss_write2(struct snd_pcm_substream * substream,const char * buf,size_t bytes,int in_kernel) snd_pcm_oss_write2() argument
1399 snd_pcm_oss_write1(struct snd_pcm_substream * substream,const char __user * buf,size_t bytes) snd_pcm_oss_write1() argument
1476 snd_pcm_oss_read2(struct snd_pcm_substream * substream,char * buf,size_t bytes,int in_kernel) snd_pcm_oss_read2() argument
1509 snd_pcm_oss_read1(struct snd_pcm_substream * substream,char __user * buf,size_t bytes) snd_pcm_oss_read1() argument
1573 struct snd_pcm_substream *substream; snd_pcm_oss_reset() local
1595 struct snd_pcm_substream *substream; snd_pcm_oss_post() local
1610 snd_pcm_oss_sync1(struct snd_pcm_substream * substream,size_t size) snd_pcm_oss_sync1() argument
1661 struct snd_pcm_substream *substream; snd_pcm_oss_sync() local
1759 struct snd_pcm_substream *substream = pcm_oss_file->streams[idx]; snd_pcm_oss_set_rate() local
1784 struct snd_pcm_substream *substream; snd_pcm_oss_get_rate() local
1801 struct snd_pcm_substream *substream = pcm_oss_file->streams[idx]; snd_pcm_oss_set_channels() local
1822 struct snd_pcm_substream *substream; snd_pcm_oss_get_channels() local
1833 struct snd_pcm_substream *substream; snd_pcm_oss_get_block_size() local
1844 struct snd_pcm_substream *substream; snd_pcm_oss_get_formats() local
1899 struct snd_pcm_substream *substream = pcm_oss_file->streams[idx]; snd_pcm_oss_set_format() local
1919 struct snd_pcm_substream *substream; snd_pcm_oss_get_format() local
1928 snd_pcm_oss_set_subdivide1(struct snd_pcm_substream * substream,int subdivide) snd_pcm_oss_set_subdivide1() argument
1954 struct snd_pcm_substream *substream = pcm_oss_file->streams[idx]; snd_pcm_oss_set_subdivide() local
1971 snd_pcm_oss_set_fragment1(struct snd_pcm_substream * substream,unsigned int val) snd_pcm_oss_set_fragment1() argument
1997 struct snd_pcm_substream *substream = pcm_oss_file->streams[idx]; snd_pcm_oss_set_fragment() local
2021 snd_pcm_oss_get_caps1(struct snd_pcm_substream * substream,int res) snd_pcm_oss_get_caps1() argument
2051 struct snd_pcm_substream *substream = pcm_oss_file->streams[idx]; snd_pcm_oss_get_caps() local
2058 snd_pcm_oss_simulate_fill(struct snd_pcm_substream * substream,snd_pcm_uframes_t hw_ptr) snd_pcm_oss_simulate_fill() argument
2173 struct snd_pcm_substream *substream; snd_pcm_oss_get_odelay() local
2197 struct snd_pcm_substream *substream; snd_pcm_oss_get_ptr() local
2267 struct snd_pcm_substream *substream; snd_pcm_oss_get_space() local
2364 snd_pcm_oss_release_substream(struct snd_pcm_substream * substream) snd_pcm_oss_release_substream() argument
2370 snd_pcm_oss_init_substream(struct snd_pcm_substream * substream,struct snd_pcm_oss_setup * setup,int minor) snd_pcm_oss_init_substream() argument
2411 struct snd_pcm_substream *substream = pcm_oss_file->streams[cidx]; snd_pcm_oss_release_file() local
2427 struct snd_pcm_substream *substream; snd_pcm_oss_open_file() local
2579 struct snd_pcm_substream *substream; snd_pcm_oss_release() local
2613 struct snd_pcm_substream *substream; snd_pcm_oss_ioctl() local
2780 struct snd_pcm_substream *substream; snd_pcm_oss_read() local
2803 struct snd_pcm_substream *substream; snd_pcm_oss_write() local
2819 snd_pcm_oss_playback_ready(struct snd_pcm_substream * substream) snd_pcm_oss_playback_ready() argument
2830 snd_pcm_oss_capture_ready(struct snd_pcm_substream * substream) snd_pcm_oss_capture_ready() argument
2899 struct snd_pcm_substream *substream = NULL; snd_pcm_oss_mmap() local
[all...]
/linux/sound/pci/ctxfi/
H A Dctpcm.c97 if (!apcm->substream) in ct_atc_pcm_interrupt()
100 snd_pcm_period_elapsed(apcm->substream); in ct_atc_pcm_interrupt()
106 struct ct_atc *atc = snd_pcm_substream_chip(apcm->substream); in ct_atc_pcm_free_substream()
115 static int ct_pcm_playback_open(struct snd_pcm_substream *substream) in ct_pcm_playback_open() argument
117 struct ct_atc *atc = snd_pcm_substream_chip(substream); in ct_pcm_playback_open()
118 struct snd_pcm_runtime *runtime = substream->runtime; in ct_pcm_playback_open()
126 apcm->substream = substream; in ct_pcm_playback_open()
128 if (IEC958 == substream->pcm->device) { in ct_pcm_playback_open()
133 if (FRONT == substream->pcm->device) in ct_pcm_playback_open()
163 static int ct_pcm_playback_close(struct snd_pcm_substream *substream) in ct_pcm_playback_close() argument
[all …]
/linux/sound/pci/au88x0/
H A Dau88x0_pcm.c126 static int snd_vortex_pcm_open(struct snd_pcm_substream *substream) in snd_vortex_pcm_open() argument
128 vortex_t *vortex = snd_pcm_substream_chip(substream); in snd_vortex_pcm_open()
129 struct snd_pcm_runtime *runtime = substream->runtime; in snd_vortex_pcm_open()
146 if (VORTEX_PCM_TYPE(substream->pcm) != VORTEX_PCM_WT) { in snd_vortex_pcm_open()
148 if (VORTEX_PCM_TYPE(substream->pcm) == VORTEX_PCM_A3D) { in snd_vortex_pcm_open()
152 if (VORTEX_PCM_TYPE(substream->pcm) == VORTEX_PCM_SPDIF) { in snd_vortex_pcm_open()
166 if (VORTEX_PCM_TYPE(substream->pcm) == VORTEX_PCM_ADB in snd_vortex_pcm_open()
167 || VORTEX_PCM_TYPE(substream->pcm) == VORTEX_PCM_I2S) in snd_vortex_pcm_open()
170 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK && in snd_vortex_pcm_open()
172 VORTEX_PCM_TYPE(substream->pcm) == VORTEX_PCM_ADB) { in snd_vortex_pcm_open()
[all …]
/linux/sound/soc/fsl/
H A Dimx-pcm-rpmsg.c101 static int imx_rpmsg_insert_workqueue(struct snd_pcm_substream *substream, in imx_rpmsg_pcm_send_message()
122 info->msg_drop_count[substream->stream]++; in imx_rpmsg_insert_workqueue()
130 struct snd_pcm_substream *substream, in imx_rpmsg_insert_workqueue()
136 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) { in imx_rpmsg_insert_workqueue()
182 struct snd_pcm_substream *substream) in imx_rpmsg_pcm_hw_params()
192 struct snd_pcm_substream *substream) in imx_rpmsg_pcm_pointer()
199 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) in imx_rpmsg_pcm_pointer()
205 pos = buffer_tail * snd_pcm_lib_period_bytes(substream); in imx_rpmsg_pcm_pointer()
207 return bytes_to_frames(substream->runtime, pos); in imx_rpmsg_pcm_pointer()
214 struct snd_pcm_substream *substream in imx_rpmsg_timer_callback()
108 imx_rpmsg_insert_workqueue(struct snd_pcm_substream * substream,struct rpmsg_msg * msg,struct rpmsg_info * info) imx_rpmsg_insert_workqueue() argument
139 imx_rpmsg_pcm_hw_params(struct snd_soc_component * component,struct snd_pcm_substream * substream,struct snd_pcm_hw_params * params) imx_rpmsg_pcm_hw_params() argument
191 imx_rpmsg_pcm_pointer(struct snd_soc_component * component,struct snd_pcm_substream * substream) imx_rpmsg_pcm_pointer() argument
213 struct snd_pcm_substream *substream = stream_timer->substream; imx_rpmsg_timer_callback() local
229 imx_rpmsg_pcm_open(struct snd_soc_component * component,struct snd_pcm_substream * substream) imx_rpmsg_pcm_open() argument
285 imx_rpmsg_pcm_close(struct snd_soc_component * component,struct snd_pcm_substream * substream) imx_rpmsg_pcm_close() argument
316 imx_rpmsg_pcm_prepare(struct snd_soc_component * component,struct snd_pcm_substream * substream) imx_rpmsg_pcm_prepare() argument
345 struct snd_pcm_substream *substream = arg; imx_rpmsg_pcm_dma_complete() local
351 imx_rpmsg_prepare_and_submit(struct snd_soc_component * component,struct snd_pcm_substream * substream) imx_rpmsg_prepare_and_submit() argument
380 imx_rpmsg_async_issue_pending(struct snd_soc_component * component,struct snd_pcm_substream * substream) imx_rpmsg_async_issue_pending() argument
397 imx_rpmsg_restart(struct snd_soc_component * component,struct snd_pcm_substream * substream) imx_rpmsg_restart() argument
414 imx_rpmsg_pause(struct snd_soc_component * component,struct snd_pcm_substream * substream) imx_rpmsg_pause() argument
431 imx_rpmsg_terminate_all(struct snd_soc_component * component,struct snd_pcm_substream * substream) imx_rpmsg_terminate_all() argument
461 imx_rpmsg_pcm_trigger(struct snd_soc_component * component,struct snd_pcm_substream * substream,int cmd) imx_rpmsg_pcm_trigger() argument
515 imx_rpmsg_pcm_ack(struct snd_soc_component * component,struct snd_pcm_substream * substream) imx_rpmsg_pcm_ack() argument
600 struct snd_pcm_substream *substream; imx_rpmsg_pcm_new() local
[all...]
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() argument
76 struct snd_pcm_runtime *runtime = substream->runtime; in snd_imx_pcm_hw_params()
89 struct snd_pcm_substream *substream) in snd_imx_pcm_prepare() argument
91 struct snd_pcm_runtime *runtime = substream->runtime; in snd_imx_pcm_prepare()
96 if (substream in snd_imx_pcm_prepare()
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
202 snd_imx_close(struct snd_soc_component * component,struct snd_pcm_substream * substream) snd_imx_close() argument
235 struct snd_pcm_substream *substream; snd_imx_pcm_new() local
[all...]
/linux/sound/drivers/pcsp/
H A Dpcsp_lib.c33 struct snd_pcm_substream *substream; in pcsp_call_pcm_elapsed() local
34 substream = pcsp_chip.playback_substream; in pcsp_call_pcm_elapsed()
35 if (substream) in pcsp_call_pcm_elapsed()
36 snd_pcm_period_elapsed(substream); in pcsp_call_pcm_elapsed()
49 struct snd_pcm_substream *substream; in pcsp_timer_update() local
59 substream = chip->playback_substream; in pcsp_timer_update()
60 if (!substream) in pcsp_timer_update()
63 runtime = substream->runtime; in pcsp_timer_update()
91 struct snd_pcm_substream *substream; in pcsp_pointer_update() local
97 substream = chip->playback_substream; in pcsp_pointer_update()
[all …]
/linux/drivers/staging/vc04_services/bcm2835-audio/
H A Dbcm2835-pcm.c55 struct snd_pcm_substream *substream = alsa_stream->substream; in bcm2835_playback_fifo() local
62 snd_pcm_stream_lock(substream); in bcm2835_playback_fifo()
63 snd_pcm_stop(substream, in bcm2835_playback_fifo()
67 snd_pcm_stream_unlock(substream); in bcm2835_playback_fifo()
80 snd_pcm_period_elapsed(substream); in bcm2835_playback_fifo()
85 static int snd_bcm2835_playback_open_generic(struct snd_pcm_substream *substream, int spdif) in snd_bcm2835_playback_open_generic() argument
87 struct bcm2835_chip *chip = snd_pcm_substream_chip(substream); in snd_bcm2835_playback_open_generic()
88 struct snd_pcm_runtime *runtime = substream->runtime; in snd_bcm2835_playback_open_generic()
94 idx = substream->number; in snd_bcm2835_playback_open_generic()
119 alsa_stream->substream = substream; in snd_bcm2835_playback_open_generic()
[all …]
/linux/sound/soc/
H A Dsoc-generic-dmaengine-pcm.c30 struct snd_pcm_substream *substream) in dmaengine_dma_dev() argument
32 if (!pcm->chan[substream->stream]) in dmaengine_dma_dev()
35 return dmaengine_get_dma_device(pcm->chan[substream->stream]); in dmaengine_dma_dev()
40 * @substream: PCM substream
51 int snd_dmaengine_pcm_prepare_slave_config(struct snd_pcm_substream *substream, in snd_dmaengine_pcm_prepare_slave_config() argument
54 struct snd_soc_pcm_runtime *rtd = snd_soc_substream_to_rtd(substream); in snd_dmaengine_pcm_prepare_slave_config()
64 dma_data = snd_soc_dai_get_dma_data(snd_soc_rtd_to_cpu(rtd, 0), substream); in snd_dmaengine_pcm_prepare_slave_config()
66 ret = snd_hwparams_to_dma_slave_config(substream, params, slave_config); in snd_dmaengine_pcm_prepare_slave_config()
70 snd_dmaengine_pcm_set_config_from_dai_data(substream, dma_dat in snd_dmaengine_pcm_prepare_slave_config()
78 dmaengine_pcm_hw_params(struct snd_soc_component * component,struct snd_pcm_substream * substream,struct snd_pcm_hw_params * params) dmaengine_pcm_hw_params() argument
100 dmaengine_pcm_set_runtime_hwparams(struct snd_soc_component * component,struct snd_pcm_substream * substream) dmaengine_pcm_set_runtime_hwparams() argument
150 dmaengine_pcm_open(struct snd_soc_component * component,struct snd_pcm_substream * substream) dmaengine_pcm_open() argument
164 dmaengine_pcm_close(struct snd_soc_component * component,struct snd_pcm_substream * substream) dmaengine_pcm_close() argument
170 dmaengine_pcm_trigger(struct snd_soc_component * component,struct snd_pcm_substream * substream,int cmd) dmaengine_pcm_trigger() argument
178 dmaengine_pcm_compat_request_channel(struct snd_soc_component * component,struct snd_soc_pcm_runtime * rtd,struct snd_pcm_substream * substream) dmaengine_pcm_compat_request_channel() argument
241 struct snd_pcm_substream *substream = rtd->pcm->streams[i].substream; dmaengine_pcm_new() local
281 dmaengine_pcm_pointer(struct snd_soc_component * component,struct snd_pcm_substream * substream) dmaengine_pcm_pointer() argument
292 dmaengine_copy(struct snd_soc_component * component,struct snd_pcm_substream * substream,int channel,unsigned long hwoff,struct iov_iter * iter,unsigned long bytes) dmaengine_copy() argument
323 dmaengine_pcm_sync_stop(struct snd_soc_component * component,struct snd_pcm_substream * substream) dmaengine_pcm_sync_stop() argument
[all...]
/linux/sound/soc/sof/intel/
H A Dhda-pcm.c102 struct snd_pcm_substream *substream, in hda_dsp_pcm_hw_params() argument
106 struct hdac_stream *hstream = substream->runtime->private_data; in hda_dsp_pcm_hw_params()
112 hstream->substream = substream; in hda_dsp_pcm_hw_params()
114 dmab = substream->runtime->dma_buffer_p; in hda_dsp_pcm_hw_params()
220 int hda_dsp_pcm_ack(struct snd_sof_dev *sdev, struct snd_pcm_substream *substream) in hda_dsp_pcm_open() argument
222 struct hdac_stream *hstream = substream->runtime->private_data; in hda_dsp_pcm_open()
223 struct snd_pcm_runtime *runtime = substream->runtime; in hda_dsp_pcm_open()
243 struct snd_pcm_substream *substream, int cmd) in hda_dsp_pcm_open()
245 struct hdac_stream *hstream = substream in hda_dsp_pcm_open()
155 hda_dsp_pcm_ack(struct snd_sof_dev * sdev,struct snd_pcm_substream * substream) hda_dsp_pcm_ack() argument
178 hda_dsp_pcm_trigger(struct snd_sof_dev * sdev,struct snd_pcm_substream * substream,int cmd) hda_dsp_pcm_trigger() argument
188 hda_dsp_pcm_pointer(struct snd_sof_dev * sdev,struct snd_pcm_substream * substream) hda_dsp_pcm_pointer() argument
346 hda_dsp_pcm_close(struct snd_sof_dev * sdev,struct snd_pcm_substream * substream) hda_dsp_pcm_close() argument
[all...]
/linux/sound/soc/samsung/
H A Didma.c64 static int idma_enqueue(struct snd_pcm_substream *substream) in idma_enqueue() argument
66 struct snd_pcm_runtime *runtime = substream->runtime; in idma_enqueue()
67 struct idma_ctrl *prtd = substream->runtime->private_data; in idma_enqueue()
71 prtd->token = (void *) substream; in idma_enqueue()
98 static void idma_setcallbk(struct snd_pcm_substream *substream,
101 struct idma_ctrl *prtd = substream->runtime->private_data; in idma_setcallbk()
129 struct snd_pcm_substream *substream = id; in idma_control()
130 struct idma_ctrl *prtd = substream->runtime->private_data;
133 snd_pcm_period_elapsed(substream); in idma_done() local
137 struct snd_pcm_substream *substream, in idma_done()
99 idma_setcallbk(struct snd_pcm_substream * substream,void (* cb)(void *,int)) idma_setcallbk() argument
141 idma_hw_params(struct snd_soc_component * component,struct snd_pcm_substream * substream,struct snd_pcm_hw_params * params) idma_hw_params() argument
168 idma_hw_free(struct snd_soc_component * component,struct snd_pcm_substream * substream) idma_hw_free() argument
176 idma_prepare(struct snd_soc_component * component,struct snd_pcm_substream * substream) idma_prepare() argument
190 idma_trigger(struct snd_soc_component * component,struct snd_pcm_substream * substream,int cmd) idma_trigger() argument
224 idma_pointer(struct snd_soc_component * component,struct snd_pcm_substream * substream) idma_pointer() argument
242 idma_mmap(struct snd_soc_component * component,struct snd_pcm_substream * substream,struct vm_area_struct * vma) idma_mmap() argument
285 idma_open(struct snd_soc_component * component,struct snd_pcm_substream * substream) idma_open() argument
312 idma_close(struct snd_soc_component * component,struct snd_pcm_substream * substream) idma_close() argument
330 struct snd_pcm_substream *substream; idma_free() local
349 struct snd_pcm_substream *substream = pcm->streams[stream].substream; preallocate_idma_buffer() local
[all...]
/linux/sound/pci/emu10k1/
H A Demupcm.c28 if (epcm->substream == NULL) in snd_emu10k1_pcm_interrupt()
33 epcm->substream->runtime->hw->pointer(emu, epcm->substream), in snd_emu10k1_pcm_interrupt()
34 snd_pcm_lib_period_bytes(epcm->substream), in snd_emu10k1_pcm_interrupt()
35 snd_pcm_lib_buffer_bytes(epcm->substream)); in snd_emu10k1_pcm_interrupt()
37 snd_pcm_period_elapsed(epcm->substream); in snd_emu10k1_pcm_interrupt()
348 static int snd_emu10k1_playback_hw_params(struct snd_pcm_substream *substream, in snd_emu10k1_playback_hw_params() argument
351 struct snd_emu10k1 *emu = snd_pcm_substream_chip(substream); in snd_emu10k1_playback_hw_params()
352 struct snd_pcm_runtime *runtime = substream->runtime; in snd_emu10k1_playback_hw_params()
374 err = snd_pcm_lib_malloc_pages(substream, alloc_size); in snd_emu10k1_playback_hw_params()
383 epcm->memblk = snd_emu10k1_alloc_pages(emu, substream); in snd_emu10k1_playback_hw_params()
[all …]

12345678910>>...27