Home
last modified time | relevance | path

Searched refs:runtime (Results 1 – 25 of 687) sorted by relevance

12345678910>>...28

/linux/sound/core/oss/
H A Dpcm_oss.c535 struct snd_pcm_runtime *runtime = substream->runtime; in snd_pcm_oss_plugin_clear() local
538 plugin = runtime->oss.plugin_first; in snd_pcm_oss_plugin_clear()
544 runtime->oss.plugin_first = runtime->oss.plugin_last = NULL; in snd_pcm_oss_plugin_clear()
550 struct snd_pcm_runtime *runtime = plugin->plug->runtime; in snd_pcm_plugin_insert() local
551 plugin->next = runtime->oss.plugin_first; in snd_pcm_plugin_insert()
553 if (runtime->oss.plugin_first) { in snd_pcm_plugin_insert()
554 runtime in snd_pcm_plugin_insert()
565 struct snd_pcm_runtime *runtime = plugin->plug->runtime; snd_pcm_plugin_append() local
581 struct snd_pcm_runtime *runtime = substream->runtime; snd_pcm_oss_bytes() local
598 struct snd_pcm_runtime *runtime = substream->runtime; snd_pcm_alsa_frames() local
606 get_hw_ptr_period(struct snd_pcm_runtime * runtime) get_hw_ptr_period() argument
683 struct snd_pcm_runtime *runtime = substream->runtime; snd_pcm_oss_period_size() local
820 lock_params(struct snd_pcm_runtime * runtime) lock_params() argument
831 unlock_params(struct snd_pcm_runtime * runtime) unlock_params() argument
838 struct snd_pcm_runtime *runtime = substream->runtime; snd_pcm_oss_release_buffers() local
850 struct snd_pcm_runtime *runtime = substream->runtime; snd_pcm_oss_change_params_locked() local
1099 struct snd_pcm_runtime *runtime = substream->runtime; snd_pcm_oss_change_params() local
1144 struct snd_pcm_runtime *runtime = substream->runtime; snd_pcm_oss_prepare() local
1162 struct snd_pcm_runtime *runtime; snd_pcm_oss_make_ready() local
1185 struct snd_pcm_runtime *runtime; snd_pcm_oss_make_ready_locked() local
1204 struct snd_pcm_runtime *runtime; snd_pcm_oss_capture_position_fixup() local
1229 struct snd_pcm_runtime *runtime = substream->runtime; snd_pcm_oss_write3() local
1262 struct snd_pcm_runtime *runtime = substream->runtime; snd_pcm_oss_read3() local
1368 struct snd_pcm_runtime *runtime = substream->runtime; snd_pcm_oss_write2() local
1403 struct snd_pcm_runtime *runtime = substream->runtime; snd_pcm_oss_write1() local
1478 struct snd_pcm_runtime *runtime = substream->runtime; snd_pcm_oss_read2() local
1513 struct snd_pcm_runtime *runtime = substream->runtime; snd_pcm_oss_read1() local
1574 struct snd_pcm_runtime *runtime; snd_pcm_oss_reset() local
1612 struct snd_pcm_runtime *runtime; snd_pcm_oss_sync1() local
1662 struct snd_pcm_runtime *runtime; snd_pcm_oss_sync() local
1760 struct snd_pcm_runtime *runtime; snd_pcm_oss_set_rate() local
1802 struct snd_pcm_runtime *runtime; snd_pcm_oss_set_channels() local
1900 struct snd_pcm_runtime *runtime; snd_pcm_oss_set_format() local
1930 struct snd_pcm_runtime *runtime; snd_pcm_oss_set_subdivide1() local
1955 struct snd_pcm_runtime *runtime; snd_pcm_oss_set_subdivide() local
1973 struct snd_pcm_runtime *runtime; snd_pcm_oss_set_fragment1() local
1998 struct snd_pcm_runtime *runtime; snd_pcm_oss_set_fragment() local
2037 struct snd_pcm_runtime *runtime = substream->runtime; snd_pcm_oss_get_caps1() local
2061 struct snd_pcm_runtime *runtime = substream->runtime; snd_pcm_oss_simulate_fill() local
2070 struct snd_pcm_runtime *runtime; snd_pcm_oss_set_trigger() local
2174 struct snd_pcm_runtime *runtime; snd_pcm_oss_get_odelay() local
2198 struct snd_pcm_runtime *runtime; snd_pcm_oss_get_ptr() local
2268 struct snd_pcm_runtime *runtime; snd_pcm_oss_get_space() local
2374 struct snd_pcm_runtime *runtime; snd_pcm_oss_init_substream() local
2821 struct snd_pcm_runtime *runtime = substream->runtime; snd_pcm_oss_playback_ready() local
2832 struct snd_pcm_runtime *runtime = substream->runtime; snd_pcm_oss_capture_ready() local
2841 need_input_retrigger(struct snd_pcm_runtime * runtime) need_input_retrigger() argument
2865 struct snd_pcm_runtime *runtime = psubstream->runtime; snd_pcm_oss_poll() local
2875 struct snd_pcm_runtime *runtime = csubstream->runtime; snd_pcm_oss_poll() local
2900 struct snd_pcm_runtime *runtime; snd_pcm_oss_mmap() local
[all...]
/linux/sound/core/
H A Drawmidi.c108 static inline bool __snd_rawmidi_ready(struct snd_rawmidi_runtime *runtime) in snd_rawmidi_ready()
110 return runtime->avail >= runtime->avail_min; in snd_rawmidi_ready()
116 return __snd_rawmidi_ready(substream->runtime); in snd_rawmidi_ready_append()
122 struct snd_rawmidi_runtime *runtime = substream->runtime; in snd_rawmidi_input_event_work()
124 return runtime->avail >= runtime->avail_min && in snd_rawmidi_input_event_work()
125 (!substream->append || runtime->avail >= count); in snd_rawmidi_input_event_work()
130 struct snd_rawmidi_runtime *runtime
101 __snd_rawmidi_ready(struct snd_rawmidi_runtime * runtime) __snd_rawmidi_ready() argument
115 struct snd_rawmidi_runtime *runtime = substream->runtime; snd_rawmidi_ready_append() local
123 struct snd_rawmidi_runtime *runtime = snd_rawmidi_input_event_work() local
131 snd_rawmidi_buffer_ref(struct snd_rawmidi_runtime * runtime) snd_rawmidi_buffer_ref() argument
136 snd_rawmidi_buffer_unref(struct snd_rawmidi_runtime * runtime) snd_rawmidi_buffer_unref() argument
160 struct snd_rawmidi_runtime *runtime; snd_rawmidi_runtime_create() local
188 get_align(struct snd_rawmidi_runtime * runtime) get_align() argument
197 get_aligned_size(runtime,size) global() argument
201 struct snd_rawmidi_runtime *runtime = substream->runtime; snd_rawmidi_runtime_free() local
225 __reset_runtime_ptrs(struct snd_rawmidi_runtime * runtime,bool is_input) __reset_runtime_ptrs() argument
253 struct snd_rawmidi_runtime *runtime; snd_rawmidi_drain_output() local
717 struct snd_rawmidi_runtime *runtime = substream->runtime; resize_runtime_buffer() local
795 struct snd_rawmidi_runtime *runtime = substream->runtime; snd_rawmidi_output_status() local
807 struct snd_rawmidi_runtime *runtime = substream->runtime; snd_rawmidi_input_status() local
1082 struct snd_rawmidi_runtime *runtime = substream->runtime; receive_with_tstamp_framing() local
1151 struct snd_rawmidi_runtime *runtime; snd_rawmidi_receive() local
1226 struct snd_rawmidi_runtime *runtime = substream->runtime; snd_rawmidi_kernel_read1() local
1280 struct snd_rawmidi_runtime *runtime; snd_rawmidi_read() local
1336 struct snd_rawmidi_runtime *runtime; snd_rawmidi_transmit_empty() local
1361 struct snd_rawmidi_runtime *runtime = substream->runtime; __snd_rawmidi_transmit_peek() local
1436 struct snd_rawmidi_runtime *runtime = substream->runtime; __snd_rawmidi_transmit_ack() local
1507 struct snd_rawmidi_runtime *runtime; snd_rawmidi_proceed() local
1528 struct snd_rawmidi_runtime *runtime = substream->runtime; snd_rawmidi_kernel_write1() local
1596 struct snd_rawmidi_runtime *runtime; snd_rawmidi_write() local
1667 struct snd_rawmidi_runtime *runtime; snd_rawmidi_poll() local
1708 struct snd_rawmidi_runtime *runtime; snd_rawmidi_proc_info_read() local
[all...]
H A Dpcm_native.c266 if (!(substream->runtime->hw.info & SNDRV_PCM_INFO_MMAP)) in hw_support_mmap()
293 &substream->runtime->hw_constraints; in constrain_mask_params()
329 &substream->runtime->hw_constraints; in constrain_interval_params()
365 &substream->runtime->hw_constraints; in constrain_params_by_rules()
534 params->info = substream->runtime->hw.info; in fixup_unreferenced_params()
583 static int period_to_usecs(struct snd_pcm_runtime *runtime) in snd_pcm_hw_refine_user()
587 if (! runtime->rate) in snd_pcm_hw_refine_user()
591 usecs = (750000 / runtime->rate) * runtime->period_size; in snd_pcm_hw_refine_user()
592 usecs += ((750000 % runtime in snd_pcm_hw_refine_user()
606 period_to_usecs(struct snd_pcm_runtime * runtime) period_to_usecs() argument
744 snd_pcm_buffer_access_lock(struct snd_pcm_runtime * runtime) snd_pcm_buffer_access_lock() argument
753 snd_pcm_buffer_access_unlock(struct snd_pcm_runtime * runtime) snd_pcm_buffer_access_unlock() argument
760 snd_pcm_runtime_buffer_set_silence(struct snd_pcm_runtime * runtime) snd_pcm_runtime_buffer_set_silence() argument
784 struct snd_pcm_runtime *runtime; snd_pcm_hw_params() local
949 struct snd_pcm_runtime *runtime; snd_pcm_hw_free() local
983 struct snd_pcm_runtime *runtime; snd_pcm_sw_params() local
1061 struct snd_pcm_runtime *runtime = substream->runtime; snd_pcm_status64() local
1208 struct snd_pcm_runtime *runtime; snd_pcm_channel_info() local
1242 struct snd_pcm_runtime *runtime = substream->runtime; snd_pcm_trigger_tstamp() local
1468 struct snd_pcm_runtime *runtime = substream->runtime; snd_pcm_pre_start() local
1507 struct snd_pcm_runtime *runtime = substream->runtime; snd_pcm_post_start() local
1552 struct snd_pcm_runtime *runtime = substream->runtime; snd_pcm_pre_stop() local
1573 struct snd_pcm_runtime *runtime = substream->runtime; snd_pcm_post_stop() local
1645 struct snd_pcm_runtime *runtime = substream->runtime; snd_pcm_pre_pause() local
1686 struct snd_pcm_runtime *runtime = substream->runtime; snd_pcm_post_pause() local
1728 struct snd_pcm_runtime *runtime = substream->runtime; snd_pcm_pre_suspend() local
1745 struct snd_pcm_runtime *runtime = substream->runtime; snd_pcm_do_suspend() local
1758 struct snd_pcm_runtime *runtime = substream->runtime; snd_pcm_post_suspend() local
1838 struct snd_pcm_runtime *runtime = substream->runtime; snd_pcm_pre_resume() local
1850 struct snd_pcm_runtime *runtime = substream->runtime; snd_pcm_do_resume() local
1872 struct snd_pcm_runtime *runtime = substream->runtime; snd_pcm_post_resume() local
1907 struct snd_pcm_runtime *runtime = substream->runtime; snd_pcm_xrun() local
1928 struct snd_pcm_runtime *runtime = substream->runtime; snd_pcm_pre_reset() local
1943 struct snd_pcm_runtime *runtime = substream->runtime; snd_pcm_do_reset() local
1959 struct snd_pcm_runtime *runtime = substream->runtime; snd_pcm_post_reset() local
2014 struct snd_pcm_runtime *runtime = substream->runtime; snd_pcm_post_prepare() local
2066 struct snd_pcm_runtime *runtime = substream->runtime; snd_pcm_pre_drain_init() local
2080 struct snd_pcm_runtime *runtime = substream->runtime; snd_pcm_do_drain_init() local
2144 struct snd_pcm_runtime *runtime; snd_pcm_drain() local
2269 struct snd_pcm_runtime *runtime; snd_pcm_drop() local
2563 snd_pcm_hw_constraint_subformats(struct snd_pcm_runtime * runtime,unsigned int cond,u32 * subformats) snd_pcm_hw_constraint_subformats() argument
2574 struct snd_pcm_runtime *runtime = substream->runtime; snd_pcm_hw_constraints_init() local
2698 struct snd_pcm_runtime *runtime = substream->runtime; snd_pcm_hw_constraints_complete() local
3023 struct snd_pcm_runtime *runtime = substream->runtime; forward_appl_ptr() local
3043 struct snd_pcm_runtime *runtime = substream->runtime; rewind_appl_ptr() local
3164 struct snd_pcm_runtime *runtime = substream->runtime; snd_pcm_sync_ptr() local
3233 recalculate_boundary(struct snd_pcm_runtime * runtime) recalculate_boundary() argument
3258 struct snd_pcm_runtime *runtime = substream->runtime; snd_pcm_ioctl_sync_ptr_compat() local
3312 struct snd_pcm_runtime *runtime = substream->runtime; snd_pcm_tstamp() local
3348 struct snd_pcm_runtime *runtime = substream->runtime; snd_pcm_xfern_frames_ioctl() local
3583 struct snd_pcm_runtime *runtime; snd_pcm_read() local
3607 struct snd_pcm_runtime *runtime; snd_pcm_write() local
3630 struct snd_pcm_runtime *runtime; snd_pcm_readv() local
3669 struct snd_pcm_runtime *runtime; snd_pcm_writev() local
3707 struct snd_pcm_runtime *runtime; snd_pcm_poll() local
3766 struct snd_pcm_runtime *runtime; snd_pcm_mmap_status_fault() local
3804 struct snd_pcm_runtime *runtime; snd_pcm_mmap_control_fault() local
3913 struct snd_pcm_runtime *runtime; snd_pcm_mmap_data_fault() local
3998 struct snd_pcm_runtime *runtime = substream->runtime; snd_pcm_lib_mmap_iomem() local
4012 struct snd_pcm_runtime *runtime; snd_pcm_mmap_data() local
4109 struct snd_pcm_runtime *runtime; snd_pcm_fasync() local
4241 struct snd_pcm_runtime *runtime = substream->runtime; snd_pcm_get_unmapped_area() local
[all...]
H A Dpcm_lib.c37 static inline void update_silence_vars(struct snd_pcm_runtime *runtime, in update_silence_vars() argument
47 delta += runtime->boundary; in update_silence_vars()
48 if ((snd_pcm_uframes_t)delta < runtime->silence_filled) in update_silence_vars()
49 runtime->silence_filled -= delta; in update_silence_vars()
51 runtime->silence_filled = 0; in update_silence_vars()
52 runtime->silence_start = new_ptr; in update_silence_vars()
57 * runtime->silence_start: starting pointer to silence area
58 * runtime->silence_filled: size filled with silence
59 * runtime->silence_threshold: threshold from application
60 * runtime
66 struct snd_pcm_runtime *runtime = substream->runtime; snd_pcm_playback_silence() local
170 struct snd_pcm_runtime *runtime = substream->runtime; __snd_pcm_xrun() local
210 snd_pcm_update_state(struct snd_pcm_substream * substream,struct snd_pcm_runtime * runtime) snd_pcm_update_state() argument
240 struct snd_pcm_runtime *runtime = substream->runtime; update_audio_tstamp() local
289 struct snd_pcm_runtime *runtime = substream->runtime; snd_pcm_update_hw_ptr0() local
1165 snd_pcm_hw_rule_add(struct snd_pcm_runtime * runtime,unsigned int cond,int var,snd_pcm_hw_rule_func_t func,void * private,int dep,...) snd_pcm_hw_rule_add() argument
1219 snd_pcm_hw_constraint_mask(struct snd_pcm_runtime * runtime,snd_pcm_hw_param_t var,u_int32_t mask) snd_pcm_hw_constraint_mask() argument
1241 snd_pcm_hw_constraint_mask64(struct snd_pcm_runtime * runtime,snd_pcm_hw_param_t var,u_int64_t mask) snd_pcm_hw_constraint_mask64() argument
1265 snd_pcm_hw_constraint_integer(struct snd_pcm_runtime * runtime,snd_pcm_hw_param_t var) snd_pcm_hw_constraint_integer() argument
1284 snd_pcm_hw_constraint_minmax(struct snd_pcm_runtime * runtime,snd_pcm_hw_param_t var,unsigned int min,unsigned int max) snd_pcm_hw_constraint_minmax() argument
1316 snd_pcm_hw_constraint_list(struct snd_pcm_runtime * runtime,unsigned int cond,snd_pcm_hw_param_t var,const struct snd_pcm_hw_constraint_list * l) snd_pcm_hw_constraint_list() argument
1347 snd_pcm_hw_constraint_ranges(struct snd_pcm_runtime * runtime,unsigned int cond,snd_pcm_hw_param_t var,const struct snd_pcm_hw_constraint_ranges * r) snd_pcm_hw_constraint_ranges() argument
1382 snd_pcm_hw_constraint_ratnums(struct snd_pcm_runtime * runtime,unsigned int cond,snd_pcm_hw_param_t var,const struct snd_pcm_hw_constraint_ratnums * r) snd_pcm_hw_constraint_ratnums() argument
1416 snd_pcm_hw_constraint_ratdens(struct snd_pcm_runtime * runtime,unsigned int cond,snd_pcm_hw_param_t var,const struct snd_pcm_hw_constraint_ratdens * r) snd_pcm_hw_constraint_ratdens() argument
1460 snd_pcm_hw_constraint_msbits(struct snd_pcm_runtime * runtime,unsigned int cond,unsigned int width,unsigned int msbits) snd_pcm_hw_constraint_msbits() argument
1489 snd_pcm_hw_constraint_step(struct snd_pcm_runtime * runtime,unsigned int cond,snd_pcm_hw_param_t var,unsigned long step) snd_pcm_hw_constraint_step() argument
1520 snd_pcm_hw_constraint_pow2(struct snd_pcm_runtime * runtime,unsigned int cond,snd_pcm_hw_param_t var) snd_pcm_hw_constraint_pow2() argument
1547 snd_pcm_hw_rule_noresample(struct snd_pcm_runtime * runtime,unsigned int base_rate) snd_pcm_hw_rule_noresample() argument
1766 struct snd_pcm_runtime *runtime = substream->runtime; snd_pcm_lib_ioctl_reset() local
1783 struct snd_pcm_runtime *runtime = substream->runtime; snd_pcm_lib_ioctl_channel_info() local
1902 struct snd_pcm_runtime *runtime; snd_pcm_period_elapsed_under_stream_lock() local
1952 struct snd_pcm_runtime *runtime = substream->runtime; wait_for_avail() local
2047 get_dma_ptr(struct snd_pcm_runtime * runtime,int channel,unsigned long hwoff) get_dma_ptr() argument
2073 struct snd_pcm_runtime *runtime = substream->runtime; fill_silence() local
2134 struct snd_pcm_runtime *runtime = substream->runtime; interleaved_copy() local
2158 struct snd_pcm_runtime *runtime = substream->runtime; noninterleaved_copy() local
2200 struct snd_pcm_runtime *runtime; pcm_sanity_check() local
2211 pcm_accessible_state(struct snd_pcm_runtime * runtime) pcm_accessible_state() argument
2233 struct snd_pcm_runtime *runtime = substream->runtime; pcm_lib_apply_appl_ptr() local
2278 struct snd_pcm_runtime *runtime = substream->runtime; __snd_pcm_lib_xfer() local
[all...]
H A Dcompress_offload.c80 struct snd_compr_runtime *runtime = NULL; in snd_compr_open()
136 runtime = kzalloc_obj(*runtime); in snd_compr_open()
137 if (!runtime) { in snd_compr_open()
141 runtime->state = SNDRV_PCM_STATE_OPEN; in snd_compr_open()
142 init_waitqueue_head(&runtime->sleep); in snd_compr_open()
144 INIT_LIST_HEAD(&runtime->tasks);
146 data->stream.runtime = runtime; in snd_compr_free()
156 kfree(runtime); in snd_compr_free()
79 struct snd_compr_runtime *runtime; snd_compr_open() local
148 struct snd_compr_runtime *runtime = data->stream.runtime; snd_compr_free() local
299 struct snd_compr_runtime *runtime = stream->runtime; snd_compr_write_data() local
438 struct snd_compr_runtime *runtime; snd_compr_poll() local
565 struct snd_compr_runtime *runtime; snd_compr_free_pages() local
[all...]
H A Dpcm.c374 struct snd_pcm_runtime *runtime; in snd_pcm_substream_proc_hw_params_read()
377 runtime = substream->runtime; in snd_pcm_substream_proc_hw_params_read()
378 if (!runtime) { in snd_pcm_substream_proc_hw_params_read()
382 if (runtime->state == SNDRV_PCM_STATE_OPEN) { in snd_pcm_substream_proc_hw_params_read()
386 snd_iprintf(buffer, "access: %s\n", snd_pcm_access_name(runtime->access)); in snd_pcm_substream_proc_hw_params_read()
387 snd_iprintf(buffer, "format: %s\n", snd_pcm_format_name(runtime->format)); in snd_pcm_substream_proc_hw_params_read()
388 snd_iprintf(buffer, "subformat: %s\n", snd_pcm_subformat_name(runtime->subformat)); in snd_pcm_substream_proc_hw_params_read()
389 snd_iprintf(buffer, "channels: %u\n", runtime->channels); in snd_pcm_substream_proc_hw_params_read()
390 snd_iprintf(buffer, "rate: %u (%u/%u)\n", runtime in snd_pcm_substream_proc_hw_params_read()
376 struct snd_pcm_runtime *runtime; snd_pcm_substream_proc_hw_params_read() local
411 struct snd_pcm_runtime *runtime; snd_pcm_substream_proc_sw_params_read() local
437 struct snd_pcm_runtime *runtime; snd_pcm_substream_proc_status_read() local
881 struct snd_pcm_runtime *runtime; snd_pcm_attach_substream() local
982 struct snd_pcm_runtime *runtime; snd_pcm_detach_substream() local
[all...]
/linux/sound/soc/uniphier/
H A Daio-dma.c30 struct snd_pcm_runtime *runtime = sub->substream->runtime; in aiodma_pcm_irq() local
31 int bytes = runtime->period_size * in aiodma_pcm_irq()
32 runtime->channels * samples_to_bytes(runtime, 1); in aiodma_pcm_irq()
36 ret = aiodma_rb_set_threshold(sub, runtime->dma_bytes, in aiodma_pcm_irq()
41 aiodma_rb_sync(sub, runtime->dma_addr, runtime->dma_bytes, bytes); in aiodma_pcm_irq()
50 struct snd_compr_runtime *runtime = sub->cstream->runtime; in aiodma_compr_irq() local
99 struct snd_pcm_runtime *runtime = substream->runtime; uniphier_aiodma_open() local
110 struct snd_pcm_runtime *runtime = substream->runtime; uniphier_aiodma_prepare() local
137 struct snd_pcm_runtime *runtime = substream->runtime; uniphier_aiodma_trigger() local
173 struct snd_pcm_runtime *runtime = substream->runtime; uniphier_aiodma_pointer() local
[all...]
/linux/sound/pci/ctxfi/
H A Dctpcm.c103 static void ct_atc_pcm_free_substream(struct snd_pcm_runtime *runtime) in ct_atc_pcm_free_substream() argument
105 struct ct_atc_pcm *apcm = runtime->private_data; in ct_atc_pcm_free_substream()
111 runtime->private_data = NULL; in ct_atc_pcm_free_substream()
118 struct snd_pcm_runtime *runtime = substream->runtime; in ct_pcm_playback_open() local
129 runtime->hw = ct_spdif_passthru_playback_hw; in ct_pcm_playback_open()
132 runtime->hw = ct_pcm_playback_hw; in ct_pcm_playback_open()
134 runtime->hw.channels_max = 8; in ct_pcm_playback_open()
137 err = snd_pcm_hw_constraint_integer(runtime, in ct_pcm_playback_open()
142 err = snd_pcm_hw_constraint_minmax(runtime, in ct_pcm_playback_open()
153 runtime->private_data = apcm; in ct_pcm_playback_open()
[all …]
/linux/sound/drivers/
H A Dpcmtest.c191 static void check_buf_block_i(struct pcmtst_buf_iter *v_iter, struct snd_pcm_runtime *runtime) in check_buf_block_i()
198 current_byte = runtime->dma_area[v_iter->buf_pos]; in check_buf_block_ni()
201 ch_num = (v_iter->total_bytes / v_iter->sample_bytes) % runtime->channels; in check_buf_block_ni()
203 runtime->channels, in check_buf_block_ni()
209 inc_buf_pos(v_iter, 1, runtime->dma_bytes); in check_buf_block_ni()
212 inc_buf_pos(v_iter, v_iter->b_rw - i, runtime->dma_bytes); in check_buf_block_ni()
215 static void check_buf_block_ni(struct pcmtst_buf_iter *v_iter, struct snd_pcm_runtime *runtime) in check_buf_block_ni()
217 unsigned int channels = runtime->channels;
224 current_byte = runtime->dma_area[buf_pos_n(v_iter, channels, ch_num)]; in check_buf_block()
232 inc_buf_pos(v_iter, 1, runtime
172 check_buf_block_i(struct pcmtst_buf_iter * v_iter,struct snd_pcm_runtime * runtime) check_buf_block_i() argument
196 check_buf_block_ni(struct pcmtst_buf_iter * v_iter,struct snd_pcm_runtime * runtime) check_buf_block_ni() argument
223 check_buf_block(struct pcmtst_buf_iter * v_iter,struct snd_pcm_runtime * runtime) check_buf_block() argument
239 fill_block_pattern_n(struct pcmtst_buf_iter * v_iter,struct snd_pcm_runtime * runtime) fill_block_pattern_n() argument
255 fill_block_pattern_i(struct pcmtst_buf_iter * v_iter,struct snd_pcm_runtime * runtime) fill_block_pattern_i() argument
275 fill_block_pattern(struct pcmtst_buf_iter * v_iter,struct snd_pcm_runtime * runtime) fill_block_pattern() argument
283 fill_block_rand_n(struct pcmtst_buf_iter * v_iter,struct snd_pcm_runtime * runtime) fill_block_rand_n() argument
306 fill_block_rand_i(struct pcmtst_buf_iter * v_iter,struct snd_pcm_runtime * runtime) fill_block_rand_i() argument
319 fill_block_random(struct pcmtst_buf_iter * v_iter,struct snd_pcm_runtime * runtime) fill_block_random() argument
327 fill_block(struct pcmtst_buf_iter * v_iter,struct snd_pcm_runtime * runtime) fill_block() argument
374 struct snd_pcm_runtime *runtime = substream->runtime; snd_pcmtst_pcm_open() local
472 struct snd_pcm_runtime *runtime = substream->runtime; snd_pcmtst_pcm_prepare() local
[all...]
/linux/drivers/staging/vc04_services/bcm2835-audio/
H A Dbcm2835-pcm.c47 static void snd_bcm2835_playback_free(struct snd_pcm_runtime *runtime) in snd_bcm2835_playback_free() argument
49 kfree(runtime->private_data); in snd_bcm2835_playback_free()
88 struct snd_pcm_runtime *runtime = substream->runtime; in snd_bcm2835_playback_open_generic() local
127 runtime->private_data = alsa_stream; in snd_bcm2835_playback_open_generic()
128 runtime->private_free = snd_bcm2835_playback_free; in snd_bcm2835_playback_open_generic()
130 runtime->hw = snd_bcm2835_playback_spdif_hw; in snd_bcm2835_playback_open_generic()
134 runtime->hw = snd_bcm2835_playback_hw; in snd_bcm2835_playback_open_generic()
137 snd_pcm_hw_constraint_step(runtime, in snd_bcm2835_playback_open_generic()
143 snd_pcm_hw_constraint_minmax(runtime, in snd_bcm2835_playback_open_generic()
170 struct snd_pcm_runtime *runtime; in snd_bcm2835_playback_close() local
[all …]
/linux/sound/isa/gus/
H A Dgus_pcm.c65 struct snd_pcm_runtime *runtime = substream->runtime; in snd_gf1_pcm_block_change() local
66 struct gus_pcm_private *pcmp = runtime->private_data; in snd_gf1_pcm_block_change()
72 if (snd_pcm_format_unsigned(runtime->format)) in snd_gf1_pcm_block_change()
74 if (snd_pcm_format_width(runtime->format) == 16) in snd_gf1_pcm_block_change()
77 block.buffer = runtime->dma_area + offset; in snd_gf1_pcm_block_change()
78 block.buf_addr = runtime->dma_addr + offset; in snd_gf1_pcm_block_change()
89 struct snd_pcm_runtime *runtime = substream->runtime; in snd_gf1_pcm_trigger_up() local
90 struct gus_pcm_private *pcmp = runtime in snd_gf1_pcm_trigger_up()
162 struct snd_pcm_runtime *runtime; snd_gf1_pcm_interrupt_wave() local
334 struct snd_pcm_runtime *runtime = substream->runtime; playback_copy_ack() local
353 struct snd_pcm_runtime *runtime = substream->runtime; snd_gf1_pcm_playback_copy() local
370 struct snd_pcm_runtime *runtime = substream->runtime; snd_gf1_pcm_playback_silence() local
387 struct snd_pcm_runtime *runtime = substream->runtime; snd_gf1_pcm_playback_hw_params() local
434 struct snd_pcm_runtime *runtime = substream->runtime; snd_gf1_pcm_playback_hw_free() local
454 struct snd_pcm_runtime *runtime = substream->runtime; snd_gf1_pcm_playback_prepare() local
468 struct snd_pcm_runtime *runtime = substream->runtime; snd_gf1_pcm_playback_trigger() local
493 struct snd_pcm_runtime *runtime = substream->runtime; snd_gf1_pcm_playback_pointer() local
544 struct snd_pcm_runtime *runtime = substream->runtime; snd_gf1_pcm_capture_prepare() local
629 snd_gf1_pcm_playback_free(struct snd_pcm_runtime * runtime) snd_gf1_pcm_playback_free() argument
638 struct snd_pcm_runtime *runtime = substream->runtime; snd_gf1_pcm_playback_open() local
672 struct snd_pcm_runtime *runtime = substream->runtime; snd_gf1_pcm_playback_close() local
684 struct snd_pcm_runtime *runtime = substream->runtime; snd_gf1_pcm_capture_open() local
[all...]
/linux/sound/pci/emu10k1/
H A Demupcm.c33 epcm->substream->runtime->hw->pointer(emu, epcm->substream), in snd_emu10k1_pcm_interrupt()
45 if (emu->pcm_capture_substream->runtime->mode == SNDRV_PCM_MODE_FRAME) in snd_emu10k1_pcm_ac97adc_interrupt()
57 if (emu->pcm_capture_mic_substream->runtime->mode == SNDRV_PCM_MODE_FRAME) in snd_emu10k1_pcm_ac97mic_interrupt()
69 if (emu->pcm_capture_efx_substream->runtime->mode == SNDRV_PCM_MODE_FRAME) in snd_emu10k1_pcm_efx_interrupt()
186 struct snd_pcm_runtime *runtime) in snd_emu10k1_constrain_capture_rates() argument
190 runtime->hw.rates = SNDRV_PCM_RATE_11025 | \ in snd_emu10k1_constrain_capture_rates()
193 runtime->hw.rate_min = 11025; in snd_emu10k1_constrain_capture_rates()
194 runtime->hw.rate_max = 44100; in snd_emu10k1_constrain_capture_rates()
196 runtime->hw.rates = SNDRV_PCM_RATE_8000_48000 | in snd_emu10k1_constrain_capture_rates()
203 struct snd_pcm_runtime *runtime) in snd_emu1010_constrain_efx_rate() argument
[all …]
/linux/sound/soc/bcm/
H A Dbcm63xx-pcm-whistler.c148 struct snd_pcm_runtime *runtime = substream->runtime; in bcm63xx_pcm_prepare() local
153 dma_desc->dma_addr = runtime->dma_addr; in bcm63xx_pcm_prepare()
154 dma_desc->dma_area = runtime->dma_area; in bcm63xx_pcm_prepare()
178 struct bcm63xx_runtime_data *prtd = substream->runtime->private_data; in bcm63xx_pcm_pointer()
181 prtd->dma_addr_next = substream->runtime->dma_addr; in bcm63xx_pcm_pointer()
183 x = bytes_to_frames(substream->runtime, in bcm63xx_pcm_pointer()
184 prtd->dma_addr_next - substream->runtime->dma_addr); in bcm63xx_pcm_pointer()
186 return x == substream->runtime->buffer_size ? 0 : x; in bcm63xx_pcm_pointer()
193 struct snd_pcm_runtime *runtime in bcm63xx_pcm_open() local
226 struct snd_pcm_runtime *runtime = substream->runtime; bcm63xx_pcm_close() local
238 struct snd_pcm_runtime *runtime; i2s_dma_isr() local
[all...]
/linux/sound/atmel/
H A Dac97c.c88 struct snd_pcm_runtime *runtime = substream->runtime; in atmel_ac97c_playback_open() local
92 runtime->hw = atmel_ac97c_hw; in atmel_ac97c_playback_open()
94 runtime->hw.rate_min = chip->cur_rate; in atmel_ac97c_playback_open()
95 runtime->hw.rate_max = chip->cur_rate; in atmel_ac97c_playback_open()
98 runtime->hw.formats = pcm_format_to_bits(chip->cur_format); in atmel_ac97c_playback_open()
106 struct snd_pcm_runtime *runtime = substream->runtime; in atmel_ac97c_capture_open() local
110 runtime->hw = atmel_ac97c_hw; in atmel_ac97c_capture_open()
112 runtime->hw.rate_min = chip->cur_rate; in atmel_ac97c_capture_open()
113 runtime->hw.rate_max = chip->cur_rate; in atmel_ac97c_capture_open()
116 runtime->hw.formats = pcm_format_to_bits(chip->cur_format); in atmel_ac97c_capture_open()
[all …]
/linux/sound/soc/dwc/
H A Ddwc-pcm.c23 struct snd_pcm_runtime *runtime, unsigned int tx_ptr, \
26 const u##sample_bits (*p)[2] = (void *)runtime->dma_area; \
27 unsigned int period_pos = tx_ptr % runtime->period_size; \
34 if (++tx_ptr >= runtime->buffer_size) \
37 *period_elapsed = period_pos >= runtime->period_size; \
43 struct snd_pcm_runtime *runtime, unsigned int rx_ptr, \
46 u##sample_bits (*p)[2] = (void *)runtime->dma_area; \
47 unsigned int period_pos = rx_ptr % runtime->period_size; \
54 if (++rx_ptr >= runtime->buffer_size) \
57 *period_elapsed = period_pos >= runtime
141 struct snd_pcm_runtime *runtime = substream->runtime; dw_pcm_open() local
163 struct snd_pcm_runtime *runtime = substream->runtime; dw_pcm_hw_params() local
195 struct snd_pcm_runtime *runtime = substream->runtime; dw_pcm_trigger() local
230 struct snd_pcm_runtime *runtime = substream->runtime; dw_pcm_pointer() local
[all...]
/linux/sound/soc/sof/intel/
H A Dhda-pcm.c106 struct hdac_stream *hstream = substream->runtime->private_data; in hda_dsp_pcm_hw_params()
114 dmab = substream->runtime->dma_buffer_p; in hda_dsp_pcm_hw_params()
159 struct hdac_stream *hstream = cstream->runtime->private_data; in hda_dsp_pcm_ack()
168 dmab = cstream->runtime->dma_buffer_p; in hda_dsp_pcm_ack()
198 hstream->bufsize = cstream->runtime->buffer_size; in hda_dsp_pcm_pointer()
199 hstream->period_bytes = cstream->runtime->fragment_size; in hda_dsp_pcm_pointer()
203 dmab = cstream->runtime->dma_buffer_p; in hda_dsp_pcm_pointer()
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()
158 struct snd_pcm_runtime *runtime = substream->runtime; hda_dsp_pcm_ack() local
224 struct snd_pcm_runtime *runtime = substream->runtime; hda_dsp_pcm_open() local
[all...]
/linux/drivers/media/pci/cobalt/
H A Dcobalt-alsa-pcm.c102 struct snd_pcm_runtime *runtime; in cobalt_alsa_announce_pcm_data() local
119 runtime = substream->runtime; in cobalt_alsa_announce_pcm_data()
120 if (runtime == NULL) { in cobalt_alsa_announce_pcm_data()
124 is_s32 = runtime->format == SNDRV_PCM_FORMAT_S32_LE; in cobalt_alsa_announce_pcm_data()
126 stride = runtime->frame_bits >> 3; in cobalt_alsa_announce_pcm_data()
137 if (runtime->dma_area == NULL) { in cobalt_alsa_announce_pcm_data()
143 if (oldptr + length >= runtime->buffer_size) { in cobalt_alsa_announce_pcm_data()
144 unsigned int cnt = runtime->buffer_size - oldptr; in cobalt_alsa_announce_pcm_data()
148 sample_cpy(runtime->dma_area + (oldptr + i) * stride, in cobalt_alsa_announce_pcm_data()
152 sample_cpy(runtime->dma_area + (i - cnt) * stride, in cobalt_alsa_announce_pcm_data()
[all …]
/linux/sound/drivers/vx/
H A Dvx_pcm.c45 static void vx_pcm_read_per_bytes(struct vx_core *chip, struct snd_pcm_runtime *runtime, in vx_pcm_read_per_bytes() argument
49 unsigned char *buf = (unsigned char *)(runtime->dma_area + offset); in vx_pcm_read_per_bytes()
53 buf = (unsigned char *)runtime->dma_area; in vx_pcm_read_per_bytes()
58 buf = (unsigned char *)runtime->dma_area; in vx_pcm_read_per_bytes()
151 struct snd_pcm_runtime *runtime) in vx_set_format() argument
155 if (runtime->channels == 1) in vx_set_format()
157 if (snd_pcm_format_little_endian(runtime->format)) in vx_set_format()
159 if (runtime->rate < 32000 && runtime->rate > 11025) in vx_set_format()
161 else if (runtime->rate <= 11025) in vx_set_format()
164 switch (snd_pcm_format_physical_width(runtime->format)) { in vx_set_format()
[all …]
/linux/sound/soc/amd/
H A Dacp-da7219-max98357a.c245 struct snd_pcm_runtime *runtime = substream->runtime; in cz_da7219_play_startup() local
254 runtime->hw.channels_max = DUAL_CHANNEL; in cz_da7219_play_startup()
255 snd_pcm_hw_constraint_list(runtime, 0, SNDRV_PCM_HW_PARAM_CHANNELS, in cz_da7219_play_startup()
257 snd_pcm_hw_constraint_list(runtime, 0, SNDRV_PCM_HW_PARAM_RATE, in cz_da7219_play_startup()
266 struct snd_pcm_runtime *runtime = substream->runtime; in cz_da7219_cap_startup() local
275 runtime->hw.channels_max = DUAL_CHANNEL; in cz_da7219_cap_startup()
276 snd_pcm_hw_constraint_list(runtime, 0, SNDRV_PCM_HW_PARAM_CHANNELS, in cz_da7219_cap_startup()
278 snd_pcm_hw_constraint_list(runtime, in cz_da7219_cap_startup()
288 struct snd_pcm_runtime *runtime = substream->runtime; cz_max_startup() local
309 struct snd_pcm_runtime *runtime = substream->runtime; cz_dmic0_startup() local
330 struct snd_pcm_runtime *runtime = substream->runtime; cz_dmic1_startup() local
357 struct snd_pcm_runtime *runtime = substream->runtime; cz_rt5682_play_startup() local
378 struct snd_pcm_runtime *runtime = substream->runtime; cz_rt5682_cap_startup() local
400 struct snd_pcm_runtime *runtime = substream->runtime; cz_rt5682_max_startup() local
421 struct snd_pcm_runtime *runtime = substream->runtime; cz_rt5682_dmic0_startup() local
442 struct snd_pcm_runtime *runtime = substream->runtime; cz_rt5682_dmic1_startup() local
[all...]
/linux/sound/soc/qcom/qdsp6/
H A Dq6apm-dai.c326 struct snd_pcm_runtime *runtime = substream->runtime; in q6apm_dai_ack()
327 struct q6apm_dai_rtd *prtd = runtime->private_data; in q6apm_dai_ack()
343 cfg.sample_rate = runtime->rate; in q6apm_dai_trigger()
344 cfg.num_channels = runtime->channels; in q6apm_dai_trigger()
347 audioreach_set_default_channel_mapping(cfg.channel_map, runtime->channels); in q6apm_dai_trigger()
412 for (i = 0; i < runtime->periods; i++) in q6apm_dai_open()
425 struct snd_pcm_runtime *runtime = substream->runtime; in q6apm_dai_open()
426 struct q6apm_dai_rtd *prtd = runtime in q6apm_dai_open()
217 struct snd_pcm_runtime *runtime = substream->runtime; q6apm_dai_prepare() local
316 struct snd_pcm_runtime *runtime = substream->runtime; q6apm_dai_ack() local
341 struct snd_pcm_runtime *runtime = substream->runtime; q6apm_dai_trigger() local
370 struct snd_pcm_runtime *runtime = substream->runtime; q6apm_dai_open() local
458 struct snd_pcm_runtime *runtime = substream->runtime; q6apm_dai_close() local
478 struct snd_pcm_runtime *runtime = substream->runtime; q6apm_dai_pointer() local
512 struct snd_pcm_runtime *runtime = substream->runtime; q6apm_dai_hw_params() local
654 struct snd_compr_runtime *runtime = stream->runtime; q6apm_dai_compr_open() local
701 struct snd_compr_runtime *runtime = stream->runtime; q6apm_dai_compr_free() local
753 struct snd_compr_runtime *runtime = stream->runtime; q6apm_dai_compr_pointer() local
768 struct snd_compr_runtime *runtime = stream->runtime; q6apm_dai_compr_trigger() local
801 struct snd_compr_runtime *runtime = stream->runtime; q6apm_dai_compr_ack() local
814 struct snd_compr_runtime *runtime = stream->runtime; q6apm_dai_compr_set_params() local
890 struct snd_compr_runtime *runtime = stream->runtime; q6apm_dai_compr_set_metadata() local
915 struct snd_compr_runtime *runtime = stream->runtime; q6apm_dai_compr_mmap() local
927 struct snd_compr_runtime *runtime = stream->runtime; q6apm_compr_copy() local
[all...]
/linux/drivers/media/pci/cx18/
H A Dcx18-alsa-pcm.c62 struct snd_pcm_runtime *runtime; in cx18_alsa_announce_pcm_data() local
77 runtime = substream->runtime; in cx18_alsa_announce_pcm_data()
78 if (runtime == NULL) { in cx18_alsa_announce_pcm_data()
83 stride = runtime->frame_bits >> 3; in cx18_alsa_announce_pcm_data()
95 if (runtime->dma_area == NULL) { in cx18_alsa_announce_pcm_data()
101 if (oldptr + length >= runtime->buffer_size) { in cx18_alsa_announce_pcm_data()
103 runtime->buffer_size - oldptr; in cx18_alsa_announce_pcm_data()
104 memcpy(runtime->dma_area + oldptr * stride, pcm_data, in cx18_alsa_announce_pcm_data()
106 memcpy(runtime->dma_area, pcm_data + cnt * stride, in cx18_alsa_announce_pcm_data()
109 memcpy(runtime->dma_area + oldptr * stride, pcm_data, in cx18_alsa_announce_pcm_data()
[all …]
/linux/drivers/gpu/drm/bridge/synopsys/
H A Ddw-hdmi-ahb-audio.c211 struct snd_pcm_runtime *runtime) in dw_hdmi_create_cs() argument
216 snd_pcm_create_iec958_consumer(runtime, cs, sizeof(cs)); in dw_hdmi_create_cs()
321 struct snd_pcm_runtime *runtime = substream->runtime; in dw_hdmi_open() local
327 runtime->hw = dw_hdmi_hw; in dw_hdmi_open()
331 ret = snd_pcm_hw_constraint_eld(runtime, eld); in dw_hdmi_open()
336 ret = snd_pcm_limit_hw_rates(runtime); in dw_hdmi_open()
340 ret = snd_pcm_hw_constraint_integer(runtime, in dw_hdmi_open()
346 ret = snd_pcm_hw_constraint_minmax(runtime, in dw_hdmi_open()
392 struct snd_pcm_runtime *runtime = substream->runtime; in dw_hdmi_hw_free() local
394 vfree(runtime->dma_area); in dw_hdmi_hw_free()
[all …]
/linux/sound/firewire/fireface/
H A Damdtp-ff.c36 struct snd_pcm_runtime *runtime = pcm->runtime; in write_pcm_s32() local
43 pcm_buffer_pointer %= runtime->buffer_size; in write_pcm_s32()
45 src = (void *)runtime->dma_area + in write_pcm_s32()
46 frames_to_bytes(runtime, pcm_buffer_pointer); in write_pcm_s32()
47 remaining_frames = runtime->buffer_size - pcm_buffer_pointer; in write_pcm_s32()
56 src = (void *)runtime->dma_area; in write_pcm_s32()
66 struct snd_pcm_runtime *runtime = pcm->runtime; in read_pcm_s32() local
73 pcm_buffer_pointer %= runtime->buffer_size; in read_pcm_s32()
75 dst = (void *)runtime->dma_area + in read_pcm_s32()
76 frames_to_bytes(runtime, pcm_buffer_pointer); in read_pcm_s32()
[all …]
/linux/sound/pci/ca0106/
H A Dca0106_main.c466 static void snd_ca0106_pcm_free_substream(struct snd_pcm_runtime *runtime) in snd_ca0106_pcm_free_substream() argument
468 kfree(runtime->private_data); in snd_ca0106_pcm_free_substream()
543 struct snd_pcm_runtime *runtime = substream->runtime; in snd_ca0106_pcm_open_playback_channel() local
554 runtime->private_data = epcm; in snd_ca0106_pcm_open_playback_channel()
555 runtime->private_free = snd_ca0106_pcm_free_substream; in snd_ca0106_pcm_open_playback_channel()
557 runtime->hw = snd_ca0106_playback_hw; in snd_ca0106_pcm_open_playback_channel()
569 err = snd_pcm_hw_constraint_integer(runtime, SNDRV_PCM_HW_PARAM_PERIODS); in snd_ca0106_pcm_open_playback_channel()
572 err = snd_pcm_hw_constraint_step(runtime, 0, SNDRV_PCM_HW_PARAM_PERIOD_BYTES, 64); in snd_ca0106_pcm_open_playback_channel()
593 struct snd_pcm_runtime *runtime in snd_ca0106_pcm_close_playback() local
638 struct snd_pcm_runtime *runtime = substream->runtime; snd_ca0106_pcm_open_capture_channel() local
678 struct snd_pcm_runtime *runtime = substream->runtime; snd_ca0106_pcm_close_capture() local
709 struct snd_pcm_runtime *runtime = substream->runtime; snd_ca0106_pcm_prepare_playback() local
822 struct snd_pcm_runtime *runtime = substream->runtime; snd_ca0106_pcm_prepare_capture() local
914 struct snd_pcm_runtime *runtime; snd_ca0106_pcm_trigger_playback() local
981 struct snd_pcm_runtime *runtime = substream->runtime; snd_ca0106_pcm_trigger_capture() local
1009 struct snd_pcm_runtime *runtime = substream->runtime; snd_ca0106_pcm_pointer_playback() local
1039 struct snd_pcm_runtime *runtime = substream->runtime; snd_ca0106_pcm_pointer_capture() local
[all...]
/linux/sound/soc/samsung/
H A Didma.c66 struct snd_pcm_runtime *runtime = substream->runtime; in idma_enqueue() local
67 struct idma_ctrl *prtd = substream->runtime->private_data; in idma_enqueue()
87 val |= (((runtime->dma_bytes >> 2) & in idma_enqueue()
101 struct idma_ctrl *prtd = substream->runtime->private_data; in idma_setcallbk()
130 struct idma_ctrl *prtd = substream->runtime->private_data;
140 struct snd_pcm_runtime *runtime = substream->runtime; in idma_hw_params()
141 struct idma_ctrl *prtd = substream->runtime->private_data; in idma_hw_params()
151 runtime in idma_hw_params()
144 struct snd_pcm_runtime *runtime = substream->runtime; idma_hw_params() local
226 struct snd_pcm_runtime *runtime = substream->runtime; idma_pointer() local
245 struct snd_pcm_runtime *runtime = substream->runtime; idma_mmap() local
287 struct snd_pcm_runtime *runtime = substream->runtime; idma_open() local
314 struct snd_pcm_runtime *runtime = substream->runtime; idma_close() local
[all...]

12345678910>>...28