| /linux/sound/core/oss/ |
| H A D | pcm_oss.c | 535 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 1260 struct snd_pcm_runtime *runtime = substream->runtime; snd_pcm_oss_read3() local 1304 struct snd_pcm_runtime *runtime = substream->runtime; snd_pcm_oss_writev3() local 1333 struct snd_pcm_runtime *runtime = substream->runtime; snd_pcm_oss_readv3() local 1362 struct snd_pcm_runtime *runtime = substream->runtime; snd_pcm_oss_write2() local 1397 struct snd_pcm_runtime *runtime = substream->runtime; snd_pcm_oss_write1() local 1472 struct snd_pcm_runtime *runtime = substream->runtime; snd_pcm_oss_read2() local 1507 struct snd_pcm_runtime *runtime = substream->runtime; snd_pcm_oss_read1() local 1568 struct snd_pcm_runtime *runtime; snd_pcm_oss_reset() local 1606 struct snd_pcm_runtime *runtime; snd_pcm_oss_sync1() local 1656 struct snd_pcm_runtime *runtime; snd_pcm_oss_sync() local 1754 struct snd_pcm_runtime *runtime; snd_pcm_oss_set_rate() local 1796 struct snd_pcm_runtime *runtime; snd_pcm_oss_set_channels() local 1894 struct snd_pcm_runtime *runtime; snd_pcm_oss_set_format() local 1924 struct snd_pcm_runtime *runtime; snd_pcm_oss_set_subdivide1() local 1949 struct snd_pcm_runtime *runtime; snd_pcm_oss_set_subdivide() local 1967 struct snd_pcm_runtime *runtime; snd_pcm_oss_set_fragment1() local 1992 struct snd_pcm_runtime *runtime; snd_pcm_oss_set_fragment() local 2031 struct snd_pcm_runtime *runtime = substream->runtime; snd_pcm_oss_get_caps1() local 2055 struct snd_pcm_runtime *runtime = substream->runtime; snd_pcm_oss_simulate_fill() local 2064 struct snd_pcm_runtime *runtime; snd_pcm_oss_set_trigger() local 2162 struct snd_pcm_runtime *runtime; snd_pcm_oss_get_odelay() local 2186 struct snd_pcm_runtime *runtime; snd_pcm_oss_get_ptr() local 2256 struct snd_pcm_runtime *runtime; snd_pcm_oss_get_space() local 2362 struct snd_pcm_runtime *runtime; snd_pcm_oss_init_substream() local 2809 struct snd_pcm_runtime *runtime = substream->runtime; snd_pcm_oss_playback_ready() local 2820 struct snd_pcm_runtime *runtime = substream->runtime; snd_pcm_oss_capture_ready() local 2842 struct snd_pcm_runtime *runtime = psubstream->runtime; snd_pcm_oss_poll() local 2852 struct snd_pcm_runtime *runtime = csubstream->runtime; snd_pcm_oss_poll() local 2877 struct snd_pcm_runtime *runtime; snd_pcm_oss_mmap() local [all...] |
| /linux/sound/core/ |
| H A D | rawmidi.c | 101 static inline bool __snd_rawmidi_ready(struct snd_rawmidi_runtime *runtime) in __snd_rawmidi_ready() argument 103 return runtime->avail >= runtime->avail_min; in __snd_rawmidi_ready() 109 return __snd_rawmidi_ready(substream->runtime); in snd_rawmidi_ready() 115 struct snd_rawmidi_runtime *runtime = substream->runtime; in snd_rawmidi_ready_append() local 117 return runtime->avail >= runtime->avail_min && in snd_rawmidi_ready_append() 118 (!substream->append || runtime->avail >= count); in snd_rawmidi_ready_append() 123 struct snd_rawmidi_runtime *runtime = in snd_rawmidi_input_event_work() local 126 if (runtime->event) in snd_rawmidi_input_event_work() 127 runtime->event(runtime->substream); in snd_rawmidi_input_event_work() 131 static inline void snd_rawmidi_buffer_ref(struct snd_rawmidi_runtime *runtime) in snd_rawmidi_buffer_ref() argument [all …]
|
| H A D | pcm_native.c | 266 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() 606 static int period_to_usecs(struct snd_pcm_runtime *runtime) in period_to_usecs() argument 610 if (! runtime->rate) in period_to_usecs() 614 usecs = (750000 / runtime->rate) * runtime->period_size; in period_to_usecs() 615 usecs += ((750000 % runtime in period_to_usecs() 717 snd_pcm_buffer_access_lock(struct snd_pcm_runtime * runtime) snd_pcm_buffer_access_lock() argument 726 snd_pcm_buffer_access_unlock(struct snd_pcm_runtime * runtime) snd_pcm_buffer_access_unlock() argument 733 snd_pcm_runtime_buffer_set_silence(struct snd_pcm_runtime * runtime) snd_pcm_runtime_buffer_set_silence() argument 757 struct snd_pcm_runtime *runtime; snd_pcm_hw_params() local 922 struct snd_pcm_runtime *runtime; snd_pcm_hw_free() local 956 struct snd_pcm_runtime *runtime; snd_pcm_sw_params() local 1034 struct snd_pcm_runtime *runtime = substream->runtime; snd_pcm_status64() local 1181 struct snd_pcm_runtime *runtime; snd_pcm_channel_info() local 1215 struct snd_pcm_runtime *runtime = substream->runtime; snd_pcm_trigger_tstamp() local 1441 struct snd_pcm_runtime *runtime = substream->runtime; snd_pcm_pre_start() local 1478 struct snd_pcm_runtime *runtime = substream->runtime; snd_pcm_post_start() local 1523 struct snd_pcm_runtime *runtime = substream->runtime; snd_pcm_pre_stop() local 1544 struct snd_pcm_runtime *runtime = substream->runtime; snd_pcm_post_stop() local 1616 struct snd_pcm_runtime *runtime = substream->runtime; snd_pcm_pre_pause() local 1657 struct snd_pcm_runtime *runtime = substream->runtime; snd_pcm_post_pause() local 1699 struct snd_pcm_runtime *runtime = substream->runtime; snd_pcm_pre_suspend() local 1716 struct snd_pcm_runtime *runtime = substream->runtime; snd_pcm_do_suspend() local 1729 struct snd_pcm_runtime *runtime = substream->runtime; snd_pcm_post_suspend() local 1805 struct snd_pcm_runtime *runtime = substream->runtime; snd_pcm_pre_resume() local 1817 struct snd_pcm_runtime *runtime = substream->runtime; snd_pcm_do_resume() local 1839 struct snd_pcm_runtime *runtime = substream->runtime; snd_pcm_post_resume() local 1874 struct snd_pcm_runtime *runtime = substream->runtime; snd_pcm_xrun() local 1895 struct snd_pcm_runtime *runtime = substream->runtime; snd_pcm_pre_reset() local 1910 struct snd_pcm_runtime *runtime = substream->runtime; snd_pcm_do_reset() local 1926 struct snd_pcm_runtime *runtime = substream->runtime; snd_pcm_post_reset() local 1953 struct snd_pcm_runtime *runtime = substream->runtime; snd_pcm_pre_prepare() local 1979 struct snd_pcm_runtime *runtime = substream->runtime; snd_pcm_post_prepare() local 2031 struct snd_pcm_runtime *runtime = substream->runtime; snd_pcm_pre_drain_init() local 2045 struct snd_pcm_runtime *runtime = substream->runtime; snd_pcm_do_drain_init() local 2109 struct snd_pcm_runtime *runtime; snd_pcm_drain() local 2235 struct snd_pcm_runtime *runtime; snd_pcm_drop() local 2522 snd_pcm_hw_constraint_subformats(struct snd_pcm_runtime * runtime,unsigned int cond,u32 * subformats) snd_pcm_hw_constraint_subformats() argument 2533 struct snd_pcm_runtime *runtime = substream->runtime; snd_pcm_hw_constraints_init() local 2657 struct snd_pcm_runtime *runtime = substream->runtime; snd_pcm_hw_constraints_complete() local 2980 struct snd_pcm_runtime *runtime = substream->runtime; forward_appl_ptr() local 3000 struct snd_pcm_runtime *runtime = substream->runtime; rewind_appl_ptr() local 3121 struct snd_pcm_runtime *runtime = substream->runtime; snd_pcm_sync_ptr() local 3190 recalculate_boundary(struct snd_pcm_runtime * runtime) recalculate_boundary() argument 3215 struct snd_pcm_runtime *runtime = substream->runtime; snd_pcm_ioctl_sync_ptr_compat() local 3269 struct snd_pcm_runtime *runtime = substream->runtime; snd_pcm_tstamp() local 3284 struct snd_pcm_runtime *runtime = substream->runtime; snd_pcm_xferi_frames_ioctl() local 3306 struct snd_pcm_runtime *runtime = substream->runtime; snd_pcm_xfern_frames_ioctl() local 3541 struct snd_pcm_runtime *runtime; snd_pcm_read() local 3566 struct snd_pcm_runtime *runtime; snd_pcm_write() local 3590 struct snd_pcm_runtime *runtime; snd_pcm_readv() local 3630 struct snd_pcm_runtime *runtime; snd_pcm_writev() local 3669 struct snd_pcm_runtime *runtime; snd_pcm_poll() local 3728 struct snd_pcm_runtime *runtime; snd_pcm_mmap_status_fault() local 3766 struct snd_pcm_runtime *runtime; snd_pcm_mmap_control_fault() local 3875 struct snd_pcm_runtime *runtime; snd_pcm_mmap_data_fault() local 3958 struct snd_pcm_runtime *runtime = substream->runtime; snd_pcm_lib_mmap_iomem() local 3972 struct snd_pcm_runtime *runtime; snd_pcm_mmap_data() local 4054 struct snd_pcm_runtime *runtime; snd_pcm_fasync() local 4186 struct snd_pcm_runtime *runtime = substream->runtime; snd_pcm_get_unmapped_area() local [all...] |
| H A D | pcm_lib.c | 37 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->silence_size: maximal size from application [all …]
|
| H A D | compress_offload.c | 79 struct snd_compr_runtime *runtime; 122 runtime = kzalloc(sizeof(*runtime), GFP_KERNEL); in snd_compr_open() 123 if (!runtime) { in snd_compr_open() 128 runtime->state = SNDRV_PCM_STATE_OPEN; in snd_compr_open() 129 init_waitqueue_head(&runtime->sleep); in snd_compr_open() 131 INIT_LIST_HEAD(&runtime->tasks); in snd_compr_open() 133 data->stream.runtime = runtime; in snd_compr_open() 138 kfree(runtime); in snd_compr_open() 86 struct snd_compr_runtime *runtime; snd_compr_open() local 155 struct snd_compr_runtime *runtime = data->stream.runtime; snd_compr_free() local 294 struct snd_compr_runtime *runtime = stream->runtime; snd_compr_write_data() local 433 struct snd_compr_runtime *runtime; snd_compr_poll() local 560 struct snd_compr_runtime *runtime; snd_compr_free_pages() local [all...] |
| H A D | pcm.c | 376 struct snd_pcm_runtime *runtime; in snd_pcm_substream_proc_hw_params_read() local 379 runtime = substream->runtime; in snd_pcm_substream_proc_hw_params_read() 380 if (!runtime) { in snd_pcm_substream_proc_hw_params_read() 384 if (runtime->state == SNDRV_PCM_STATE_OPEN) { in snd_pcm_substream_proc_hw_params_read() 388 snd_iprintf(buffer, "access: %s\n", snd_pcm_access_name(runtime->access)); in snd_pcm_substream_proc_hw_params_read() 389 snd_iprintf(buffer, "format: %s\n", snd_pcm_format_name(runtime->format)); in snd_pcm_substream_proc_hw_params_read() 390 snd_iprintf(buffer, "subformat: %s\n", snd_pcm_subformat_name(runtime->subformat)); in snd_pcm_substream_proc_hw_params_read() 391 snd_iprintf(buffer, "channels: %u\n", runtime->channels); in snd_pcm_substream_proc_hw_params_read() 392 snd_iprintf(buffer, "rate: %u (%u/%u)\n", runtime->rate, runtime->rate_num, runtime->rate_den); in snd_pcm_substream_proc_hw_params_read() 393 snd_iprintf(buffer, "period_size: %lu\n", runtime->period_size); in snd_pcm_substream_proc_hw_params_read() [all …]
|
| /linux/include/linux/ |
| H A D | pm_runtime.h | 17 /* Runtime PM flag argument bits */ 24 #define RPM_TRANSPARENT 0x10 /* Succeed if runtime PM is disabled */ 28 * (system suspend, hibernation or runtime PM). 31 * macro, which uses the provided callbacks for both runtime PM and system 103 * pm_suspend_ignore_children - Set runtime PM behavior regarding children. 108 * the runtime PM framework going forward if @enable is %true, or they will 117 * pm_runtime_get_noresume - Bump up runtime PM usage counter of a device. 126 * pm_runtime_put_noidle - Drop runtime PM usage counter of a device. 129 * Decrement the runtime PM usage counter of @dev unless it is 0 already. 137 * pm_runtime_suspended - Check whether or not a device is runtime-suspended. [all …]
|
| /linux/sound/soc/uniphier/ |
| H A D | aio-dma.c | 30 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 D | ctpcm.c | 103 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/isa/gus/ |
| H A D | gus_pcm.c | 65 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/drivers/staging/vc04_services/bcm2835-audio/ |
| H A D | bcm2835-pcm.c | 47 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/soc/qcom/qdsp6/ |
| H A D | q6apm-dai.c | 209 struct snd_pcm_runtime *runtime = substream->runtime; in q6apm_dai_prepare() local 210 struct q6apm_dai_rtd *prtd = runtime->private_data; in q6apm_dai_prepare() 226 cfg.sample_rate = runtime->rate; in q6apm_dai_prepare() 227 cfg.num_channels = runtime->channels; in q6apm_dai_prepare() 230 audioreach_set_default_channel_mapping(cfg.channel_map, runtime->channels); in q6apm_dai_prepare() 272 for (i = 0; i < runtime->periods; i++) in q6apm_dai_prepare() 285 struct snd_pcm_runtime *runtime = substream->runtime; in q6apm_dai_ack() 286 struct q6apm_dai_rtd *prtd = runtime in q6apm_dai_ack() local 308 struct snd_pcm_runtime *runtime = substream->runtime; q6apm_dai_trigger() local 335 struct snd_pcm_runtime *runtime = substream->runtime; q6apm_dai_open() local 415 struct snd_pcm_runtime *runtime = substream->runtime; q6apm_dai_close() local 434 struct snd_pcm_runtime *runtime = substream->runtime; q6apm_dai_pointer() local 449 struct snd_pcm_runtime *runtime = substream->runtime; q6apm_dai_hw_params() local 481 struct snd_compr_runtime *runtime = stream->runtime; q6apm_dai_compr_open() local 527 struct snd_compr_runtime *runtime = stream->runtime; q6apm_dai_compr_free() local 578 struct snd_compr_runtime *runtime = stream->runtime; q6apm_dai_compr_pointer() local 593 struct snd_compr_runtime *runtime = stream->runtime; q6apm_dai_compr_trigger() local 626 struct snd_compr_runtime *runtime = stream->runtime; q6apm_dai_compr_ack() local 639 struct snd_compr_runtime *runtime = stream->runtime; q6apm_dai_compr_set_params() local 715 struct snd_compr_runtime *runtime = stream->runtime; q6apm_dai_compr_set_metadata() local 740 struct snd_compr_runtime *runtime = stream->runtime; q6apm_dai_compr_mmap() local 752 struct snd_compr_runtime *runtime = stream->runtime; q6apm_compr_copy() local [all...] |
| H A D | q6asm-dai.c | 209 struct snd_pcm_runtime *runtime = substream->runtime; in q6asm_dai_prepare() local 211 struct q6asm_dai_rtd *prtd = runtime->private_data; in q6asm_dai_prepare() 275 runtime->rate, runtime->channels, NULL, in q6asm_dai_prepare() 280 runtime->rate, in q6asm_dai_prepare() 281 runtime->channels, in q6asm_dai_prepare() 285 for (i = 0; i < runtime->periods; i++) in q6asm_dai_prepare() 308 struct snd_pcm_runtime *runtime = substream->runtime; in q6asm_dai_ack() local 333 struct snd_pcm_runtime *runtime = substream->runtime; q6asm_dai_trigger() local 364 struct snd_pcm_runtime *runtime = substream->runtime; q6asm_dai_open() local 455 struct snd_pcm_runtime *runtime = substream->runtime; q6asm_dai_close() local 479 struct snd_pcm_runtime *runtime = substream->runtime; q6asm_dai_pointer() local 494 struct snd_pcm_runtime *runtime = substream->runtime; q6asm_dai_hw_params() local 610 struct snd_compr_runtime *runtime = stream->runtime; q6asm_dai_compr_open() local 672 struct snd_compr_runtime *runtime = stream->runtime; q6asm_dai_compr_free() local 704 struct snd_compr_runtime *runtime = stream->runtime; __q6asm_dai_compr_set_codec_params() local 881 struct snd_compr_runtime *runtime = stream->runtime; q6asm_dai_compr_set_params() local 957 struct snd_compr_runtime *runtime = stream->runtime; q6asm_dai_compr_set_metadata() local 1005 struct snd_compr_runtime *runtime = stream->runtime; q6asm_dai_compr_trigger() local 1046 struct snd_compr_runtime *runtime = stream->runtime; q6asm_dai_compr_pointer() local 1063 struct snd_compr_runtime *runtime = stream->runtime; q6asm_compr_copy() local 1133 struct snd_compr_runtime *runtime = stream->runtime; q6asm_dai_compr_mmap() local [all...] |
| /linux/include/sound/ |
| H A D | pcm.h | 426 void (*private_free)(struct snd_pcm_runtime *runtime); 477 /* -- runtime information -- */ 478 struct snd_pcm_runtime *runtime; member 713 return (substream->runtime->state == SNDRV_PCM_STATE_RUNNING || in snd_pcm_running() 714 (substream->runtime->state == SNDRV_PCM_STATE_DRAINING && in snd_pcm_running() 720 * @runtime: PCM runtime to set 725 static inline void __snd_pcm_set_state(struct snd_pcm_runtime *runtime, in __snd_pcm_set_state() argument 728 runtime->state = state; in __snd_pcm_set_state() 729 runtime in __snd_pcm_set_state() 739 bytes_to_samples(struct snd_pcm_runtime * runtime,ssize_t size) bytes_to_samples() argument 751 bytes_to_frames(struct snd_pcm_runtime * runtime,ssize_t size) bytes_to_frames() argument 763 samples_to_bytes(struct snd_pcm_runtime * runtime,ssize_t size) samples_to_bytes() argument 775 frames_to_bytes(struct snd_pcm_runtime * runtime,snd_pcm_sframes_t size) frames_to_bytes() argument 787 frame_aligned(struct snd_pcm_runtime * runtime,ssize_t bytes) frame_aligned() argument 800 struct snd_pcm_runtime *runtime = substream->runtime; snd_pcm_lib_buffer_bytes() local 812 struct snd_pcm_runtime *runtime = substream->runtime; snd_pcm_lib_period_bytes() local 824 snd_pcm_playback_avail(struct snd_pcm_runtime * runtime) snd_pcm_playback_avail() argument 842 snd_pcm_capture_avail(struct snd_pcm_runtime * runtime) snd_pcm_capture_avail() argument 856 snd_pcm_playback_hw_avail(struct snd_pcm_runtime * runtime) snd_pcm_playback_hw_avail() argument 867 snd_pcm_capture_hw_avail(struct snd_pcm_runtime * runtime) snd_pcm_capture_hw_avail() argument 882 struct snd_pcm_runtime *runtime = substream->runtime; snd_pcm_playback_ready() local 896 struct snd_pcm_runtime *runtime = substream->runtime; snd_pcm_capture_ready() local 911 struct snd_pcm_runtime *runtime = substream->runtime; snd_pcm_playback_data() local 928 struct snd_pcm_runtime *runtime = substream->runtime; snd_pcm_playback_empty() local 942 struct snd_pcm_runtime *runtime = substream->runtime; snd_pcm_capture_empty() local 1132 snd_pcm_hw_constraint_single(struct snd_pcm_runtime * runtime,snd_pcm_hw_param_t var,unsigned int val) snd_pcm_hw_constraint_single() argument 1245 snd_pcm_limit_hw_rates(struct snd_pcm_runtime * runtime) snd_pcm_limit_hw_rates() argument 1266 struct snd_pcm_runtime *runtime = substream->runtime; snd_pcm_set_runtime_buffer() local 1285 snd_pcm_gettime(struct snd_pcm_runtime * runtime,struct timespec64 * tv) snd_pcm_gettime() argument [all...] |
| /linux/sound/pci/emu10k1/ |
| H A D | emupcm.c | 33 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/drivers/ |
| H A D | pcmtest.c | 172 static void check_buf_block_i(struct pcmtst_buf_iter *v_iter, struct snd_pcm_runtime *runtime) in check_buf_block_i() argument 179 current_byte = runtime->dma_area[v_iter->buf_pos]; in check_buf_block_i() 182 ch_num = (v_iter->total_bytes / v_iter->sample_bytes) % runtime->channels; in check_buf_block_i() 184 runtime->channels, in check_buf_block_i() 190 inc_buf_pos(v_iter, 1, runtime->dma_bytes); in check_buf_block_i() 193 inc_buf_pos(v_iter, v_iter->b_rw - i, runtime->dma_bytes); in check_buf_block_i() 196 static void check_buf_block_ni(struct pcmtst_buf_iter *v_iter, struct snd_pcm_runtime *runtime) in check_buf_block_ni() argument 198 unsigned int channels = runtime->channels; in check_buf_block_ni() 205 current_byte = runtime->dma_area[buf_pos_n(v_iter, channels, ch_num)]; in check_buf_block_ni() 213 inc_buf_pos(v_iter, 1, runtime->dma_bytes); in check_buf_block_ni() [all …]
|
| /linux/sound/soc/bcm/ |
| H A D | bcm63xx-pcm-whistler.c | 148 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/scripts/ |
| H A D | container | 19 """Base class for a container runtime implementation""" 32 """Determine whether the runtime is present on the system""" 37 """Runtime-specific handler to run a command in a container""" 41 """Runtime-specific handler to abort a running container""" 44 """Run a command in a runtime container""" 112 """Get a list of all the runtime names""" 113 return list(runtime.name for runtime in cls.runtimes) 117 """Get a single runtime class matching the given name""" 118 for runtime in cls.runtimes: 119 if runtime.name == name: [all …]
|
| /linux/sound/soc/dwc/ |
| H A D | dwc-pcm.c | 23 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/drivers/media/pci/cobalt/ |
| H A D | cobalt-alsa-pcm.c | 102 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() 121 dprintk("runtime was NULL\n"); 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() [all …]
|
| /linux/sound/soc/amd/ |
| H A D | acp-da7219-max98357a.c | 244 struct snd_pcm_runtime *runtime = substream->runtime; 253 runtime->hw.channels_max = DUAL_CHANNEL; in cz_da7219_play_startup() 254 snd_pcm_hw_constraint_list(runtime, 0, SNDRV_PCM_HW_PARAM_CHANNELS, in cz_da7219_play_startup() 256 snd_pcm_hw_constraint_list(runtime, 0, SNDRV_PCM_HW_PARAM_RATE, in cz_da7219_play_startup() 265 struct snd_pcm_runtime *runtime = substream->runtime; 274 runtime->hw.channels_max = DUAL_CHANNEL; in cz_da7219_cap_startup() 275 snd_pcm_hw_constraint_list(runtime, 0, SNDRV_PCM_HW_PARAM_CHANNELS, in cz_da7219_cap_startup() 277 snd_pcm_hw_constraint_list(runtime, in cz_da7219_cap_startup() 247 struct snd_pcm_runtime *runtime = substream->runtime; cz_da7219_play_startup() local 268 struct snd_pcm_runtime *runtime = substream->runtime; cz_da7219_cap_startup() local 290 struct snd_pcm_runtime *runtime = substream->runtime; cz_max_startup() local 311 struct snd_pcm_runtime *runtime = substream->runtime; cz_dmic0_startup() local 332 struct snd_pcm_runtime *runtime = substream->runtime; cz_dmic1_startup() local 359 struct snd_pcm_runtime *runtime = substream->runtime; cz_rt5682_play_startup() local 380 struct snd_pcm_runtime *runtime = substream->runtime; cz_rt5682_cap_startup() local 402 struct snd_pcm_runtime *runtime = substream->runtime; cz_rt5682_max_startup() local 423 struct snd_pcm_runtime *runtime = substream->runtime; cz_rt5682_dmic0_startup() local 444 struct snd_pcm_runtime *runtime = substream->runtime; cz_rt5682_dmic1_startup() local [all...] |
| /linux/block/ |
| H A D | blk-pm.c | 9 * blk_pm_runtime_init - Block layer runtime PM initialization routine 14 * Initialize runtime-PM-related fields for @q and start auto suspend for 15 * @dev. Drivers that want to take advantage of request-based runtime PM 17 * request queue @q has been allocated, and runtime PM for it can not happen 22 * the autosuspend delay is set to -1 to make runtime suspend impossible 26 * The block layer runtime PM is request based, so only works for drivers 39 * blk_pre_runtime_suspend - Pre runtime suspend check 43 * This function will check if runtime suspend is allowed for the device 45 * are requests pending, the device can not be runtime suspended; otherwise, 50 * runtime PM core will try to autosuspend it some time later. [all …]
|
| /linux/sound/soc/samsung/ |
| H A D | idma.c | 66 struct snd_pcm_runtime *runtime = substream->runtime; in idma_enqueue() local 67 struct idma_ctrl *prtd = substream->runtime->private_data; in idma_enqueue() 88 val |= (((runtime->dma_bytes >> 2) & in idma_enqueue() 102 struct idma_ctrl *prtd = substream->runtime->private_data; in idma_setcallbk() 134 struct idma_ctrl *prtd = substream->runtime->private_data; in idma_done() 144 struct snd_pcm_runtime *runtime = substream->runtime; in idma_hw_params() local 145 struct idma_ctrl *prtd = substream->runtime->private_data; in idma_hw_params() 155 runtime in idma_hw_params() 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...] |
| /linux/sound/soc/sprd/ |
| H A D | sprd-pcm-dma.c | 52 struct snd_pcm_runtime *runtime = substream->runtime; in sprd_pcm_open() local 60 ret = snd_pcm_hw_constraint_step(runtime, 0, in sprd_pcm_open() 66 ret = snd_pcm_hw_constraint_step(runtime, 0, in sprd_pcm_open() 72 ret = snd_pcm_hw_constraint_integer(runtime, in sprd_pcm_open() 81 size = runtime->hw.periods_max * SPRD_PCM_DMA_LINKLIST_SIZE; in sprd_pcm_open() 95 runtime->private_data = dma_private; in sprd_pcm_open() 115 struct snd_pcm_runtime *runtime = substream->runtime; in sprd_pcm_close() local 116 struct sprd_pcm_dma_private *dma_private = runtime in sprd_pcm_close() 142 struct snd_pcm_runtime *runtime = substream->runtime; sprd_pcm_release_dma_channel() local 160 struct snd_pcm_runtime *runtime = substream->runtime; sprd_pcm_request_dma_channel() local 191 struct snd_pcm_runtime *runtime = substream->runtime; sprd_pcm_hw_params() local 380 struct snd_pcm_runtime *runtime = substream->runtime; sprd_pcm_pointer() local [all...] |
| /linux/sound/firewire/fireface/ |
| H A D | amdtp-ff.c | 36 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 …]
|