Home
last modified time | relevance | path

Searched full:runtime (Results 1 – 25 of 1689) sorted by relevance

12345678910>>...68

/linux/sound/core/oss/
H A Dpcm_oss.c533 struct snd_pcm_runtime *runtime = substream->runtime; in snd_pcm_oss_plugin_clear() local
536 plugin = runtime->oss.plugin_first; in snd_pcm_oss_plugin_clear()
542 runtime->oss.plugin_first = runtime->oss.plugin_last = NULL; in snd_pcm_oss_plugin_clear()
548 struct snd_pcm_runtime *runtime = plugin->plug->runtime; in snd_pcm_plugin_insert() local
549 plugin->next = runtime->oss.plugin_first; in snd_pcm_plugin_insert()
551 if (runtime->oss.plugin_first) { in snd_pcm_plugin_insert()
552 runtime in snd_pcm_plugin_insert()
563 struct snd_pcm_runtime *runtime = plugin->plug->runtime; snd_pcm_plugin_append() local
579 struct snd_pcm_runtime *runtime = substream->runtime; snd_pcm_oss_bytes() local
596 struct snd_pcm_runtime *runtime = substream->runtime; snd_pcm_alsa_frames() local
604 get_hw_ptr_period(struct snd_pcm_runtime * runtime) get_hw_ptr_period() argument
681 struct snd_pcm_runtime *runtime = substream->runtime; snd_pcm_oss_period_size() local
818 lock_params(struct snd_pcm_runtime * runtime) lock_params() argument
829 unlock_params(struct snd_pcm_runtime * runtime) unlock_params() argument
836 struct snd_pcm_runtime *runtime = substream->runtime; snd_pcm_oss_release_buffers() local
848 struct snd_pcm_runtime *runtime = substream->runtime; snd_pcm_oss_change_params_locked() local
1095 struct snd_pcm_runtime *runtime = substream->runtime; snd_pcm_oss_change_params() local
1140 struct snd_pcm_runtime *runtime = substream->runtime; snd_pcm_oss_prepare() local
1158 struct snd_pcm_runtime *runtime; snd_pcm_oss_make_ready() local
1181 struct snd_pcm_runtime *runtime; snd_pcm_oss_make_ready_locked() local
1200 struct snd_pcm_runtime *runtime; snd_pcm_oss_capture_position_fixup() local
1225 struct snd_pcm_runtime *runtime = substream->runtime; snd_pcm_oss_write3() local
1256 struct snd_pcm_runtime *runtime = substream->runtime; snd_pcm_oss_read3() local
1300 struct snd_pcm_runtime *runtime = substream->runtime; snd_pcm_oss_writev3() local
1329 struct snd_pcm_runtime *runtime = substream->runtime; snd_pcm_oss_readv3() local
1358 struct snd_pcm_runtime *runtime = substream->runtime; snd_pcm_oss_write2() local
1393 struct snd_pcm_runtime *runtime = substream->runtime; snd_pcm_oss_write1() local
1468 struct snd_pcm_runtime *runtime = substream->runtime; snd_pcm_oss_read2() local
1503 struct snd_pcm_runtime *runtime = substream->runtime; snd_pcm_oss_read1() local
1564 struct snd_pcm_runtime *runtime; snd_pcm_oss_reset() local
1602 struct snd_pcm_runtime *runtime; snd_pcm_oss_sync1() local
1652 struct snd_pcm_runtime *runtime; snd_pcm_oss_sync() local
1750 struct snd_pcm_runtime *runtime; snd_pcm_oss_set_rate() local
1792 struct snd_pcm_runtime *runtime; snd_pcm_oss_set_channels() local
1889 struct snd_pcm_runtime *runtime; snd_pcm_oss_set_format() local
1919 struct snd_pcm_runtime *runtime; snd_pcm_oss_set_subdivide1() local
1944 struct snd_pcm_runtime *runtime; snd_pcm_oss_set_subdivide() local
1962 struct snd_pcm_runtime *runtime; snd_pcm_oss_set_fragment1() local
1987 struct snd_pcm_runtime *runtime; snd_pcm_oss_set_fragment() local
2027 struct snd_pcm_runtime *runtime = substream->runtime; snd_pcm_oss_get_caps1() local
2051 struct snd_pcm_runtime *runtime = substream->runtime; snd_pcm_oss_simulate_fill() local
2060 struct snd_pcm_runtime *runtime; snd_pcm_oss_set_trigger() local
2158 struct snd_pcm_runtime *runtime; snd_pcm_oss_get_odelay() local
2182 struct snd_pcm_runtime *runtime; snd_pcm_oss_get_ptr() local
2252 struct snd_pcm_runtime *runtime; snd_pcm_oss_get_space() local
2358 struct snd_pcm_runtime *runtime; snd_pcm_oss_init_substream() local
2805 struct snd_pcm_runtime *runtime = substream->runtime; snd_pcm_oss_playback_ready() local
2816 struct snd_pcm_runtime *runtime = substream->runtime; snd_pcm_oss_capture_ready() local
2838 struct snd_pcm_runtime *runtime = psubstream->runtime; snd_pcm_oss_poll() local
2848 struct snd_pcm_runtime *runtime = csubstream->runtime; snd_pcm_oss_poll() local
2873 struct snd_pcm_runtime *runtime; snd_pcm_oss_mmap() local
[all...]
/linux/sound/core/
H A Drawmidi.c101 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 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()
606 static int period_to_usecs(struct snd_pcm_runtime *runtime) in period_to_usecs()
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()
601 period_to_usecs(struct snd_pcm_runtime * runtime) period_to_usecs() argument
712 snd_pcm_buffer_access_lock(struct snd_pcm_runtime * runtime) snd_pcm_buffer_access_lock() argument
721 snd_pcm_buffer_access_unlock(struct snd_pcm_runtime * runtime) snd_pcm_buffer_access_unlock() argument
728 snd_pcm_runtime_buffer_set_silence(struct snd_pcm_runtime * runtime) snd_pcm_runtime_buffer_set_silence() argument
747 struct snd_pcm_runtime *runtime; snd_pcm_hw_params() local
912 struct snd_pcm_runtime *runtime; snd_pcm_hw_free() local
946 struct snd_pcm_runtime *runtime; snd_pcm_sw_params() local
1024 struct snd_pcm_runtime *runtime = substream->runtime; snd_pcm_status64() local
1171 struct snd_pcm_runtime *runtime; snd_pcm_channel_info() local
1205 struct snd_pcm_runtime *runtime = substream->runtime; snd_pcm_trigger_tstamp() local
1431 struct snd_pcm_runtime *runtime = substream->runtime; snd_pcm_pre_start() local
1468 struct snd_pcm_runtime *runtime = substream->runtime; snd_pcm_post_start() local
1513 struct snd_pcm_runtime *runtime = substream->runtime; snd_pcm_pre_stop() local
1534 struct snd_pcm_runtime *runtime = substream->runtime; snd_pcm_post_stop() local
1606 struct snd_pcm_runtime *runtime = substream->runtime; snd_pcm_pre_pause() local
1647 struct snd_pcm_runtime *runtime = substream->runtime; snd_pcm_post_pause() local
1689 struct snd_pcm_runtime *runtime = substream->runtime; snd_pcm_pre_suspend() local
1706 struct snd_pcm_runtime *runtime = substream->runtime; snd_pcm_do_suspend() local
1719 struct snd_pcm_runtime *runtime = substream->runtime; snd_pcm_post_suspend() local
1795 struct snd_pcm_runtime *runtime = substream->runtime; snd_pcm_pre_resume() local
1807 struct snd_pcm_runtime *runtime = substream->runtime; snd_pcm_do_resume() local
1829 struct snd_pcm_runtime *runtime = substream->runtime; snd_pcm_post_resume() local
1864 struct snd_pcm_runtime *runtime = substream->runtime; snd_pcm_xrun() local
1885 struct snd_pcm_runtime *runtime = substream->runtime; snd_pcm_pre_reset() local
1900 struct snd_pcm_runtime *runtime = substream->runtime; snd_pcm_do_reset() local
1916 struct snd_pcm_runtime *runtime = substream->runtime; snd_pcm_post_reset() local
1943 struct snd_pcm_runtime *runtime = substream->runtime; snd_pcm_pre_prepare() local
1969 struct snd_pcm_runtime *runtime = substream->runtime; snd_pcm_post_prepare() local
2021 struct snd_pcm_runtime *runtime = substream->runtime; snd_pcm_pre_drain_init() local
2035 struct snd_pcm_runtime *runtime = substream->runtime; snd_pcm_do_drain_init() local
2099 struct snd_pcm_runtime *runtime; snd_pcm_drain() local
2212 struct snd_pcm_runtime *runtime; snd_pcm_drop() local
2499 snd_pcm_hw_constraint_subformats(struct snd_pcm_runtime * runtime,unsigned int cond,u32 * subformats) snd_pcm_hw_constraint_subformats() argument
2510 struct snd_pcm_runtime *runtime = substream->runtime; snd_pcm_hw_constraints_init() local
2634 struct snd_pcm_runtime *runtime = substream->runtime; snd_pcm_hw_constraints_complete() local
2957 struct snd_pcm_runtime *runtime = substream->runtime; forward_appl_ptr() local
2977 struct snd_pcm_runtime *runtime = substream->runtime; rewind_appl_ptr() local
3098 struct snd_pcm_runtime *runtime = substream->runtime; snd_pcm_sync_ptr() local
3167 recalculate_boundary(struct snd_pcm_runtime * runtime) recalculate_boundary() argument
3192 struct snd_pcm_runtime *runtime = substream->runtime; snd_pcm_ioctl_sync_ptr_compat() local
3246 struct snd_pcm_runtime *runtime = substream->runtime; snd_pcm_tstamp() local
3261 struct snd_pcm_runtime *runtime = substream->runtime; snd_pcm_xferi_frames_ioctl() local
3283 struct snd_pcm_runtime *runtime = substream->runtime; snd_pcm_xfern_frames_ioctl() local
3518 struct snd_pcm_runtime *runtime; snd_pcm_read() local
3543 struct snd_pcm_runtime *runtime; snd_pcm_write() local
3567 struct snd_pcm_runtime *runtime; snd_pcm_readv() local
3606 struct snd_pcm_runtime *runtime; snd_pcm_writev() local
3644 struct snd_pcm_runtime *runtime; snd_pcm_poll() local
3703 struct snd_pcm_runtime *runtime; snd_pcm_mmap_status_fault() local
3741 struct snd_pcm_runtime *runtime; snd_pcm_mmap_control_fault() local
3850 struct snd_pcm_runtime *runtime; snd_pcm_mmap_data_fault() local
3933 struct snd_pcm_runtime *runtime = substream->runtime; snd_pcm_lib_mmap_iomem() local
3947 struct snd_pcm_runtime *runtime; snd_pcm_mmap_data() local
4029 struct snd_pcm_runtime *runtime; snd_pcm_fasync() local
4161 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->silence_size: maximal size from application
[all …]
H A Dcompress_offload.c86 struct snd_compr_runtime *runtime; in snd_compr_open() local
129 runtime = kzalloc(sizeof(*runtime), GFP_KERNEL); in snd_compr_open()
130 if (!runtime) { in snd_compr_open()
135 runtime->state = SNDRV_PCM_STATE_OPEN; in snd_compr_open()
136 init_waitqueue_head(&runtime->sleep); in snd_compr_open()
138 INIT_LIST_HEAD(&runtime->tasks); in snd_compr_open()
140 data->stream.runtime = runtime; in snd_compr_open()
145 kfree(runtime); in snd_compr_open()
155 struct snd_compr_runtime *runtime = data->stream.runtime; snd_compr_free() local
269 struct snd_compr_runtime *runtime = stream->runtime; snd_compr_write_data() local
409 struct snd_compr_runtime *runtime; snd_compr_poll() local
536 struct snd_compr_runtime *runtime; snd_compr_free_pages() local
[all...]
/linux/include/linux/
H A Dpm_runtime.h17 /* Runtime PM flag argument bits */
27 * (system suspend, hibernation or runtime PM).
30 * macro, which uses the provided callbacks for both runtime PM and system
102 * pm_suspend_ignore_children - Set runtime PM behavior regarding children.
107 * the runtime PM framework going forward if @enable is %true, or they will
116 * pm_runtime_get_noresume - Bump up runtime PM usage counter of a device.
125 * pm_runtime_put_noidle - Drop runtime PM usage counter of a device.
128 * Decrement the runtime PM usage counter of @dev unless it is 0 already.
136 * pm_runtime_suspended - Check whether or not a device is runtime-suspended.
139 * Return %true if runtime PM is enabled for @dev and its runtime PM status is
[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
51 int bytes = runtime->fragment_size; in aiodma_compr_irq()
99 struct snd_pcm_runtime *runtime = substream->runtime; in uniphier_aiodma_open() local
103 return snd_pcm_hw_constraint_step(runtime, 0, in uniphier_aiodma_open()
110 struct snd_pcm_runtime *runtime = substream->runtime; in uniphier_aiodma_prepare() 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/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/soc/qcom/qdsp6/
H A Dq6apm-dai.c213 struct snd_pcm_runtime *runtime = substream->runtime; in q6apm_dai_prepare()
214 struct q6apm_dai_rtd *prtd = runtime->private_data; in q6apm_dai_prepare()
230 cfg.sample_rate = runtime->rate; in q6apm_dai_prepare()
231 cfg.num_channels = runtime->channels; in q6apm_dai_prepare()
234 audioreach_set_default_channel_mapping(cfg.channel_map, runtime->channels); in q6apm_dai_prepare()
277 for (i = 0; i < runtime->periods; i++) in q6apm_dai_prepare()
290 struct snd_pcm_runtime *runtime = substream->runtime; in q6apm_dai_ack()
291 struct q6apm_dai_rtd *prtd = runtime in q6apm_dai_ack()
212 struct snd_pcm_runtime *runtime = substream->runtime; q6apm_dai_prepare() local
289 struct snd_pcm_runtime *runtime = substream->runtime; q6apm_dai_ack() local
311 struct snd_pcm_runtime *runtime = substream->runtime; q6apm_dai_trigger() local
338 struct snd_pcm_runtime *runtime = substream->runtime; q6apm_dai_open() local
418 struct snd_pcm_runtime *runtime = substream->runtime; q6apm_dai_close() local
437 struct snd_pcm_runtime *runtime = substream->runtime; q6apm_dai_pointer() local
452 struct snd_pcm_runtime *runtime = substream->runtime; q6apm_dai_hw_params() local
484 struct snd_compr_runtime *runtime = stream->runtime; q6apm_dai_compr_open() local
530 struct snd_compr_runtime *runtime = stream->runtime; q6apm_dai_compr_free() local
580 struct snd_compr_runtime *runtime = stream->runtime; q6apm_dai_compr_pointer() local
595 struct snd_compr_runtime *runtime = stream->runtime; q6apm_dai_compr_trigger() local
628 struct snd_compr_runtime *runtime = stream->runtime; q6apm_dai_compr_ack() local
643 struct snd_compr_runtime *runtime = stream->runtime; q6apm_dai_compr_set_params() local
719 struct snd_compr_runtime *runtime = stream->runtime; q6apm_dai_compr_set_metadata() local
744 struct snd_compr_runtime *runtime = stream->runtime; q6apm_dai_compr_mmap() local
756 struct snd_compr_runtime *runtime = stream->runtime; q6apm_compr_copy() local
[all...]
/linux/include/sound/
H A Dpcm.h426 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->status->state = state; /* copy for mmap */ in __snd_pcm_set_state()
734 * @runtime: PCM runtime instance
[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
353 struct snd_pcm_runtime *runtime = substream->runtime; snd_emu10k1_playback_hw_params() local
399 struct snd_pcm_runtime *runtime = substream->runtime; snd_emu10k1_playback_hw_free() local
422 struct snd_pcm_runtime *runtime = substream->runtime; snd_emu10k1_playback_prepare() local
452 struct snd_pcm_runtime *runtime = substream->runtime; snd_emu10k1_efx_playback_prepare() local
501 struct snd_pcm_runtime *runtime = substream->runtime; snd_emu10k1_capture_prepare() local
587 struct snd_pcm_runtime *runtime = substream->runtime; snd_emu10k1_playback_prepare_voices() local
724 struct snd_pcm_runtime *runtime = substream->runtime; snd_emu10k1_playback_trigger() local
769 struct snd_pcm_runtime *runtime = substream->runtime; snd_emu10k1_capture_trigger() local
841 struct snd_pcm_runtime *runtime = substream->runtime; snd_emu10k1_playback_pointer() local
921 struct snd_pcm_runtime *runtime = substream->runtime; snd_emu10k1_efx_playback_trigger() local
987 struct snd_pcm_runtime *runtime = substream->runtime; snd_emu10k1_capture_pointer() local
1101 snd_emu10k1_pcm_free_substream(struct snd_pcm_runtime * runtime) snd_emu10k1_pcm_free_substream() argument
1120 snd_emu10k1_playback_set_constraints(struct snd_pcm_runtime * runtime) snd_emu10k1_playback_set_constraints() argument
1141 struct snd_pcm_runtime *runtime = substream->runtime; snd_emu10k1_efx_playback_open() local
1180 struct snd_pcm_runtime *runtime = substream->runtime; snd_emu10k1_playback_open() local
1231 struct snd_pcm_runtime *runtime = substream->runtime; snd_emu10k1_capture_open() local
1269 struct snd_pcm_runtime *runtime = substream->runtime; snd_emu10k1_capture_mic_open() local
1307 struct snd_pcm_runtime *runtime = substream->runtime; snd_emu10k1_capture_efx_open() local
1656 struct snd_pcm_runtime *runtime = substream->runtime; snd_emu10k1_fx8010_playback_prepare() local
1766 struct snd_pcm_runtime *runtime = substream->runtime; snd_emu10k1_fx8010_playback_open() local
[all...]
H A Dp16v.c155 struct snd_pcm_runtime *runtime = substream->runtime; in snd_p16v_pcm_open_playback_channel() local
163 runtime->hw = snd_p16v_playback_hw; in snd_p16v_pcm_open_playback_channel()
173 err = snd_pcm_hw_constraint_integer(runtime, SNDRV_PCM_HW_PARAM_PERIODS); in snd_p16v_pcm_open_playback_channel()
183 struct snd_pcm_runtime *runtime = substream->runtime; in snd_p16v_pcm_open_capture_channel() local
191 runtime->hw = snd_p16v_capture_hw; in snd_p16v_pcm_open_capture_channel()
193 err = snd_pcm_hw_constraint_integer(runtime, SNDRV_PCM_HW_PARAM_PERIODS); in snd_p16v_pcm_open_capture_channel()
239 struct snd_pcm_runtime *runtime = substream->runtime; in snd_p16v_pcm_prepare_playback() local
306 struct snd_pcm_runtime *runtime = substream->runtime; snd_p16v_pcm_prepare_capture() local
376 struct snd_pcm_runtime *runtime = substream->runtime; snd_p16v_interrupt() local
389 struct snd_pcm_runtime *runtime = substream->runtime; snd_p16v_interrupt() local
406 struct snd_pcm_runtime *runtime; snd_p16v_pcm_trigger_playback() local
458 struct snd_pcm_runtime *runtime = substream->runtime; snd_p16v_pcm_trigger_capture() local
487 struct snd_pcm_runtime *runtime = substream->runtime; snd_p16v_pcm_pointer_playback() local
512 struct snd_pcm_runtime *runtime = substream->runtime; snd_p16v_pcm_pointer_capture() 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()
166 struct snd_pcm_runtime *runtime; snd_gf1_pcm_interrupt_wave() local
341 struct snd_pcm_runtime *runtime = substream->runtime; playback_copy_ack() local
360 struct snd_pcm_runtime *runtime = substream->runtime; snd_gf1_pcm_playback_copy() local
377 struct snd_pcm_runtime *runtime = substream->runtime; snd_gf1_pcm_playback_silence() local
394 struct snd_pcm_runtime *runtime = substream->runtime; snd_gf1_pcm_playback_hw_params() local
441 struct snd_pcm_runtime *runtime = substream->runtime; snd_gf1_pcm_playback_hw_free() local
461 struct snd_pcm_runtime *runtime = substream->runtime; snd_gf1_pcm_playback_prepare() local
475 struct snd_pcm_runtime *runtime = substream->runtime; snd_gf1_pcm_playback_trigger() local
500 struct snd_pcm_runtime *runtime = substream->runtime; snd_gf1_pcm_playback_pointer() local
552 struct snd_pcm_runtime *runtime = substream->runtime; snd_gf1_pcm_capture_prepare() local
638 snd_gf1_pcm_playback_free(struct snd_pcm_runtime * runtime) snd_gf1_pcm_playback_free() argument
647 struct snd_pcm_runtime *runtime = substream->runtime; snd_gf1_pcm_playback_open() local
681 struct snd_pcm_runtime *runtime = substream->runtime; snd_gf1_pcm_playback_close() local
693 struct snd_pcm_runtime *runtime = substream->runtime; snd_gf1_pcm_capture_open() local
[all...]
/linux/sound/drivers/
H A Dpcmtest.c172 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/isa/sb/
H A Dsb16_main.c37 #define runtime_format_bits(runtime) \ argument
38 ((unsigned int)pcm_format_to_bits((runtime)->format))
41 static void snd_sb16_csp_playback_prepare(struct snd_sb *chip, struct snd_pcm_runtime *runtime) in snd_sb16_csp_playback_prepare() argument
49 (runtime_format_bits(runtime) == csp->acc_format)) { in snd_sb16_csp_playback_prepare()
50 /* Supported runtime PCM format for playback */ in snd_sb16_csp_playback_prepare()
57 if (runtime_format_bits(runtime) & (SNDRV_PCM_FMTBIT_S8 | SNDRV_PCM_FMTBIT_U8 | in snd_sb16_csp_playback_prepare()
68 if (csp->ops.csp_autoload(csp, runtime->format, SNDRV_SB_CSP_MODE_DSP_WRITE)) { in snd_sb16_csp_playback_prepare()
76 (runtime->channels > 1) ? in snd_sb16_csp_playback_prepare()
89 static void snd_sb16_csp_capture_prepare(struct snd_sb *chip, struct snd_pcm_runtime *runtime) in snd_sb16_csp_capture_prepare() argument
97 (runtime_format_bits(runtime) in snd_sb16_csp_capture_prepare()
140 snd_sb16_csp_playback_open(struct snd_sb * chip,struct snd_pcm_runtime * runtime) snd_sb16_csp_playback_open() argument
171 snd_sb16_csp_capture_open(struct snd_sb * chip,struct snd_pcm_runtime * runtime) snd_sb16_csp_capture_open() argument
202 snd_sb16_csp_playback_prepare(chip,runtime) global() argument
203 snd_sb16_csp_capture_prepare(chip,runtime) global() argument
205 snd_sb16_csp_playback_open(chip,runtime) global() argument
207 snd_sb16_csp_capture_open(chip,runtime) global() argument
239 struct snd_pcm_runtime *runtime = substream->runtime; snd_sb16_playback_prepare() local
309 struct snd_pcm_runtime *runtime = substream->runtime; snd_sb16_capture_prepare() local
496 struct snd_pcm_runtime *runtime = substream->runtime; snd_sb16_playback_open() local
571 struct snd_pcm_runtime *runtime = substream->runtime; snd_sb16_capture_open() local
[all...]
H A Dsb8_main.c93 struct snd_pcm_runtime *runtime = substream->runtime; in snd_sb8_playback_prepare()
96 unsigned char stereo = runtime->channels > 1; in snd_sb8_playback_prepare()
99 rate = runtime->rate; in snd_sb8_playback_prepare()
102 if (runtime->format == SNDRV_PCM_FORMAT_S16_LE) { in snd_sb8_playback_prepare()
111 if (runtime->channels > 1) { in snd_sb8_playback_prepare()
157 runtime->dma_area[0] = 0x80; in snd_sb8_playback_prepare()
158 snd_dma_program(dma, runtime->dma_addr, 1, DMA_MODE_WRITE); in snd_sb8_playback_prepare()
166 snd_sbdsp_command(chip, 256 - runtime->rate_den / 2); in snd_sb8_playback_prepare()
175 snd_sbdsp_command(chip, 256 - runtime in snd_sb8_playback_prepare()
94 struct snd_pcm_runtime *runtime = substream->runtime; snd_sb8_playback_prepare() local
211 struct snd_pcm_runtime *runtime = substream->runtime; snd_sb8_playback_trigger() local
232 struct snd_pcm_runtime *runtime = substream->runtime; snd_sb8_capture_prepare() local
336 struct snd_pcm_runtime *runtime = substream->runtime; snd_sb8_capture_trigger() local
466 struct snd_pcm_runtime *runtime = substream->runtime; snd_sb8_open() local
[all...]
/linux/sound/soc/dwc/
H A Ddwc-pcm.c26 struct snd_pcm_runtime *runtime, unsigned int tx_ptr, \
29 const u##sample_bits (*p)[2] = (void *)runtime->dma_area; \
30 unsigned int period_pos = tx_ptr % runtime->period_size; \
37 if (++tx_ptr >= runtime->buffer_size) \
40 *period_elapsed = period_pos >= runtime->period_size; \
46 struct snd_pcm_runtime *runtime, unsigned int rx_ptr, \
49 u##sample_bits (*p)[2] = (void *)runtime->dma_area; \
50 unsigned int period_pos = rx_ptr % runtime->period_size; \
57 if (++rx_ptr >= runtime->buffer_size) \
60 *period_elapsed = period_pos >= runtime->period_size; \
[all …]
/linux/sound/atmel/
H A Dac97c.c89 struct snd_pcm_runtime *runtime = substream->runtime; in atmel_ac97c_playback_open() local
93 runtime->hw = atmel_ac97c_hw; in atmel_ac97c_playback_open()
95 runtime->hw.rate_min = chip->cur_rate; in atmel_ac97c_playback_open()
96 runtime->hw.rate_max = chip->cur_rate; in atmel_ac97c_playback_open()
99 runtime->hw.formats = pcm_format_to_bits(chip->cur_format); in atmel_ac97c_playback_open()
107 struct snd_pcm_runtime *runtime = substream->runtime; in atmel_ac97c_capture_open()
111 runtime->hw = atmel_ac97c_hw; in atmel_ac97c_capture_open()
113 runtime in atmel_ac97c_capture_open()
108 struct snd_pcm_runtime *runtime = substream->runtime; atmel_ac97c_capture_open() local
189 struct snd_pcm_runtime *runtime = substream->runtime; atmel_ac97c_playback_prepare() local
271 struct snd_pcm_runtime *runtime = substream->runtime; atmel_ac97c_capture_prepare() local
417 struct snd_pcm_runtime *runtime = substream->runtime; atmel_ac97c_playback_pointer() local
434 struct snd_pcm_runtime *runtime = substream->runtime; atmel_ac97c_capture_pointer() local
475 struct snd_pcm_runtime *runtime; atmel_ac97c_interrupt() local
[all...]
/linux/block/
H A Dblk-pm.c9 * 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/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()
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 Dacp-da7219-max98357a.c247 struct snd_pcm_runtime *runtime = substream->runtime; in cz_da7219_play_startup() local
256 runtime->hw.channels_max = DUAL_CHANNEL; in cz_da7219_play_startup()
257 snd_pcm_hw_constraint_list(runtime, 0, SNDRV_PCM_HW_PARAM_CHANNELS, in cz_da7219_play_startup()
259 snd_pcm_hw_constraint_list(runtime, 0, SNDRV_PCM_HW_PARAM_RATE, in cz_da7219_play_startup()
268 struct snd_pcm_runtime *runtime = substream->runtime; in cz_da7219_cap_startup() local
277 runtime->hw.channels_max = DUAL_CHANNEL; in cz_da7219_cap_startup()
278 snd_pcm_hw_constraint_list(runtime, 0, SNDRV_PCM_HW_PARAM_CHANNELS, in cz_da7219_cap_startup()
280 snd_pcm_hw_constraint_list(runtime, 0, SNDRV_PCM_HW_PARAM_RATE, in cz_da7219_cap_startup()
290 struct snd_pcm_runtime *runtime = substream->runtime; in cz_max_startup() local
299 runtime->hw.channels_max = DUAL_CHANNEL; in cz_max_startup()
[all …]
/linux/Documentation/power/
H A Druntime_pm.rst2 Runtime Power Management Framework for I/O Devices
14 Support for runtime power management (runtime PM) of I/O devices is provided
19 used for queuing all work items related to runtime PM, because this allows
24 * A number of runtime PM fields in the 'power' member of 'struct device' (which
26 be used for synchronizing runtime PM operations with one another.
28 * Three device runtime PM callbacks in 'struct dev_pm_ops' (defined in
31 * A set of helper functions defined in drivers/base/power/runtime.c that can be
32 used for carrying out runtime PM operations in such a way that the
36 The runtime PM callbacks present in 'struct dev_pm_ops', the device runtime PM
38 runtime PM are described below.
[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()
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->dma_bytes = params_buffer_bytes(params); in idma_hw_params()
157 prtd->start = prtd->pos = runtime->dma_addr; in idma_hw_params()
160 prtd->end = runtime->dma_addr + runtime->dma_bytes; in idma_hw_params()
[all …]
/linux/sound/soc/sof/intel/
H A Dhda-pcm.c104 struct hdac_stream *hstream = substream->runtime->private_data; in hda_dsp_pcm_hw_params()
112 dmab = substream->runtime->dma_buffer_p; in hda_dsp_pcm_hw_params()
155 struct hdac_stream *hstream = substream->runtime->private_data; in hda_dsp_pcm_ack()
156 struct snd_pcm_runtime *runtime = substream->runtime; in hda_dsp_pcm_ack() local
160 appl_pos = frames_to_bytes(runtime, runtime->control->appl_ptr); in hda_dsp_pcm_ack()
161 buf_size = frames_to_bytes(runtime, runtime->buffer_size); in hda_dsp_pcm_ack()
178 struct hdac_stream *hstream = substream->runtime->private_data; in hda_dsp_pcm_trigger()
190 struct hdac_stream *hstream = substream->runtime->private_data; in hda_dsp_pcm_pointer()
210 pos = bytes_to_frames(substream->runtime, pos); in hda_dsp_pcm_pointer()
221 struct snd_pcm_runtime *runtime = substream->runtime; in hda_dsp_pcm_open() local
[all …]

12345678910>>...68