| /linux/sound/core/ |
| H A D | pcm_memory.c | 98 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 D | pcm_native.c | 37 #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_timer_notify(struct snd_pcm_substream * substream,int event) snd_pcm_timer_notify() argument 658 snd_pcm_sync_stop(struct snd_pcm_substream * substream,bool sync_irq) snd_pcm_sync_stop() argument 768 is_oss_stream(substream) global() argument 770 is_oss_stream(substream) global() argument 773 snd_pcm_hw_params(struct snd_pcm_substream * substream,struct snd_pcm_hw_params * params) snd_pcm_hw_params() argument 908 snd_pcm_hw_params_user(struct snd_pcm_substream * substream,struct snd_pcm_hw_params __user * _params) snd_pcm_hw_params_user() argument 927 do_hw_free(struct snd_pcm_substream * substream) do_hw_free() argument 939 snd_pcm_hw_free(struct snd_pcm_substream * substream) snd_pcm_hw_free() argument 972 snd_pcm_sw_params(struct snd_pcm_substream * substream,struct snd_pcm_sw_params * params) snd_pcm_sw_params() argument 1025 snd_pcm_sw_params_user(struct snd_pcm_substream * substream,struct snd_pcm_sw_params __user * _params) snd_pcm_sw_params_user() argument 1039 snd_pcm_calc_delay(struct snd_pcm_substream * substream) snd_pcm_calc_delay() argument 1050 snd_pcm_status64(struct snd_pcm_substream * substream,struct snd_pcm_status64 * status) snd_pcm_status64() argument 1124 snd_pcm_status_user64(struct snd_pcm_substream * substream,struct snd_pcm_status64 __user * _status,bool ext) snd_pcm_status_user64() argument 1148 snd_pcm_status_user32(struct snd_pcm_substream * substream,struct snd_pcm_status32 __user * _status,bool ext) snd_pcm_status_user32() argument 1197 snd_pcm_channel_info(struct snd_pcm_substream * substream,struct snd_pcm_channel_info * info) snd_pcm_channel_info() argument 1216 snd_pcm_channel_info_user(struct snd_pcm_substream * substream,struct snd_pcm_channel_info __user * _info) snd_pcm_channel_info_user() argument 1232 snd_pcm_trigger_tstamp(struct snd_pcm_substream * substream) snd_pcm_trigger_tstamp() argument 1266 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 1326 snd_pcm_action_single(const struct action_ops * ops,struct snd_pcm_substream * substream,snd_pcm_state_t state) snd_pcm_action_single() argument 1342 snd_pcm_group_assign(struct snd_pcm_substream * substream,struct snd_pcm_group * new_group) snd_pcm_group_assign() argument 1354 snd_pcm_group_unref(struct snd_pcm_group * group,struct snd_pcm_substream * substream) snd_pcm_group_unref() argument 1371 snd_pcm_stream_group_ref(struct snd_pcm_substream * substream) snd_pcm_stream_group_ref() argument 1407 snd_pcm_action(const struct action_ops * ops,struct snd_pcm_substream * substream,snd_pcm_state_t state) snd_pcm_action() argument 1426 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 1436 snd_pcm_action_nonatomic(const struct action_ops * ops,struct snd_pcm_substream * substream,snd_pcm_state_t state) snd_pcm_action_nonatomic() argument 1457 snd_pcm_pre_start(struct snd_pcm_substream * substream,snd_pcm_state_t state) snd_pcm_pre_start() argument 1471 snd_pcm_do_start(struct snd_pcm_substream * substream,snd_pcm_state_t state) snd_pcm_do_start() argument 1485 snd_pcm_undo_start(struct snd_pcm_substream * substream,snd_pcm_state_t state) snd_pcm_undo_start() argument 1494 snd_pcm_post_start(struct snd_pcm_substream * substream,snd_pcm_state_t state) snd_pcm_post_start() argument 1523 snd_pcm_start(struct snd_pcm_substream * substream) snd_pcm_start() argument 1530 snd_pcm_start_lock_irq(struct snd_pcm_substream * substream) snd_pcm_start_lock_irq() argument 1539 snd_pcm_pre_stop(struct snd_pcm_substream * substream,snd_pcm_state_t state) snd_pcm_pre_stop() argument 1549 snd_pcm_do_stop(struct snd_pcm_substream * substream,snd_pcm_state_t state) snd_pcm_do_stop() argument 1560 snd_pcm_post_stop(struct snd_pcm_substream * substream,snd_pcm_state_t state) snd_pcm_post_stop() argument 1588 snd_pcm_stop(struct snd_pcm_substream * substream,snd_pcm_state_t state) snd_pcm_stop() argument 1603 snd_pcm_drain_done(struct snd_pcm_substream * substream) snd_pcm_drain_done() argument 1618 snd_pcm_stop_xrun(struct snd_pcm_substream * substream) snd_pcm_stop_xrun() argument 1632 snd_pcm_pre_pause(struct snd_pcm_substream * substream,snd_pcm_state_t state) snd_pcm_pre_pause() argument 1647 snd_pcm_do_pause(struct snd_pcm_substream * substream,snd_pcm_state_t state) snd_pcm_do_pause() argument 1663 snd_pcm_undo_pause(struct snd_pcm_substream * substream,snd_pcm_state_t state) snd_pcm_undo_pause() argument 1673 snd_pcm_post_pause(struct snd_pcm_substream * substream,snd_pcm_state_t state) snd_pcm_post_pause() argument 1699 snd_pcm_pause(struct snd_pcm_substream * substream,bool push) snd_pcm_pause() argument 1705 snd_pcm_pause_lock_irq(struct snd_pcm_substream * substream,bool push) snd_pcm_pause_lock_irq() argument 1715 snd_pcm_pre_suspend(struct snd_pcm_substream * substream,snd_pcm_state_t state) snd_pcm_pre_suspend() argument 1732 snd_pcm_do_suspend(struct snd_pcm_substream * substream,snd_pcm_state_t state) snd_pcm_do_suspend() argument 1745 snd_pcm_post_suspend(struct snd_pcm_substream * substream,snd_pcm_state_t state) snd_pcm_post_suspend() argument 1772 snd_pcm_suspend(struct snd_pcm_substream * substream) snd_pcm_suspend() argument 1792 struct snd_pcm_substream *substream; snd_pcm_suspend_all() local 1825 snd_pcm_pre_resume(struct snd_pcm_substream * substream,snd_pcm_state_t state) snd_pcm_pre_resume() argument 1837 snd_pcm_do_resume(struct snd_pcm_substream * substream,snd_pcm_state_t state) snd_pcm_do_resume() argument 1851 snd_pcm_undo_resume(struct snd_pcm_substream * substream,snd_pcm_state_t state) snd_pcm_undo_resume() argument 1859 snd_pcm_post_resume(struct snd_pcm_substream * substream,snd_pcm_state_t state) snd_pcm_post_resume() argument 1875 snd_pcm_resume(struct snd_pcm_substream * substream) snd_pcm_resume() argument 1883 snd_pcm_resume(struct snd_pcm_substream * substream) snd_pcm_resume() argument 1895 snd_pcm_xrun(struct snd_pcm_substream * substream) snd_pcm_xrun() argument 1915 snd_pcm_pre_reset(struct snd_pcm_substream * substream,snd_pcm_state_t state) snd_pcm_pre_reset() argument 1930 snd_pcm_do_reset(struct snd_pcm_substream * substream,snd_pcm_state_t state) snd_pcm_do_reset() argument 1946 snd_pcm_post_reset(struct snd_pcm_substream * substream,snd_pcm_state_t state) snd_pcm_post_reset() argument 1963 snd_pcm_reset(struct snd_pcm_substream * substream) snd_pcm_reset() argument 1973 snd_pcm_pre_prepare(struct snd_pcm_substream * substream,snd_pcm_state_t state) snd_pcm_pre_prepare() argument 1988 snd_pcm_do_prepare(struct snd_pcm_substream * substream,snd_pcm_state_t state) snd_pcm_do_prepare() argument 1999 snd_pcm_post_prepare(struct snd_pcm_substream * substream,snd_pcm_state_t state) snd_pcm_post_prepare() argument 2020 snd_pcm_prepare(struct snd_pcm_substream * substream,struct file * file) snd_pcm_prepare() argument 2051 snd_pcm_pre_drain_init(struct snd_pcm_substream * substream,snd_pcm_state_t state) snd_pcm_pre_drain_init() argument 2065 snd_pcm_do_drain_init(struct snd_pcm_substream * substream,snd_pcm_state_t state) snd_pcm_do_drain_init() argument 2110 snd_pcm_post_drain_init(struct snd_pcm_substream * substream,snd_pcm_state_t state) snd_pcm_post_drain_init() argument 2128 snd_pcm_drain(struct snd_pcm_substream * substream,struct file * file) snd_pcm_drain() argument 2255 snd_pcm_drop(struct snd_pcm_substream * substream) snd_pcm_drop() argument 2301 snd_pcm_link(struct snd_pcm_substream * substream,int fd) snd_pcm_link() argument 2351 relink_to_local(struct snd_pcm_substream * substream) relink_to_local() argument 2358 snd_pcm_unlink(struct snd_pcm_substream * substream) snd_pcm_unlink() argument 2509 struct snd_pcm_substream *substream = rule->private; snd_pcm_hw_rule_buffer_bytes_max() local 2553 snd_pcm_hw_constraints_init(struct snd_pcm_substream * substream) snd_pcm_hw_constraints_init() argument 2677 snd_pcm_hw_constraints_complete(struct snd_pcm_substream * substream) snd_pcm_hw_constraints_complete() argument 2760 pcm_release_private(struct snd_pcm_substream * substream) pcm_release_private() argument 2766 snd_pcm_release_substream(struct snd_pcm_substream * substream) snd_pcm_release_substream() argument 2793 struct snd_pcm_substream *substream; snd_pcm_open_substream() local 2843 struct snd_pcm_substream *substream; snd_pcm_open_file() local 2951 struct snd_pcm_substream *substream; snd_pcm_release() local 2976 do_pcm_hwsync(struct snd_pcm_substream * substream) do_pcm_hwsync() argument 2998 forward_appl_ptr(struct snd_pcm_substream * substream,snd_pcm_uframes_t frames,snd_pcm_sframes_t avail) forward_appl_ptr() argument 3018 rewind_appl_ptr(struct snd_pcm_substream * substream,snd_pcm_uframes_t frames,snd_pcm_sframes_t avail) rewind_appl_ptr() argument 3042 snd_pcm_rewind(struct snd_pcm_substream * substream,snd_pcm_uframes_t frames) snd_pcm_rewind() argument 3061 snd_pcm_forward(struct snd_pcm_substream * substream,snd_pcm_uframes_t frames) snd_pcm_forward() argument 3080 snd_pcm_delay(struct snd_pcm_substream * substream,snd_pcm_sframes_t * delay) snd_pcm_delay() argument 3095 snd_pcm_hwsync(struct snd_pcm_substream * substream) snd_pcm_hwsync() argument 3140 snd_pcm_sync_ptr(struct snd_pcm_substream * substream,struct snd_pcm_sync_ptr __user * _sync_ptr) snd_pcm_sync_ptr() argument 3234 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 3289 snd_pcm_tstamp(struct snd_pcm_substream * substream,int __user * _arg) snd_pcm_tstamp() argument 3302 snd_pcm_xferi_frames_ioctl(struct snd_pcm_substream * substream,struct snd_xferi __user * _xferi) snd_pcm_xferi_frames_ioctl() argument 3324 snd_pcm_xfern_frames_ioctl(struct snd_pcm_substream * substream,struct snd_xfern __user * _xfern) snd_pcm_xfern_frames_ioctl() argument 3353 snd_pcm_rewind_ioctl(struct snd_pcm_substream * substream,snd_pcm_uframes_t __user * _frames) snd_pcm_rewind_ioctl() argument 3369 snd_pcm_forward_ioctl(struct snd_pcm_substream * substream,snd_pcm_uframes_t __user * _frames) snd_pcm_forward_ioctl() argument 3386 snd_pcm_common_ioctl(struct file * file,struct snd_pcm_substream * substream,unsigned int cmd,void __user * arg) snd_pcm_common_ioctl() argument 3520 snd_pcm_kernel_ioctl(struct snd_pcm_substream * substream,unsigned int cmd,void * arg) snd_pcm_kernel_ioctl() argument 3562 struct snd_pcm_substream *substream; snd_pcm_read() local 3587 struct snd_pcm_substream *substream; snd_pcm_write() local 3611 struct snd_pcm_substream *substream; snd_pcm_readv() local 3651 struct snd_pcm_substream *substream; snd_pcm_writev() local 3690 struct snd_pcm_substream *substream; snd_pcm_poll() local 3749 struct snd_pcm_substream *substream = vmf->vma->vm_private_data; snd_pcm_mmap_status_fault() local 3765 snd_pcm_mmap_status(struct snd_pcm_substream * substream,struct file * file,struct vm_area_struct * area) snd_pcm_mmap_status() argument 3787 struct snd_pcm_substream *substream = vmf->vma->vm_private_data; snd_pcm_mmap_control_fault() local 3803 snd_pcm_mmap_control(struct snd_pcm_substream * substream,struct file * file,struct vm_area_struct * area) snd_pcm_mmap_control() argument 3859 snd_pcm_mmap_status(struct snd_pcm_substream * substream,struct file * file,struct vm_area_struct * area) snd_pcm_mmap_status() argument 3864 snd_pcm_mmap_control(struct snd_pcm_substream * substream,struct file * file,struct vm_area_struct * area) snd_pcm_mmap_control() argument 3876 struct snd_pcm_substream *substream = area->vm_private_data; snd_pcm_mmap_data_open() local 3886 struct snd_pcm_substream *substream = area->vm_private_data; snd_pcm_mmap_data_close() local 3896 struct snd_pcm_substream *substream = vmf->vma->vm_private_data; snd_pcm_mmap_data_fault() local 3949 snd_pcm_lib_default_mmap(struct snd_pcm_substream * substream,struct vm_area_struct * area) snd_pcm_lib_default_mmap() argument 3977 snd_pcm_lib_mmap_iomem(struct snd_pcm_substream * substream,struct vm_area_struct * area) snd_pcm_lib_mmap_iomem() argument 3991 snd_pcm_mmap_data(struct snd_pcm_substream * substream,struct file * file,struct vm_area_struct * area) snd_pcm_mmap_data() argument 4038 struct snd_pcm_substream *substream; snd_pcm_mmap() local 4075 struct snd_pcm_substream *substream; snd_pcm_fasync() local 4143 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 4172 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 4207 struct snd_pcm_substream *substream = pcm_file->substream; snd_pcm_get_unmapped_area() local [all...] |
| H A D | pcm_timer.c | 19 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 D | pcm_local.h | 26 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->stream == SNDRV_PCM_STREAM_PLAYBACK) in snd_pcm_hw_avail() [all …]
|
| H A D | pcm_trace.h | 12 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 D | rawmidi.c | 106 static bool snd_rawmidi_ready(struct snd_rawmidi_substream *substream) in snd_rawmidi_ready() argument 108 guard(spinlock_irqsave)(&substream->lock); in snd_rawmidi_ready() 109 return __snd_rawmidi_ready(substream->runtime); in snd_rawmidi_ready() 112 static inline int snd_rawmidi_ready_append(struct snd_rawmidi_substream *substream, in snd_rawmidi_ready_append() argument 115 struct snd_rawmidi_runtime *runtime = substream->runtime; in snd_rawmidi_ready_append() 118 (!substream->append || runtime->avail >= count); in snd_rawmidi_ready_append() 127 runtime->event(runtime->substream); in snd_rawmidi_input_event_work() 130 /* buffer refcount management: call with substream->lock held */ 141 static void snd_rawmidi_buffer_ref_sync(struct snd_rawmidi_substream *substream) in snd_rawmidi_buffer_ref_sync() argument 145 spin_lock_irq(&substream in snd_rawmidi_buffer_ref_sync() 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 618 snd_rawmidi_info(struct snd_rawmidi_substream * substream,struct snd_rawmidi_info * info) snd_rawmidi_info() argument 644 snd_rawmidi_info_user(struct snd_rawmidi_substream * substream,struct snd_rawmidi_info __user * _info) snd_rawmidi_info_user() argument 663 struct snd_rawmidi_substream *substream; __snd_rawmidi_info_select() local 710 resize_runtime_buffer(struct snd_rawmidi_substream * substream,struct snd_rawmidi_params * params,bool is_input) resize_runtime_buffer() argument 747 snd_rawmidi_output_params(struct snd_rawmidi_substream * substream,struct snd_rawmidi_params * params) snd_rawmidi_output_params() argument 763 snd_rawmidi_input_params(struct snd_rawmidi_substream * substream,struct snd_rawmidi_params * params) snd_rawmidi_input_params() argument 789 snd_rawmidi_output_status(struct snd_rawmidi_substream * substream,struct snd_rawmidi_status64 * status) snd_rawmidi_output_status() argument 801 snd_rawmidi_input_status(struct snd_rawmidi_substream * substream,struct snd_rawmidi_status64 * status) snd_rawmidi_input_status() argument 1076 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 1115 get_framing_tstamp(struct snd_rawmidi_substream * substream) get_framing_tstamp() argument 1143 snd_rawmidi_receive(struct snd_rawmidi_substream * substream,const unsigned char * buffer,int count) snd_rawmidi_receive() argument 1217 snd_rawmidi_kernel_read1(struct snd_rawmidi_substream * substream,unsigned char __user * userbuf,unsigned char * kernelbuf,long count) snd_rawmidi_kernel_read1() argument 1262 snd_rawmidi_kernel_read(struct snd_rawmidi_substream * substream,unsigned char * buf,long count) snd_rawmidi_kernel_read() argument 1276 struct snd_rawmidi_substream *substream; snd_rawmidi_read() local 1331 snd_rawmidi_transmit_empty(struct snd_rawmidi_substream * substream) snd_rawmidi_transmit_empty() argument 1354 __snd_rawmidi_transmit_peek(struct snd_rawmidi_substream * substream,unsigned char * buffer,int count) __snd_rawmidi_transmit_peek() argument 1413 snd_rawmidi_transmit_peek(struct snd_rawmidi_substream * substream,unsigned char * buffer,int count) snd_rawmidi_transmit_peek() argument 1430 __snd_rawmidi_transmit_ack(struct snd_rawmidi_substream * substream,int count) __snd_rawmidi_transmit_ack() argument 1464 snd_rawmidi_transmit_ack(struct snd_rawmidi_substream * substream,int count) snd_rawmidi_transmit_ack() argument 1483 snd_rawmidi_transmit(struct snd_rawmidi_substream * substream,unsigned char * buffer,int count) snd_rawmidi_transmit() argument 1502 snd_rawmidi_proceed(struct snd_rawmidi_substream * substream) snd_rawmidi_proceed() argument 1518 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 1580 snd_rawmidi_kernel_write(struct snd_rawmidi_substream * substream,const unsigned char * buf,long count) snd_rawmidi_kernel_write() argument 1594 struct snd_rawmidi_substream *substream; snd_rawmidi_write() local 1704 struct snd_rawmidi_substream *substream; snd_rawmidi_proc_info_read() local 1802 struct snd_rawmidi_substream *substream; snd_rawmidi_alloc_substreams() local 1911 struct snd_rawmidi_substream *substream; snd_rawmidi_free_substreams() local 2096 struct snd_rawmidi_substream *substream; snd_rawmidi_set_ops() local [all...] |
| H A D | pcm.c | 107 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() 328 static void snd_pcm_proc_info_read(struct snd_pcm_substream *substream, in snd_pcm_proc_info_read() argument 333 if (! substream) in snd_pcm_proc_info_read() 341 err = snd_pcm_info(substream, info); in snd_pcm_proc_info_read() 362 snd_pcm_proc_info_read(((struct snd_pcm_str *)entry->private_data)->substream, in snd_pcm_stream_proc_info_read() [all …]
|
| H A D | pcm_dmaengine.c | 30 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 D | pcm_compat.c | 12 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...] |
| /linux/sound/soc/sof/ |
| H A D | pcm.c | 32 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 schedule_work(&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); 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 D | pxa2xx-pcm-lib.c | |
| /linux/sound/soc/google/ |
| H A D | chv3-i2s.c | 132 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 D | bcm63xx-pcm-whistler.c | 45 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/pci/ctxfi/ |
| H A D | ctpcm.c | 97 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/soc/fsl/ |
| H A D | imx-pcm-fiq.c | 39 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...] |
| H A D | imx-pcm-rpmsg.c | 108 static int imx_rpmsg_insert_workqueue(struct snd_pcm_substream *substream, in imx_rpmsg_insert_workqueue() argument 130 info->msg_drop_count[substream->stream]++; in imx_rpmsg_insert_workqueue() 139 struct snd_pcm_substream *substream, in imx_rpmsg_pcm_hw_params() argument 145 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) { in imx_rpmsg_pcm_hw_params() 191 struct snd_pcm_substream *substream) in imx_rpmsg_pcm_pointer() argument 198 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) in imx_rpmsg_pcm_pointer() 204 pos = buffer_tail * snd_pcm_lib_period_bytes(substream); in imx_rpmsg_pcm_pointer() 206 return bytes_to_frames(substream->runtime, pos); in imx_rpmsg_pcm_pointer() 213 struct snd_pcm_substream *substream = stream_timer->substream; in 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...] |
| /linux/sound/drivers/pcsp/ |
| H A D | pcsp_lib.c | 33 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 D | bcm2835-pcm.c | 55 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/pci/au88x0/ |
| H A D | au88x0_pcm.c | 126 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/core/oss/ |
| H A D | pcm_oss.c | 533 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/soc/sof/intel/ |
| H A D | hda-pcm.c | 102 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() 155 int hda_dsp_pcm_ack(struct snd_sof_dev *sdev, struct snd_pcm_substream *substream) in hda_dsp_pcm_ack() argument 157 struct hdac_stream *hstream = substream->runtime->private_data; in hda_dsp_pcm_ack() 158 struct snd_pcm_runtime *runtime = substream->runtime; in hda_dsp_pcm_ack() 178 struct snd_pcm_substream *substream, int cmd) in hda_dsp_pcm_trigger() argument 180 struct hdac_stream *hstream = substream->runtime->private_data; in hda_dsp_pcm_trigger() 188 struct snd_pcm_substream *substream) in hda_dsp_pcm_pointer() argument [all …]
|
| /linux/sound/soc/ |
| H A D | soc-generic-dmaengine-pcm.c | 29 struct snd_pcm_substream *substream) in dmaengine_dma_dev() argument 31 if (!pcm->chan[substream->stream]) in dmaengine_dma_dev() 34 return pcm->chan[substream->stream]->device->dev; in dmaengine_dma_dev() 39 * @substream: PCM substream 50 int snd_dmaengine_pcm_prepare_slave_config(struct snd_pcm_substream *substream, in snd_dmaengine_pcm_prepare_slave_config() argument 53 struct snd_soc_pcm_runtime *rtd = snd_soc_substream_to_rtd(substream); in snd_dmaengine_pcm_prepare_slave_config() 63 dma_data = snd_soc_dai_get_dma_data(snd_soc_rtd_to_cpu(rtd, 0), substream); in snd_dmaengine_pcm_prepare_slave_config() 65 ret = snd_hwparams_to_dma_slave_config(substream, params, slave_config); in snd_dmaengine_pcm_prepare_slave_config() 69 snd_dmaengine_pcm_set_config_from_dai_data(substream, dma_dat in snd_dmaengine_pcm_prepare_slave_config() 77 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 99 dmaengine_pcm_set_runtime_hwparams(struct snd_soc_component * component,struct snd_pcm_substream * substream) dmaengine_pcm_set_runtime_hwparams() argument 149 dmaengine_pcm_open(struct snd_soc_component * component,struct snd_pcm_substream * substream) dmaengine_pcm_open() argument 163 dmaengine_pcm_close(struct snd_soc_component * component,struct snd_pcm_substream * substream) dmaengine_pcm_close() argument 169 dmaengine_pcm_trigger(struct snd_soc_component * component,struct snd_pcm_substream * substream,int cmd) dmaengine_pcm_trigger() argument 177 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 240 struct snd_pcm_substream *substream = rtd->pcm->streams[i].substream; dmaengine_pcm_new() local 280 dmaengine_pcm_pointer(struct snd_soc_component * component,struct snd_pcm_substream * substream) dmaengine_pcm_pointer() argument 291 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 322 dmaengine_pcm_sync_stop(struct snd_soc_component * component,struct snd_pcm_substream * substream) dmaengine_pcm_sync_stop() argument [all...] |
| /linux/sound/soc/codecs/ |
| H A D | hda-dai.c | 12 static int hda_codec_dai_startup(struct snd_pcm_substream *substream, struct snd_soc_dai *dai) in hda_codec_dai_startup() argument 20 stream_info = snd_soc_dai_get_dma_data(dai, substream); in hda_codec_dai_startup() 21 pcm = container_of(stream_info, struct hda_pcm, stream[substream->stream]); in hda_codec_dai_startup() 24 codec->core.vendor_id, stream_info, pcm, pcm->name, substream); in hda_codec_dai_startup() 28 ret = stream_info->ops.open(stream_info, codec, substream); in hda_codec_dai_startup() 38 static void hda_codec_dai_shutdown(struct snd_pcm_substream *substream, struct snd_soc_dai *dai) in hda_codec_dai_shutdown() argument 46 stream_info = snd_soc_dai_get_dma_data(dai, substream); in hda_codec_dai_shutdown() 47 pcm = container_of(stream_info, struct hda_pcm, stream[substream->stream]); in hda_codec_dai_shutdown() 50 codec->core.vendor_id, stream_info, pcm, pcm->name, substream); in hda_codec_dai_shutdown() 52 ret = stream_info->ops.close(stream_info, codec, substream); in hda_codec_dai_shutdown() [all …]
|
| /linux/sound/soc/samsung/ |
| H A D | idma.c | 64 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/drivers/media/pci/cobalt/ |
| H A D | cobalt-alsa-pcm.c | 101 struct snd_pcm_substream *substream; in cobalt_alsa_announce_pcm_data() local 113 substream = cobsc->capture_pcm_substream; in cobalt_alsa_announce_pcm_data() 114 if (substream == NULL) { in cobalt_alsa_announce_pcm_data() 119 runtime = substream->runtime; in cobalt_alsa_announce_pcm_data() 162 snd_pcm_stream_lock_irqsave(substream, flags); in cobalt_alsa_announce_pcm_data() 178 snd_pcm_stream_unlock_irqrestore(substream, flags); in cobalt_alsa_announce_pcm_data() 181 snd_pcm_period_elapsed(substream); in cobalt_alsa_announce_pcm_data() 206 static int snd_cobalt_pcm_capture_open(struct snd_pcm_substream *substream) in snd_cobalt_pcm_capture_open() argument 208 struct snd_pcm_runtime *runtime = substream->runtime; in snd_cobalt_pcm_capture_open() 209 struct snd_cobalt_card *cobsc = snd_pcm_substream_chip(substream); in snd_cobalt_pcm_capture_open() [all …]
|