Home
last modified time | relevance | path

Searched refs:runtime (Results 1 – 200 of 530) sorted by relevance

123

/linux-4.4.14/sound/core/
Drawmidi.c90 struct snd_rawmidi_runtime *runtime = substream->runtime; in snd_rawmidi_ready() local
91 return runtime->avail >= runtime->avail_min; in snd_rawmidi_ready()
97 struct snd_rawmidi_runtime *runtime = substream->runtime; in snd_rawmidi_ready_append() local
98 return runtime->avail >= runtime->avail_min && in snd_rawmidi_ready_append()
99 (!substream->append || runtime->avail >= count); in snd_rawmidi_ready_append()
104 struct snd_rawmidi_runtime *runtime = in snd_rawmidi_input_event_work() local
106 if (runtime->event) in snd_rawmidi_input_event_work()
107 runtime->event(runtime->substream); in snd_rawmidi_input_event_work()
112 struct snd_rawmidi_runtime *runtime; in snd_rawmidi_runtime_create() local
114 if ((runtime = kzalloc(sizeof(*runtime), GFP_KERNEL)) == NULL) in snd_rawmidi_runtime_create()
[all …]
Dpcm_lib.c55 struct snd_pcm_runtime *runtime = substream->runtime; in snd_pcm_playback_silence() local
58 if (runtime->silence_size < runtime->boundary) { in snd_pcm_playback_silence()
60 if (runtime->silence_start != runtime->control->appl_ptr) { in snd_pcm_playback_silence()
61 n = runtime->control->appl_ptr - runtime->silence_start; in snd_pcm_playback_silence()
63 n += runtime->boundary; in snd_pcm_playback_silence()
64 if ((snd_pcm_uframes_t)n < runtime->silence_filled) in snd_pcm_playback_silence()
65 runtime->silence_filled -= n; in snd_pcm_playback_silence()
67 runtime->silence_filled = 0; in snd_pcm_playback_silence()
68 runtime->silence_start = runtime->control->appl_ptr; in snd_pcm_playback_silence()
70 if (runtime->silence_filled >= runtime->buffer_size) in snd_pcm_playback_silence()
[all …]
Dpcm_native.c199 struct snd_pcm_runtime *runtime; in snd_pcm_info() local
215 runtime = substream->runtime; in snd_pcm_info()
217 if (runtime) { in snd_pcm_info()
218 info->sync = runtime->sync; in snd_pcm_info()
244 if (!(substream->runtime->hw.info & SNDRV_PCM_INFO_MMAP)) in hw_support_mmap()
287 struct snd_pcm_hw_constraints *constrs = &substream->runtime->hw_constraints; in snd_pcm_hw_refine()
433 hw = &substream->runtime->hw; in snd_pcm_hw_refine()
478 static int period_to_usecs(struct snd_pcm_runtime *runtime) in period_to_usecs() argument
482 if (! runtime->rate) in period_to_usecs()
486 usecs = (750000 / runtime->rate) * runtime->period_size; in period_to_usecs()
[all …]
Dcompress_offload.c87 struct snd_compr_runtime *runtime; in snd_compr_open() local
125 runtime = kzalloc(sizeof(*runtime), GFP_KERNEL); in snd_compr_open()
126 if (!runtime) { in snd_compr_open()
131 runtime->state = SNDRV_PCM_STATE_OPEN; in snd_compr_open()
132 init_waitqueue_head(&runtime->sleep); in snd_compr_open()
133 data->stream.runtime = runtime; in snd_compr_open()
139 kfree(runtime); in snd_compr_open()
149 struct snd_compr_runtime *runtime = data->stream.runtime; in snd_compr_free() local
151 switch (runtime->state) { in snd_compr_free()
162 kfree(data->stream.runtime->buffer); in snd_compr_free()
[all …]
Dpcm_memory.c164 if (substream->runtime) { in snd_pcm_lib_preallocate_proc_write()
334 struct snd_pcm_runtime *runtime; in snd_pcm_lib_malloc_pages() local
342 runtime = substream->runtime; in snd_pcm_lib_malloc_pages()
344 if (runtime->dma_buffer_p) { in snd_pcm_lib_malloc_pages()
348 if (runtime->dma_buffer_p->bytes >= size) { in snd_pcm_lib_malloc_pages()
349 runtime->dma_bytes = size; in snd_pcm_lib_malloc_pages()
370 runtime->dma_bytes = size; in snd_pcm_lib_malloc_pages()
386 struct snd_pcm_runtime *runtime; in snd_pcm_lib_free_pages() local
390 runtime = substream->runtime; in snd_pcm_lib_free_pages()
391 if (runtime->dma_area == NULL) in snd_pcm_lib_free_pages()
[all …]
Dpcm.c386 struct snd_pcm_runtime *runtime; in snd_pcm_substream_proc_hw_params_read() local
389 runtime = substream->runtime; in snd_pcm_substream_proc_hw_params_read()
390 if (!runtime) { in snd_pcm_substream_proc_hw_params_read()
394 if (runtime->status->state == SNDRV_PCM_STATE_OPEN) { in snd_pcm_substream_proc_hw_params_read()
398 snd_iprintf(buffer, "access: %s\n", snd_pcm_access_name(runtime->access)); in snd_pcm_substream_proc_hw_params_read()
399 snd_iprintf(buffer, "format: %s\n", snd_pcm_format_name(runtime->format)); in snd_pcm_substream_proc_hw_params_read()
400 snd_iprintf(buffer, "subformat: %s\n", snd_pcm_subformat_name(runtime->subformat)); in snd_pcm_substream_proc_hw_params_read()
401 snd_iprintf(buffer, "channels: %u\n", runtime->channels); in snd_pcm_substream_proc_hw_params_read()
402 snd_iprintf(buffer, "rate: %u (%u/%u)\n", runtime->rate, runtime->rate_num, runtime->rate_den); in snd_pcm_substream_proc_hw_params_read()
403 snd_iprintf(buffer, "period_size: %lu\n", runtime->period_size); in snd_pcm_substream_proc_hw_params_read()
[all …]
Dpcm_timer.c35 struct snd_pcm_runtime *runtime = substream->runtime; in snd_pcm_timer_resolution_change() local
38 rate = runtime->rate; in snd_pcm_timer_resolution_change()
44 fsize = runtime->period_size; in snd_pcm_timer_resolution_change()
58 runtime->rate, runtime->period_size); in snd_pcm_timer_resolution_change()
59 runtime->timer_resolution = -1; in snd_pcm_timer_resolution_change()
62 runtime->timer_resolution = (mult * fsize / rate) * post; in snd_pcm_timer_resolution_change()
70 return substream->runtime ? substream->runtime->timer_resolution : 0; in snd_pcm_timer_resolution()
Dpcm_compat.c110 static snd_pcm_uframes_t recalculate_boundary(struct snd_pcm_runtime *runtime) in recalculate_boundary() argument
114 if (! runtime->buffer_size) in recalculate_boundary()
116 boundary = runtime->buffer_size; in recalculate_boundary()
117 while (boundary * 2 <= 0x7fffffffUL - runtime->buffer_size) in recalculate_boundary()
146 boundary = recalculate_boundary(substream->runtime); in snd_pcm_ioctl_sw_params_compat()
148 params.silence_size = substream->runtime->boundary; in snd_pcm_ioctl_sw_params_compat()
325 struct snd_pcm_runtime *runtime; in snd_pcm_ioctl_hw_params_compat() local
328 if (! (runtime = substream->runtime)) in snd_pcm_ioctl_hw_params_compat()
354 unsigned int new_boundary = recalculate_boundary(runtime); in snd_pcm_ioctl_hw_params_compat()
356 runtime->boundary = new_boundary; in snd_pcm_ioctl_hw_params_compat()
[all …]
Dpcm_trace.h32 __entry->period_size = (substream)->runtime->period_size;
33 __entry->buffer_size = (substream)->runtime->buffer_size;
34 __entry->old_hw_ptr = (substream)->runtime->status->hw_ptr;
35 __entry->hw_ptr_base = (substream)->runtime->hw_ptr_base;
67 __entry->period_size = (substream)->runtime->period_size;
68 __entry->buffer_size = (substream)->runtime->buffer_size;
69 __entry->old_hw_ptr = (substream)->runtime->status->hw_ptr;
70 __entry->hw_ptr_base = (substream)->runtime->hw_ptr_base;
Dpcm_dmaengine.c41 return substream->runtime->private_data; in substream_to_prtd()
155 if (!substream->runtime->no_period_wakeup) in dmaengine_pcm_prepare_and_submit()
160 substream->runtime->dma_addr, in dmaengine_pcm_prepare_and_submit()
187 struct snd_pcm_runtime *runtime = substream->runtime; in snd_dmaengine_pcm_trigger() local
202 if (runtime->info & SNDRV_PCM_INFO_PAUSE) in snd_dmaengine_pcm_trigger()
231 return bytes_to_frames(substream->runtime, prtd->pos); in snd_dmaengine_pcm_pointer_no_residue()
257 return bytes_to_frames(substream->runtime, pos); in snd_dmaengine_pcm_pointer()
303 ret = snd_pcm_hw_constraint_integer(substream->runtime, in snd_dmaengine_pcm_open()
314 substream->runtime->private_data = prtd; in snd_dmaengine_pcm_open()
Dpcm_iec958.c27 int snd_pcm_create_iec958_consumer(struct snd_pcm_runtime *runtime, u8 *cs, in snd_pcm_create_iec958_consumer() argument
35 switch (runtime->rate) { in snd_pcm_create_iec958_consumer()
62 switch (snd_pcm_format_width(runtime->format)) { in snd_pcm_create_iec958_consumer()
Dpcm_drm_eld.c83 int snd_pcm_hw_constraint_eld(struct snd_pcm_runtime *runtime, void *eld) in snd_pcm_hw_constraint_eld() argument
87 ret = snd_pcm_hw_rule_add(runtime, 0, SNDRV_PCM_HW_PARAM_RATE, in snd_pcm_hw_constraint_eld()
93 ret = snd_pcm_hw_rule_add(runtime, 0, SNDRV_PCM_HW_PARAM_CHANNELS, in snd_pcm_hw_constraint_eld()
Dpcm_misc.c474 int snd_pcm_limit_hw_rates(struct snd_pcm_runtime *runtime) in snd_pcm_limit_hw_rates() argument
478 if (runtime->hw.rates & (1 << i)) { in snd_pcm_limit_hw_rates()
479 runtime->hw.rate_min = snd_pcm_known_rates.list[i]; in snd_pcm_limit_hw_rates()
484 if (runtime->hw.rates & (1 << i)) { in snd_pcm_limit_hw_rates()
485 runtime->hw.rate_max = snd_pcm_known_rates.list[i]; in snd_pcm_limit_hw_rates()
/linux-4.4.14/sound/core/oss/
Dpcm_oss.c567 struct snd_pcm_runtime *runtime = substream->runtime; in snd_pcm_oss_plugin_clear() local
570 plugin = runtime->oss.plugin_first; in snd_pcm_oss_plugin_clear()
576 runtime->oss.plugin_first = runtime->oss.plugin_last = NULL; in snd_pcm_oss_plugin_clear()
582 struct snd_pcm_runtime *runtime = plugin->plug->runtime; in snd_pcm_plugin_insert() local
583 plugin->next = runtime->oss.plugin_first; in snd_pcm_plugin_insert()
585 if (runtime->oss.plugin_first) { in snd_pcm_plugin_insert()
586 runtime->oss.plugin_first->prev = plugin; in snd_pcm_plugin_insert()
587 runtime->oss.plugin_first = plugin; in snd_pcm_plugin_insert()
589 runtime->oss.plugin_last = in snd_pcm_plugin_insert()
590 runtime->oss.plugin_first = plugin; in snd_pcm_plugin_insert()
[all …]
/linux-4.4.14/sound/soc/blackfin/
Dbf5xx-ac97-pcm.c58 struct snd_pcm_runtime *runtime = substream->runtime; in bf5xx_mmap_copy() local
59 struct sport_device *sport = runtime->private_data; in bf5xx_mmap_copy()
60 unsigned int chan_mask = ac97_chan_mask[runtime->channels - 1]; in bf5xx_mmap_copy()
63 sport->tx_pos, (__u16 *)runtime->dma_area + sport->tx_pos * in bf5xx_mmap_copy()
64 runtime->channels, count, chan_mask); in bf5xx_mmap_copy()
65 sport->tx_pos += runtime->period_size; in bf5xx_mmap_copy()
66 if (sport->tx_pos >= runtime->buffer_size) in bf5xx_mmap_copy()
67 sport->tx_pos %= runtime->buffer_size; in bf5xx_mmap_copy()
71 sport->rx_pos, (__u16 *)runtime->dma_area + sport->rx_pos * in bf5xx_mmap_copy()
72 runtime->channels, count); in bf5xx_mmap_copy()
[all …]
Dbf5xx-i2s-pcm.c88 struct snd_pcm_runtime *runtime = substream->runtime; in bf5xx_pcm_prepare() local
89 struct sport_device *sport = runtime->private_data; in bf5xx_pcm_prepare()
90 int period_bytes = frames_to_bytes(runtime, runtime->period_size); in bf5xx_pcm_prepare()
96 period_bytes = period_bytes / runtime->channels * 8; in bf5xx_pcm_prepare()
101 sport_config_tx_dma(sport, runtime->dma_area, in bf5xx_pcm_prepare()
102 runtime->periods, period_bytes); in bf5xx_pcm_prepare()
105 sport_config_rx_dma(sport, runtime->dma_area, in bf5xx_pcm_prepare()
106 runtime->periods, period_bytes); in bf5xx_pcm_prepare()
114 struct snd_pcm_runtime *runtime = substream->runtime; in bf5xx_pcm_trigger() local
115 struct sport_device *sport = runtime->private_data; in bf5xx_pcm_trigger()
[all …]
/linux-4.4.14/sound/soc/nuc900/
Dnuc900-pcm.c50 struct snd_pcm_runtime *runtime = substream->runtime; in nuc900_update_dma_register() local
51 struct nuc900_audio *nuc900_audio = runtime->private_data; in nuc900_update_dma_register()
62 AUDIO_WRITE(mmio_addr, runtime->dma_addr); in nuc900_update_dma_register()
63 AUDIO_WRITE(mmio_len, runtime->dma_bytes); in nuc900_update_dma_register()
68 struct snd_pcm_runtime *runtime = substream->runtime; in nuc900_dma_start() local
69 struct nuc900_audio *nuc900_audio = runtime->private_data; in nuc900_dma_start()
79 struct snd_pcm_runtime *runtime = substream->runtime; in nuc900_dma_stop() local
80 struct nuc900_audio *nuc900_audio = runtime->private_data; in nuc900_dma_stop()
91 struct nuc900_audio *nuc900_audio = substream->runtime->private_data; in nuc900_dma_interrupt()
147 struct snd_pcm_runtime *runtime = substream->runtime; in nuc900_dma_prepare() local
[all …]
/linux-4.4.14/sound/pci/ctxfi/
Dctpcm.c107 static void ct_atc_pcm_free_substream(struct snd_pcm_runtime *runtime) in ct_atc_pcm_free_substream() argument
109 struct ct_atc_pcm *apcm = runtime->private_data; in ct_atc_pcm_free_substream()
115 runtime->private_data = NULL; in ct_atc_pcm_free_substream()
122 struct snd_pcm_runtime *runtime = substream->runtime; in ct_pcm_playback_open() local
133 runtime->hw = ct_spdif_passthru_playback_hw; in ct_pcm_playback_open()
136 runtime->hw = ct_pcm_playback_hw; in ct_pcm_playback_open()
138 runtime->hw.channels_max = 8; in ct_pcm_playback_open()
141 err = snd_pcm_hw_constraint_integer(runtime, in ct_pcm_playback_open()
147 err = snd_pcm_hw_constraint_minmax(runtime, in ct_pcm_playback_open()
160 runtime->private_data = apcm; in ct_pcm_playback_open()
[all …]
Dcttimer.c70 struct snd_pcm_runtime *runtime = substream->runtime; in ct_systimer_callback() local
72 unsigned int period_size = runtime->period_size; in ct_systimer_callback()
73 unsigned int buffer_size = runtime->buffer_size; in ct_systimer_callback()
87 * HZ + (runtime->rate - 1)) / runtime->rate + HZ * 5 / 1000; in ct_systimer_callback()
102 struct snd_pcm_runtime *runtime = ti->substream->runtime; in ct_systimer_start() local
108 jiffies + (runtime->period_size * HZ + in ct_systimer_start()
109 (runtime->rate - 1)) / runtime->rate); in ct_systimer_start()
206 period_size = ti->substream->runtime->period_size; in ct_xfitimer_reprogram()
207 rate = ti->substream->runtime->rate; in ct_xfitimer_reprogram()
269 ti->frag_count = ti->substream->runtime->period_size; in ct_xfitimer_prepare()
Dctatc.c138 struct snd_pcm_runtime *runtime; in ct_map_audio_buffer() local
144 runtime = apcm->substream->runtime; in ct_map_audio_buffer()
147 apcm->vm_block = vm->map(vm, apcm->substream, runtime->dma_bytes); in ct_map_audio_buffer()
252 int n_amixer = apcm->substream->runtime->channels, i = 0; in atc_pcm_playback_prepare()
260 desc.multi = apcm->substream->runtime->channels; in atc_pcm_playback_prepare()
267 pitch = atc_get_pitch(apcm->substream->runtime->rate, in atc_pcm_playback_prepare()
272 src->ops->set_sf(src, convert_format(apcm->substream->runtime->format, in atc_pcm_playback_prepare()
469 apcm->substream->runtime->rate); in setup_src_node_conf()
473 *n_srcc = apcm->substream->runtime->channels; in setup_src_node_conf()
486 apcm->substream->runtime->rate); in setup_src_node_conf()
[all …]
/linux-4.4.14/drivers/media/pci/cx18/
Dcx18-alsa-pcm.c77 struct snd_pcm_runtime *runtime; in cx18_alsa_announce_pcm_data() local
92 runtime = substream->runtime; in cx18_alsa_announce_pcm_data()
93 if (runtime == NULL) { in cx18_alsa_announce_pcm_data()
98 stride = runtime->frame_bits >> 3; in cx18_alsa_announce_pcm_data()
110 if (runtime->dma_area == NULL) { in cx18_alsa_announce_pcm_data()
116 if (oldptr + length >= runtime->buffer_size) { in cx18_alsa_announce_pcm_data()
118 runtime->buffer_size - oldptr; in cx18_alsa_announce_pcm_data()
119 memcpy(runtime->dma_area + oldptr * stride, pcm_data, in cx18_alsa_announce_pcm_data()
121 memcpy(runtime->dma_area, pcm_data + cnt * stride, in cx18_alsa_announce_pcm_data()
124 memcpy(runtime->dma_area + oldptr * stride, pcm_data, in cx18_alsa_announce_pcm_data()
[all …]
/linux-4.4.14/drivers/media/pci/cobalt/
Dcobalt-alsa-pcm.c115 struct snd_pcm_runtime *runtime; in cobalt_alsa_announce_pcm_data() local
132 runtime = substream->runtime; in cobalt_alsa_announce_pcm_data()
133 if (runtime == NULL) { in cobalt_alsa_announce_pcm_data()
137 is_s32 = runtime->format == SNDRV_PCM_FORMAT_S32_LE; in cobalt_alsa_announce_pcm_data()
139 stride = runtime->frame_bits >> 3; in cobalt_alsa_announce_pcm_data()
150 if (runtime->dma_area == NULL) { in cobalt_alsa_announce_pcm_data()
156 if (oldptr + length >= runtime->buffer_size) { in cobalt_alsa_announce_pcm_data()
157 unsigned int cnt = runtime->buffer_size - oldptr; in cobalt_alsa_announce_pcm_data()
161 sample_cpy(runtime->dma_area + (oldptr + i) * stride, in cobalt_alsa_announce_pcm_data()
165 sample_cpy(runtime->dma_area + (i - cnt) * stride, in cobalt_alsa_announce_pcm_data()
[all …]
/linux-4.4.14/drivers/media/pci/ivtv/
Divtv-alsa-pcm.c78 struct snd_pcm_runtime *runtime; in ivtv_alsa_announce_pcm_data() local
93 runtime = substream->runtime; in ivtv_alsa_announce_pcm_data()
94 if (runtime == NULL) { in ivtv_alsa_announce_pcm_data()
99 stride = runtime->frame_bits >> 3; in ivtv_alsa_announce_pcm_data()
111 if (runtime->dma_area == NULL) { in ivtv_alsa_announce_pcm_data()
117 if (oldptr + length >= runtime->buffer_size) { in ivtv_alsa_announce_pcm_data()
119 runtime->buffer_size - oldptr; in ivtv_alsa_announce_pcm_data()
120 memcpy(runtime->dma_area + oldptr * stride, pcm_data, in ivtv_alsa_announce_pcm_data()
122 memcpy(runtime->dma_area, pcm_data + cnt * stride, in ivtv_alsa_announce_pcm_data()
125 memcpy(runtime->dma_area + oldptr * stride, pcm_data, in ivtv_alsa_announce_pcm_data()
[all …]
/linux-4.4.14/include/sound/
Dpcm.h399 void (*private_free)(struct snd_pcm_runtime *runtime);
450 struct snd_pcm_runtime *runtime; member
654 return (substream->runtime->status->state == SNDRV_PCM_STATE_RUNNING || in snd_pcm_running()
655 (substream->runtime->status->state == SNDRV_PCM_STATE_DRAINING && in snd_pcm_running()
664 static inline ssize_t bytes_to_samples(struct snd_pcm_runtime *runtime, ssize_t size) in bytes_to_samples() argument
666 return size * 8 / runtime->sample_bits; in bytes_to_samples()
674 static inline snd_pcm_sframes_t bytes_to_frames(struct snd_pcm_runtime *runtime, ssize_t size) in bytes_to_frames() argument
676 return size * 8 / runtime->frame_bits; in bytes_to_frames()
684 static inline ssize_t samples_to_bytes(struct snd_pcm_runtime *runtime, ssize_t size) in samples_to_bytes() argument
686 return size * runtime->sample_bits / 8; in samples_to_bytes()
[all …]
Dpcm-indirect.h51 struct snd_pcm_runtime *runtime = substream->runtime; in snd_pcm_indirect_playback_transfer() local
52 snd_pcm_uframes_t appl_ptr = runtime->control->appl_ptr; in snd_pcm_indirect_playback_transfer()
57 if (diff < -(snd_pcm_sframes_t) (runtime->boundary / 2)) in snd_pcm_indirect_playback_transfer()
58 diff += runtime->boundary; in snd_pcm_indirect_playback_transfer()
59 rec->sw_ready += (int)frames_to_bytes(runtime, diff); in snd_pcm_indirect_playback_transfer()
105 return bytes_to_frames(substream->runtime, rec->sw_io); in snd_pcm_indirect_playback_pointer()
117 struct snd_pcm_runtime *runtime = substream->runtime; in snd_pcm_indirect_capture_transfer() local
118 snd_pcm_uframes_t appl_ptr = runtime->control->appl_ptr; in snd_pcm_indirect_capture_transfer()
122 if (diff < -(snd_pcm_sframes_t) (runtime->boundary / 2)) in snd_pcm_indirect_capture_transfer()
123 diff += runtime->boundary; in snd_pcm_indirect_capture_transfer()
[all …]
Dcompress_driver.h79 struct snd_compr_runtime *runtime; member
173 wake_up(&stream->runtime->sleep); in snd_compr_fragment_elapsed()
181 stream->runtime->state = SNDRV_PCM_STATE_SETUP; in snd_compr_drain_notify()
182 wake_up(&stream->runtime->sleep); in snd_compr_drain_notify()
Dvx_core.h108 void (*dma_write)(struct vx_core *chip, struct snd_pcm_runtime *runtime,
110 void (*dma_read)(struct vx_core *chip, struct snd_pcm_runtime *runtime,
288 static inline void vx_pseudo_dma_write(struct vx_core *chip, struct snd_pcm_runtime *runtime, in vx_pseudo_dma_write() argument
291 chip->ops->dma_write(chip, runtime, pipe, count); in vx_pseudo_dma_write()
294 static inline void vx_pseudo_dma_read(struct vx_core *chip, struct snd_pcm_runtime *runtime, in vx_pseudo_dma_read() argument
297 chip->ops->dma_read(chip, runtime, pipe, count); in vx_pseudo_dma_read()
/linux-4.4.14/sound/isa/sb/
Dsb8_main.c108 struct snd_pcm_runtime *runtime = substream->runtime; in snd_sb8_playback_prepare() local
111 unsigned char stereo = runtime->channels > 1; in snd_sb8_playback_prepare()
114 rate = runtime->rate; in snd_sb8_playback_prepare()
117 if (runtime->format == SNDRV_PCM_FORMAT_S16_LE) { in snd_sb8_playback_prepare()
126 if (runtime->channels > 1) { in snd_sb8_playback_prepare()
172 runtime->dma_area[0] = 0x80; in snd_sb8_playback_prepare()
173 snd_dma_program(dma, runtime->dma_addr, 1, DMA_MODE_WRITE); in snd_sb8_playback_prepare()
181 snd_sbdsp_command(chip, 256 - runtime->rate_den / 2); in snd_sb8_playback_prepare()
190 snd_sbdsp_command(chip, 256 - runtime->rate_den); in snd_sb8_playback_prepare()
201 snd_dma_program(dma, runtime->dma_addr, in snd_sb8_playback_prepare()
[all …]
Dsb16_main.c53 static void snd_sb16_csp_playback_prepare(struct snd_sb *chip, struct snd_pcm_runtime *runtime) in snd_sb16_csp_playback_prepare() argument
61 ((1U << runtime->format) == csp->acc_format)) { in snd_sb16_csp_playback_prepare()
69 if ((1 << runtime->format) & (SNDRV_PCM_FMTBIT_S8 | SNDRV_PCM_FMTBIT_U8 | in snd_sb16_csp_playback_prepare()
80 if (csp->ops.csp_autoload(csp, runtime->format, SNDRV_SB_CSP_MODE_DSP_WRITE)) { in snd_sb16_csp_playback_prepare()
88 (runtime->channels > 1) ? in snd_sb16_csp_playback_prepare()
101 static void snd_sb16_csp_capture_prepare(struct snd_sb *chip, struct snd_pcm_runtime *runtime) in snd_sb16_csp_capture_prepare() argument
109 ((1U << runtime->format) == csp->acc_format)) { in snd_sb16_csp_capture_prepare()
118 if (csp->ops.csp_autoload(csp, runtime->format, SNDRV_SB_CSP_MODE_DSP_READ)) { in snd_sb16_csp_capture_prepare()
126 (runtime->channels > 1) ? in snd_sb16_csp_capture_prepare()
152 static void snd_sb16_csp_playback_open(struct snd_sb *chip, struct snd_pcm_runtime *runtime) in snd_sb16_csp_playback_open() argument
[all …]
Demu8000_pcm.c231 struct snd_pcm_runtime *runtime = subs->runtime; in emu8k_pcm_open() local
239 runtime->private_data = rec; in emu8k_pcm_open()
244 runtime->hw = emu8k_pcm_hw; in emu8k_pcm_open()
245 runtime->hw.buffer_bytes_max = emu->mem_size - LOOP_BLANK_SIZE * 3; in emu8k_pcm_open()
246 runtime->hw.period_bytes_max = runtime->hw.buffer_bytes_max / 2; in emu8k_pcm_open()
249 snd_pcm_hw_constraint_minmax(runtime, SNDRV_PCM_HW_PARAM_PERIOD_TIME, in emu8k_pcm_open()
257 struct snd_emu8k_pcm *rec = subs->runtime->private_data; in emu8k_pcm_close()
259 subs->runtime->private_data = NULL; in emu8k_pcm_close()
386 struct snd_emu8k_pcm *rec = subs->runtime->private_data; in emu8k_pcm_trigger()
447 struct snd_emu8k_pcm *rec = subs->runtime->private_data; in emu8k_pcm_copy()
[all …]
/linux-4.4.14/sound/pci/emu10k1/
Demupcm.c49 epcm->substream->runtime->hw->pointer(emu, epcm->substream), in snd_emu10k1_pcm_interrupt()
61 if (emu->pcm_capture_substream->runtime->mode == SNDRV_PCM_MODE_FRAME) in snd_emu10k1_pcm_ac97adc_interrupt()
73 if (emu->pcm_capture_mic_substream->runtime->mode == SNDRV_PCM_MODE_FRAME) in snd_emu10k1_pcm_ac97mic_interrupt()
85 if (emu->pcm_capture_efx_substream->runtime->mode == SNDRV_PCM_MODE_FRAME) in snd_emu10k1_pcm_efx_interrupt()
95 struct snd_pcm_runtime *runtime = substream->runtime; in snd_emu10k1_efx_playback_pointer() local
96 struct snd_emu10k1_pcm *epcm = runtime->private_data; in snd_emu10k1_efx_playback_pointer()
102 ptr += runtime->buffer_size; in snd_emu10k1_efx_playback_pointer()
104 ptr %= runtime->buffer_size; in snd_emu10k1_efx_playback_pointer()
290 struct snd_pcm_runtime *runtime = substream->runtime; in snd_emu10k1_pcm_init_voice() local
300 stereo = runtime->channels == 2; in snd_emu10k1_pcm_init_voice()
[all …]
Dp16v.c166 static void snd_p16v_pcm_free_substream(struct snd_pcm_runtime *runtime) in snd_p16v_pcm_free_substream() argument
168 struct snd_emu10k1_pcm *epcm = runtime->private_data; in snd_p16v_pcm_free_substream()
179 struct snd_pcm_runtime *runtime = substream->runtime; in snd_p16v_pcm_open_playback_channel() local
193 runtime->private_data = epcm; in snd_p16v_pcm_open_playback_channel()
194 runtime->private_free = snd_p16v_pcm_free_substream; in snd_p16v_pcm_open_playback_channel()
196 runtime->hw = snd_p16v_playback_hw; in snd_p16v_pcm_open_playback_channel()
211 if ((err = snd_pcm_hw_constraint_integer(runtime, SNDRV_PCM_HW_PARAM_PERIODS)) < 0) in snd_p16v_pcm_open_playback_channel()
214 runtime->sync.id32[0] = substream->pcm->card->number; in snd_p16v_pcm_open_playback_channel()
215 runtime->sync.id32[1] = 'P'; in snd_p16v_pcm_open_playback_channel()
216 runtime->sync.id32[2] = 16; in snd_p16v_pcm_open_playback_channel()
[all …]
Demu10k1x.c358 static void snd_emu10k1x_pcm_free_substream(struct snd_pcm_runtime *runtime) in snd_emu10k1x_pcm_free_substream() argument
360 kfree(runtime->private_data); in snd_emu10k1x_pcm_free_substream()
386 struct snd_pcm_runtime *runtime = substream->runtime; in snd_emu10k1x_playback_open() local
389 if ((err = snd_pcm_hw_constraint_integer(runtime, SNDRV_PCM_HW_PARAM_PERIODS)) < 0) { in snd_emu10k1x_playback_open()
392 if ((err = snd_pcm_hw_constraint_step(runtime, 0, SNDRV_PCM_HW_PARAM_PERIOD_BYTES, 64)) < 0) in snd_emu10k1x_playback_open()
401 runtime->private_data = epcm; in snd_emu10k1x_playback_open()
402 runtime->private_free = snd_emu10k1x_pcm_free_substream; in snd_emu10k1x_playback_open()
404 runtime->hw = snd_emu10k1x_playback_hw; in snd_emu10k1x_playback_open()
419 struct snd_pcm_runtime *runtime = substream->runtime; in snd_emu10k1x_pcm_hw_params() local
420 struct emu10k1x_pcm *epcm = runtime->private_data; in snd_emu10k1x_pcm_hw_params()
[all …]
Dmemory.c303 struct snd_pcm_runtime *runtime = substream->runtime; in snd_emu10k1_alloc_pages() local
310 if (snd_BUG_ON(runtime->dma_bytes <= 0 || in snd_emu10k1_alloc_pages()
311 runtime->dma_bytes >= (emu->address_mode ? MAXPAGES1 : MAXPAGES0) * EMUPAGESIZE)) in snd_emu10k1_alloc_pages()
317 idx = runtime->period_size >= runtime->buffer_size ? in snd_emu10k1_alloc_pages()
320 blk = search_empty(emu, runtime->dma_bytes + idx); in snd_emu10k1_alloc_pages()
332 if (ofs >= runtime->dma_bytes) in snd_emu10k1_alloc_pages()
/linux-4.4.14/sound/isa/gus/
Dgus_pcm.c80 struct snd_pcm_runtime *runtime = substream->runtime; in snd_gf1_pcm_block_change() local
81 struct gus_pcm_private *pcmp = runtime->private_data; in snd_gf1_pcm_block_change()
91 if (snd_pcm_format_unsigned(runtime->format)) in snd_gf1_pcm_block_change()
93 if (snd_pcm_format_width(runtime->format) == 16) in snd_gf1_pcm_block_change()
96 block.buffer = runtime->dma_area + offset; in snd_gf1_pcm_block_change()
97 block.buf_addr = runtime->dma_addr + offset; in snd_gf1_pcm_block_change()
108 struct snd_pcm_runtime *runtime = substream->runtime; in snd_gf1_pcm_trigger_up() local
109 struct gus_pcm_private *pcmp = runtime->private_data; in snd_gf1_pcm_trigger_up()
127 rate = snd_gf1_translate_freq(gus, runtime->rate << 4); in snd_gf1_pcm_trigger_up()
129 voice_ctrl = snd_pcm_format_width(runtime->format) == 16 ? 0x24 : 0x20; in snd_gf1_pcm_trigger_up()
[all …]
/linux-4.4.14/drivers/media/usb/tm6000/
Dtm6000-alsa.c111 vfree(substream->runtime->dma_area); in dsp_buffer_free()
112 substream->runtime->dma_area = NULL; in dsp_buffer_free()
113 substream->runtime->dma_bytes = 0; in dsp_buffer_free()
122 if (substream->runtime->dma_area) { in dsp_buffer_alloc()
123 if (substream->runtime->dma_bytes > size) in dsp_buffer_alloc()
129 substream->runtime->dma_area = vmalloc(size); in dsp_buffer_alloc()
130 if (!substream->runtime->dma_area) in dsp_buffer_alloc()
133 substream->runtime->dma_bytes = size; in dsp_buffer_alloc()
174 struct snd_pcm_runtime *runtime = substream->runtime; in snd_tm6000_pcm_open() local
177 err = snd_pcm_hw_constraint_pow2(runtime, 0, in snd_tm6000_pcm_open()
[all …]
/linux-4.4.14/sound/drivers/vx/
Dvx_pcm.c60 static void vx_pcm_read_per_bytes(struct vx_core *chip, struct snd_pcm_runtime *runtime, in vx_pcm_read_per_bytes() argument
64 unsigned char *buf = (unsigned char *)(runtime->dma_area + offset); in vx_pcm_read_per_bytes()
68 buf = (unsigned char *)runtime->dma_area; in vx_pcm_read_per_bytes()
73 buf = (unsigned char *)runtime->dma_area; in vx_pcm_read_per_bytes()
78 buf = (unsigned char *)runtime->dma_area; in vx_pcm_read_per_bytes()
167 struct snd_pcm_runtime *runtime) in vx_set_format() argument
171 if (runtime->channels == 1) in vx_set_format()
173 if (snd_pcm_format_little_endian(runtime->format)) in vx_set_format()
175 if (runtime->rate < 32000 && runtime->rate > 11025) in vx_set_format()
177 else if (runtime->rate <= 11025) in vx_set_format()
[all …]
/linux-4.4.14/sound/soc/fsl/
Dimx-pcm-fiq.c80 struct snd_pcm_runtime *runtime = substream->runtime; in snd_imx_pcm_hw_params() local
81 struct imx_pcm_runtime_data *iprtd = runtime->private_data; in snd_imx_pcm_hw_params()
95 struct snd_pcm_runtime *runtime = substream->runtime; in snd_imx_pcm_prepare() local
96 struct imx_pcm_runtime_data *iprtd = runtime->private_data; in snd_imx_pcm_prepare()
114 struct snd_pcm_runtime *runtime = substream->runtime; in snd_imx_pcm_trigger() local
115 struct imx_pcm_runtime_data *iprtd = runtime->private_data; in snd_imx_pcm_trigger()
151 struct snd_pcm_runtime *runtime = substream->runtime; in snd_imx_pcm_pointer() local
152 struct imx_pcm_runtime_data *iprtd = runtime->private_data; in snd_imx_pcm_pointer()
154 return bytes_to_frames(substream->runtime, iprtd->offset); in snd_imx_pcm_pointer()
175 struct snd_pcm_runtime *runtime = substream->runtime; in snd_imx_open() local
[all …]
Dfsl_asrc_dma.c51 struct snd_pcm_runtime *runtime = substream->runtime; in fsl_asrc_dma_complete() local
52 struct fsl_asrc_pair *pair = runtime->private_data; in fsl_asrc_dma_complete()
65 struct snd_pcm_runtime *runtime = substream->runtime; in fsl_asrc_dma_prepare_and_submit() local
66 struct fsl_asrc_pair *pair = runtime->private_data; in fsl_asrc_dma_prepare_and_submit()
71 if (!substream->runtime->no_period_wakeup) in fsl_asrc_dma_prepare_and_submit()
76 pair->dma_chan[!dir], runtime->dma_addr, in fsl_asrc_dma_prepare_and_submit()
105 struct snd_pcm_runtime *runtime = substream->runtime; in fsl_asrc_dma_trigger() local
106 struct fsl_asrc_pair *pair = runtime->private_data; in fsl_asrc_dma_trigger()
140 struct snd_pcm_runtime *runtime = substream->runtime; in fsl_asrc_dma_hw_params() local
141 struct fsl_asrc_pair *pair = runtime->private_data; in fsl_asrc_dma_hw_params()
[all …]
Dmpc5200_dma.c66 bd->data[0] = s->runtime->dma_addr + (s->period_next * s->period_bytes); in psc_dma_bcom_enqueue_next_buffer()
70 s->period_next = (s->period_next + 1) % s->runtime->periods; in psc_dma_bcom_enqueue_next_buffer()
84 s->period_current = (s->period_current+1) % s->runtime->periods; in psc_dma_bcom_irq()
115 struct snd_pcm_runtime *runtime = substream->runtime; in psc_dma_trigger() local
125 substream->pstr->stream, runtime->frame_bits, in psc_dma_trigger()
126 (int)runtime->period_size, runtime->periods); in psc_dma_trigger()
127 s->period_bytes = frames_to_bytes(runtime, in psc_dma_trigger()
128 runtime->period_size); in psc_dma_trigger()
133 s->runtime = runtime; in psc_dma_trigger()
145 for (i = 0; i < runtime->periods; i++) in psc_dma_trigger()
[all …]
Dfsl_dma.c387 struct snd_pcm_runtime *runtime = substream->runtime; in fsl_dma_open() local
406 ret = snd_pcm_hw_constraint_integer(runtime, in fsl_dma_open()
452 runtime->private_data = dma_private; in fsl_dma_open()
540 struct snd_pcm_runtime *runtime = substream->runtime; in fsl_dma_hw_params() local
541 struct fsl_dma_private *dma_private = runtime->private_data; in fsl_dma_hw_params()
703 struct snd_pcm_runtime *runtime = substream->runtime; in fsl_dma_pointer() local
704 struct fsl_dma_private *dma_private = runtime->private_data; in fsl_dma_pointer()
745 frames = bytes_to_frames(runtime, position - dma_private->dma_buf_phys); in fsl_dma_pointer()
751 if (frames == runtime->buffer_size) in fsl_dma_pointer()
767 struct snd_pcm_runtime *runtime = substream->runtime; in fsl_dma_hw_free() local
[all …]
/linux-4.4.14/sound/drivers/
Daloop.c200 struct snd_pcm_runtime *runtime, *cruntime; in loopback_check_format() local
210 runtime = cable->streams[SNDRV_PCM_STREAM_PLAYBACK]-> in loopback_check_format()
211 substream->runtime; in loopback_check_format()
213 substream->runtime; in loopback_check_format()
214 check = runtime->format != cruntime->format || in loopback_check_format()
215 runtime->rate != cruntime->rate || in loopback_check_format()
216 runtime->channels != cruntime->channels; in loopback_check_format()
225 runtime = cable->streams[SNDRV_PCM_STREAM_PLAYBACK]-> in loopback_check_format()
226 substream->runtime; in loopback_check_format()
229 if (setup->format != runtime->format) { in loopback_check_format()
[all …]
Ddummy.c113 (*(const struct dummy_timer_ops **)(substream)->runtime->private_data)
117 int (*playback_constraints)(struct snd_pcm_runtime *runtime);
118 int (*capture_constraints)(struct snd_pcm_runtime *runtime);
149 static int emu10k1_playback_constraints(struct snd_pcm_runtime *runtime) in emu10k1_playback_constraints() argument
152 err = snd_pcm_hw_constraint_integer(runtime, SNDRV_PCM_HW_PARAM_PERIODS); in emu10k1_playback_constraints()
155 err = snd_pcm_hw_constraint_minmax(runtime, SNDRV_PCM_HW_PARAM_BUFFER_BYTES, 256, UINT_MAX); in emu10k1_playback_constraints()
277 struct dummy_systimer_pcm *dpcm = substream->runtime->private_data; in dummy_systimer_start()
287 struct dummy_systimer_pcm *dpcm = substream->runtime->private_data; in dummy_systimer_stop()
296 struct snd_pcm_runtime *runtime = substream->runtime; in dummy_systimer_prepare() local
297 struct dummy_systimer_pcm *dpcm = runtime->private_data; in dummy_systimer_prepare()
[all …]
Dpcm-indirect2.c43 struct snd_pcm_runtime *runtime = substream->runtime; in snd_pcm_indirect2_stat() local
59 rec->bytes2hw, rec->bytes2hw / 2 / 2 / runtime->rate); in snd_pcm_indirect2_stat()
67 runtime->rate, in snd_pcm_indirect2_stat()
238 return bytes_to_frames(substream->runtime, rec->sw_io); in snd_pcm_indirect2_pointer()
250 struct snd_pcm_runtime *runtime = substream->runtime; in snd_pcm_indirect2_playback_transfer() local
251 snd_pcm_uframes_t appl_ptr = runtime->control->appl_ptr; in snd_pcm_indirect2_playback_transfer()
264 if (diff < -(snd_pcm_sframes_t) (runtime->boundary / 2)) in snd_pcm_indirect2_playback_transfer()
265 diff += runtime->boundary; in snd_pcm_indirect2_playback_transfer()
270 rec->sw_ready += (int)frames_to_bytes(runtime, diff); in snd_pcm_indirect2_playback_transfer()
418 struct snd_pcm_runtime *runtime = substream->runtime; in snd_pcm_indirect2_capture_transfer() local
[all …]
Dml403-ac97cr.c447 src = (u16 *)(substream->runtime->dma_area + rec->sw_data); in snd_ml403_ac97cr_playback_ind2_copy()
504 dst = (u16 *)(substream->runtime->dma_area + rec->sw_data); in snd_ml403_ac97cr_capture_ind2_copy()
624 struct snd_pcm_runtime *runtime; in snd_ml403_ac97cr_pcm_playback_prepare() local
627 runtime = substream->runtime; in snd_ml403_ac97cr_pcm_playback_prepare()
635 runtime->rate); in snd_ml403_ac97cr_pcm_playback_prepare()
636 PDEBUG(WORK_INFO, "prepare(): rate=%d\n", runtime->rate); in snd_ml403_ac97cr_pcm_playback_prepare()
658 struct snd_pcm_runtime *runtime; in snd_ml403_ac97cr_pcm_capture_prepare() local
661 runtime = substream->runtime; in snd_ml403_ac97cr_pcm_capture_prepare()
669 runtime->rate); in snd_ml403_ac97cr_pcm_capture_prepare()
670 PDEBUG(WORK_INFO, "prepare(capture): rate=%d\n", runtime->rate); in snd_ml403_ac97cr_pcm_capture_prepare()
[all …]
/linux-4.4.14/sound/firewire/tascam/
Damdtp-tascam.c45 struct snd_pcm_runtime *runtime = pcm->runtime; in write_pcm_s32() local
50 src = (void *)runtime->dma_area + in write_pcm_s32()
51 frames_to_bytes(runtime, s->pcm_buffer_pointer); in write_pcm_s32()
52 remaining_frames = runtime->buffer_size - s->pcm_buffer_pointer; in write_pcm_s32()
61 src = (void *)runtime->dma_area; in write_pcm_s32()
70 struct snd_pcm_runtime *runtime = pcm->runtime; in write_pcm_s16() local
75 src = (void *)runtime->dma_area + in write_pcm_s16()
76 frames_to_bytes(runtime, s->pcm_buffer_pointer); in write_pcm_s16()
77 remaining_frames = runtime->buffer_size - s->pcm_buffer_pointer; in write_pcm_s16()
86 src = (void *)runtime->dma_area; in write_pcm_s16()
[all …]
Dtascam-pcm.c40 struct snd_pcm_runtime *runtime = substream->runtime; in pcm_init_hw_params() local
44 runtime->hw = hardware; in pcm_init_hw_params()
47 runtime->hw.formats = SNDRV_PCM_FMTBIT_S32; in pcm_init_hw_params()
51 runtime->hw.formats = in pcm_init_hw_params()
61 runtime->hw.channels_min = runtime->hw.channels_max = pcm_channels; in pcm_init_hw_params()
63 set_buffer_params(&runtime->hw); in pcm_init_hw_params()
65 return amdtp_tscm_add_pcm_hw_constraints(stream, runtime); in pcm_init_hw_params()
90 substream->runtime->hw.rate_min = rate; in pcm_open()
91 substream->runtime->hw.rate_max = rate; in pcm_open()
122 if (substream->runtime->status->state == SNDRV_PCM_STATE_OPEN) { in pcm_capture_hw_params()
[all …]
/linux-4.4.14/drivers/media/usb/go7007/
Dsnd-go7007.c76 struct snd_pcm_runtime *runtime = gosnd->substream->runtime; in parse_audio_stream_data() local
77 int frames = bytes_to_frames(runtime, length); in parse_audio_stream_data()
81 if (gosnd->hw_ptr >= runtime->buffer_size) in parse_audio_stream_data()
82 gosnd->hw_ptr -= runtime->buffer_size; in parse_audio_stream_data()
85 if (gosnd->w_idx + length > runtime->dma_bytes) { in parse_audio_stream_data()
86 int cpy = runtime->dma_bytes - gosnd->w_idx; in parse_audio_stream_data()
88 memcpy(runtime->dma_area + gosnd->w_idx, buf, cpy); in parse_audio_stream_data()
93 memcpy(runtime->dma_area + gosnd->w_idx, buf, length); in parse_audio_stream_data()
96 if (gosnd->avail < runtime->period_size) { in parse_audio_stream_data()
100 gosnd->avail -= runtime->period_size; in parse_audio_stream_data()
[all …]
/linux-4.4.14/sound/atmel/
Dac97c.c113 struct snd_pcm_runtime *runtime = substream->runtime; in atmel_ac97c_prepare_dma() local
120 if (runtime->dma_addr & 1 || runtime->buffer_size & 1) { in atmel_ac97c_prepare_dma()
130 buffer_len = frames_to_bytes(runtime, runtime->buffer_size); in atmel_ac97c_prepare_dma()
131 period_len = frames_to_bytes(runtime, runtime->period_size); in atmel_ac97c_prepare_dma()
133 cdesc = dw_dma_cyclic_prep(chan, runtime->dma_addr, buffer_len, in atmel_ac97c_prepare_dma()
178 struct snd_pcm_runtime *runtime = substream->runtime; in atmel_ac97c_playback_open() local
182 runtime->hw = atmel_ac97c_hw; in atmel_ac97c_playback_open()
184 runtime->hw.rate_min = chip->cur_rate; in atmel_ac97c_playback_open()
185 runtime->hw.rate_max = chip->cur_rate; in atmel_ac97c_playback_open()
188 runtime->hw.formats = pcm_format_to_bits(chip->cur_format); in atmel_ac97c_playback_open()
[all …]
Dabdac.c123 struct snd_pcm_runtime *runtime = substream->runtime; in atmel_abdac_prepare_dma() local
130 if (runtime->dma_addr & 1 || runtime->buffer_size & 1) { in atmel_abdac_prepare_dma()
135 buffer_len = frames_to_bytes(runtime, runtime->buffer_size); in atmel_abdac_prepare_dma()
136 period_len = frames_to_bytes(runtime, runtime->period_size); in atmel_abdac_prepare_dma()
138 cdesc = dw_dma_cyclic_prep(chan, runtime->dma_addr, buffer_len, in atmel_abdac_prepare_dma()
182 substream->runtime->hw = atmel_abdac_hw; in atmel_abdac_open()
184 return snd_pcm_hw_constraint_list(substream->runtime, 0, in atmel_abdac_open()
226 retval = clk_set_rate(dac->sample_clk, 256 * substream->runtime->rate); in atmel_abdac_prepare()
271 struct snd_pcm_runtime *runtime = substream->runtime; in atmel_abdac_pointer() local
276 bytes -= runtime->dma_addr; in atmel_abdac_pointer()
[all …]
/linux-4.4.14/sound/soc/samsung/
Didma.c73 struct snd_pcm_runtime *runtime = substream->runtime; in idma_enqueue() local
74 struct idma_ctrl *prtd = substream->runtime->private_data; in idma_enqueue()
95 val |= (((runtime->dma_bytes >> 2) & in idma_enqueue()
109 struct idma_ctrl *prtd = substream->runtime->private_data; in idma_setcallbk()
141 struct idma_ctrl *prtd = substream->runtime->private_data; in idma_done()
150 struct snd_pcm_runtime *runtime = substream->runtime; in idma_hw_params() local
151 struct idma_ctrl *prtd = substream->runtime->private_data; in idma_hw_params()
161 runtime->dma_bytes = params_buffer_bytes(params); in idma_hw_params()
163 prtd->start = prtd->pos = runtime->dma_addr; in idma_hw_params()
166 prtd->end = runtime->dma_addr + runtime->dma_bytes; in idma_hw_params()
[all …]
Dh1940_uda1380.c66 struct snd_pcm_runtime *runtime = substream->runtime; in h1940_startup() local
68 return snd_pcm_hw_constraint_list(runtime, 0, in h1940_startup()
Drx1950_uda1380.c135 struct snd_pcm_runtime *runtime = substream->runtime; in rx1950_startup() local
137 return snd_pcm_hw_constraint_list(runtime, 0, in rx1950_startup()
/linux-4.4.14/sound/pcmcia/pdaudiocf/
Dpdaudiocf_pcm.c50 struct snd_pcm_runtime *runtime = subs->runtime; in pdacf_pcm_trigger() local
84 if ((chip->ak4117->rcs0 & AK4117_UNLCK) || runtime->rate != rate) { in pdacf_pcm_trigger()
123 struct snd_pcm_runtime *runtime = subs->runtime; in pdacf_pcm_prepare() local
129 chip->pcm_channels = runtime->channels; in pdacf_pcm_prepare()
131 chip->pcm_little = snd_pcm_format_little_endian(runtime->format) > 0; in pdacf_pcm_prepare()
133 chip->pcm_swab = snd_pcm_format_big_endian(runtime->format) > 0; in pdacf_pcm_prepare()
138 if (snd_pcm_format_unsigned(runtime->format)) in pdacf_pcm_prepare()
146 switch (runtime->format) { in pdacf_pcm_prepare()
156 switch (runtime->format) { in pdacf_pcm_prepare()
184 chip->pcm_size = runtime->buffer_size; in pdacf_pcm_prepare()
[all …]
/linux-4.4.14/sound/usb/
Dpcm.c82 subs = (struct snd_usb_substream *)substream->runtime->private_data; in snd_usb_pcm_pointer()
87 substream->runtime->delay = snd_usb_pcm_delay(subs, in snd_usb_pcm_pointer()
88 substream->runtime->rate); in snd_usb_pcm_pointer()
90 return hwptr_done / (substream->runtime->frame_bits >> 3); in snd_usb_pcm_pointer()
716 struct snd_usb_substream *subs = substream->runtime->private_data; in snd_usb_hw_params()
762 struct snd_usb_substream *subs = substream->runtime->private_data; in snd_usb_hw_free()
783 struct snd_pcm_runtime *runtime = substream->runtime; in snd_usb_pcm_prepare() local
784 struct snd_usb_substream *subs = runtime->private_data; in snd_usb_pcm_prepare()
828 bytes_to_frames(runtime, subs->data_endpoint->maxpacksize); in snd_usb_pcm_prepare()
830 bytes_to_frames(runtime, subs->data_endpoint->curpacksize); in snd_usb_pcm_prepare()
[all …]
/linux-4.4.14/sound/firewire/fireworks/
Dfireworks_pcm.c149 struct snd_pcm_runtime *runtime = substream->runtime; in pcm_init_hw_params() local
154 runtime->hw.info = SNDRV_PCM_INFO_BATCH | in pcm_init_hw_params()
162 runtime->hw.formats = AM824_IN_PCM_FORMAT_BITS; in pcm_init_hw_params()
166 runtime->hw.formats = AM824_OUT_PCM_FORMAT_BITS; in pcm_init_hw_params()
172 runtime->hw.rates = efw->supported_sampling_rate, in pcm_init_hw_params()
173 snd_pcm_limit_hw_rates(runtime); in pcm_init_hw_params()
175 limit_channels(&runtime->hw, pcm_channels); in pcm_init_hw_params()
176 limit_period_and_buffer(&runtime->hw); in pcm_init_hw_params()
178 err = snd_pcm_hw_rule_add(runtime, 0, SNDRV_PCM_HW_PARAM_CHANNELS, in pcm_init_hw_params()
184 err = snd_pcm_hw_rule_add(runtime, 0, SNDRV_PCM_HW_PARAM_RATE, in pcm_init_hw_params()
[all …]
/linux-4.4.14/sound/usb/usx2y/
Dusbusx2yaudio.c74 struct snd_pcm_runtime *runtime = subs->pcm_substream->runtime; in usX2Y_urb_capt_retire() local
94 if ((hwptr_done + len) > runtime->buffer_size) { in usX2Y_urb_capt_retire()
95 int cnt = runtime->buffer_size - hwptr_done; in usX2Y_urb_capt_retire()
97 memcpy(runtime->dma_area + hwptr_done * usX2Y->stride, cp, blen); in usX2Y_urb_capt_retire()
98 memcpy(runtime->dma_area, cp + blen, len * usX2Y->stride - blen); in usX2Y_urb_capt_retire()
100 memcpy(runtime->dma_area + hwptr_done * usX2Y->stride, cp, in usX2Y_urb_capt_retire()
104 if ((hwptr_done += len) >= runtime->buffer_size) in usX2Y_urb_capt_retire()
105 hwptr_done -= runtime->buffer_size; in usX2Y_urb_capt_retire()
111 if (subs->transfer_done >= runtime->period_size) { in usX2Y_urb_capt_retire()
112 subs->transfer_done -= runtime->period_size; in usX2Y_urb_capt_retire()
[all …]
Dusx2yhwdeppcm.c65 struct snd_pcm_runtime *runtime = subs->pcm_substream->runtime; in usX2Y_usbpcm_urb_capt_retire() local
82 if ((hwptr_done += lens) >= runtime->buffer_size) in usX2Y_usbpcm_urb_capt_retire()
83 hwptr_done -= runtime->buffer_size; in usX2Y_usbpcm_urb_capt_retire()
87 if (subs->transfer_done >= runtime->period_size) { in usX2Y_usbpcm_urb_capt_retire()
88 subs->transfer_done -= runtime->period_size; in usX2Y_usbpcm_urb_capt_retire()
94 static inline int usX2Y_iso_frames_per_buffer(struct snd_pcm_runtime *runtime, in usX2Y_iso_frames_per_buffer() argument
97 …return (runtime->buffer_size * 1000) / usX2Y->rate + 1; //FIXME: so far only correct period_size =… in usX2Y_iso_frames_per_buffer()
116 struct snd_pcm_runtime *runtime = subs->pcm_substream->runtime; in usX2Y_hwdep_urb_play_prepare() local
120 usX2Y_iso_frames_per_buffer(runtime, usX2Y); in usX2Y_hwdep_urb_play_prepare()
358 struct snd_pcm_runtime *runtime = substream->runtime; in snd_usX2Y_usbpcm_hw_free() local
[all …]
/linux-4.4.14/sound/pci/ca0106/
Dca0106_main.c490 static void snd_ca0106_pcm_free_substream(struct snd_pcm_runtime *runtime) in snd_ca0106_pcm_free_substream() argument
492 kfree(runtime->private_data); in snd_ca0106_pcm_free_substream()
566 struct snd_pcm_runtime *runtime = substream->runtime; in snd_ca0106_pcm_open_playback_channel() local
577 runtime->private_data = epcm; in snd_ca0106_pcm_open_playback_channel()
578 runtime->private_free = snd_ca0106_pcm_free_substream; in snd_ca0106_pcm_open_playback_channel()
580 runtime->hw = snd_ca0106_playback_hw; in snd_ca0106_pcm_open_playback_channel()
592 if ((err = snd_pcm_hw_constraint_integer(runtime, SNDRV_PCM_HW_PARAM_PERIODS)) < 0) in snd_ca0106_pcm_open_playback_channel()
594 if ((err = snd_pcm_hw_constraint_step(runtime, 0, SNDRV_PCM_HW_PARAM_PERIOD_BYTES, 64)) < 0) in snd_ca0106_pcm_open_playback_channel()
614 struct snd_pcm_runtime *runtime = substream->runtime; in snd_ca0106_pcm_close_playback() local
615 struct snd_ca0106_pcm *epcm = runtime->private_data; in snd_ca0106_pcm_close_playback()
[all …]
/linux-4.4.14/drivers/media/usb/cx231xx/
Dcx231xx-audio.c105 struct snd_pcm_runtime *runtime; in cx231xx_audio_isocirq() local
129 runtime = substream->runtime; in cx231xx_audio_isocirq()
130 stride = runtime->frame_bits >> 3; in cx231xx_audio_isocirq()
142 if (oldptr + length >= runtime->buffer_size) { in cx231xx_audio_isocirq()
145 cnt = runtime->buffer_size - oldptr; in cx231xx_audio_isocirq()
146 memcpy(runtime->dma_area + oldptr * stride, cp, in cx231xx_audio_isocirq()
148 memcpy(runtime->dma_area, cp + cnt * stride, in cx231xx_audio_isocirq()
151 memcpy(runtime->dma_area + oldptr * stride, cp, in cx231xx_audio_isocirq()
159 runtime->buffer_size) in cx231xx_audio_isocirq()
161 runtime->buffer_size; in cx231xx_audio_isocirq()
[all …]
/linux-4.4.14/sound/firewire/oxfw/
Doxfw-pcm.c124 struct snd_pcm_runtime *runtime = substream->runtime; in init_hw_params() local
129 runtime->hw.info = SNDRV_PCM_INFO_BATCH | in init_hw_params()
137 runtime->hw.formats = AM824_IN_PCM_FORMAT_BITS; in init_hw_params()
141 runtime->hw.formats = AM824_OUT_PCM_FORMAT_BITS; in init_hw_params()
146 limit_channels_and_rates(&runtime->hw, formats); in init_hw_params()
147 limit_period_and_buffer(&runtime->hw); in init_hw_params()
149 err = snd_pcm_hw_rule_add(runtime, 0, SNDRV_PCM_HW_PARAM_CHANNELS, in init_hw_params()
155 err = snd_pcm_hw_rule_add(runtime, 0, SNDRV_PCM_HW_PARAM_RATE, in init_hw_params()
161 err = amdtp_am824_add_pcm_hw_constraints(stream, runtime); in init_hw_params()
182 substream->runtime->hw.channels_min = formation.pcm; in limit_to_current_params()
[all …]
/linux-4.4.14/sound/pci/
Dsis7019.c451 struct snd_pcm_runtime *runtime = substream->runtime; in sis_alloc_timing_voice() local
452 struct voice *voice = runtime->private_data; in sis_alloc_timing_voice()
486 struct snd_pcm_runtime *runtime = substream->runtime; in sis_playback_open() local
494 runtime->private_data = voice; in sis_playback_open()
495 runtime->hw = sis_playback_hw_info; in sis_playback_open()
496 snd_pcm_hw_constraint_minmax(runtime, SNDRV_PCM_HW_PARAM_PERIOD_SIZE, in sis_playback_open()
498 snd_pcm_hw_constraint_minmax(runtime, SNDRV_PCM_HW_PARAM_BUFFER_SIZE, in sis_playback_open()
507 struct snd_pcm_runtime *runtime = substream->runtime; in sis_substream_close() local
508 struct voice *voice = runtime->private_data; in sis_substream_close()
528 struct snd_pcm_runtime *runtime = substream->runtime; in sis_pcm_playback_prepare() local
[all …]
Dals300.c211 data = chip->playback_substream->runtime->private_data; in snd_als300_interrupt()
219 data = chip->capture_substream->runtime->private_data; in snd_als300_interrupt()
245 data = chip->playback_substream->runtime->private_data; in snd_als300plus_interrupt()
254 data = chip->capture_substream->runtime->private_data; in snd_als300plus_interrupt()
372 struct snd_pcm_runtime *runtime = substream->runtime; in snd_als300_playback_open() local
379 runtime->hw = snd_als300_playback_hw; in snd_als300_playback_open()
380 runtime->private_data = data; in snd_als300_playback_open()
391 data = substream->runtime->private_data; in snd_als300_playback_close()
401 struct snd_pcm_runtime *runtime = substream->runtime; in snd_als300_capture_open() local
408 runtime->hw = snd_als300_capture_hw; in snd_als300_capture_open()
[all …]
Drme32.c656 struct snd_pcm_runtime *runtime = substream->runtime; in snd_rme32_playback_hw_params() local
663 runtime->dma_area = (void __force *)(rme32->iobase + in snd_rme32_playback_hw_params()
665 runtime->dma_addr = rme32->port + RME32_IO_DATA_BUFFER; in snd_rme32_playback_hw_params()
666 runtime->dma_bytes = RME32_BUFFER_SIZE; in snd_rme32_playback_hw_params()
711 struct snd_pcm_runtime *runtime = substream->runtime; in snd_rme32_capture_hw_params() local
718 runtime->dma_area = (void __force *)rme32->iobase + in snd_rme32_capture_hw_params()
720 runtime->dma_addr = rme32->port + RME32_IO_DATA_BUFFER; in snd_rme32_capture_hw_params()
721 runtime->dma_bytes = RME32_BUFFER_SIZE; in snd_rme32_capture_hw_params()
742 if ((isadat && runtime->hw.channels_min == 2) || in snd_rme32_capture_hw_params()
743 (!isadat && runtime->hw.channels_min == 8)) { in snd_rme32_capture_hw_params()
[all …]
Dvia82xx.c735 struct viadev *viadev = substream->runtime->private_data; in snd_via82xx_pcm_trigger()
840 struct viadev *viadev = substream->runtime->private_data; in snd_via686_pcm_pointer()
862 return bytes_to_frames(substream->runtime, res); in snd_via686_pcm_pointer()
871 struct viadev *viadev = substream->runtime->private_data; in snd_via8233_pcm_pointer()
921 return bytes_to_frames(substream->runtime, res); in snd_via8233_pcm_pointer()
933 struct viadev *viadev = substream->runtime->private_data; in snd_via82xx_hw_params()
955 struct viadev *viadev = substream->runtime->private_data; in snd_via82xx_hw_free()
978 struct snd_pcm_runtime *runtime) in via686_setup_format() argument
984 (runtime->format == SNDRV_PCM_FORMAT_S16_LE ? VIA_REG_TYPE_16BIT : 0) | in via686_setup_format()
985 (runtime->channels > 1 ? VIA_REG_TYPE_STEREO : 0) | in via686_setup_format()
[all …]
Dals4000.c319 static int snd_als4000_get_format(struct snd_pcm_runtime *runtime) in snd_als4000_get_format() argument
324 if (snd_pcm_format_signed(runtime->format)) in snd_als4000_get_format()
326 if (snd_pcm_format_physical_width(runtime->format) == 16) in snd_als4000_get_format()
328 if (runtime->channels > 1) in snd_als4000_get_format()
386 struct snd_pcm_runtime *runtime = substream->runtime; in snd_als4000_capture_prepare() local
390 chip->capture_format = snd_als4000_get_format(runtime); in snd_als4000_capture_prepare()
400 snd_als4000_set_rate(chip, runtime->rate); in snd_als4000_capture_prepare()
401 snd_als4000_set_capture_dma(chip, runtime->dma_addr, size); in snd_als4000_capture_prepare()
413 struct snd_pcm_runtime *runtime = substream->runtime; in snd_als4000_playback_prepare() local
417 chip->playback_format = snd_als4000_get_format(runtime); in snd_als4000_playback_prepare()
[all …]
Dcmipci.c787 struct snd_pcm_runtime *runtime = substream->runtime; in snd_cmipci_pcm_prepare() local
791 if (snd_pcm_format_width(runtime->format) >= 16) { in snd_cmipci_pcm_prepare()
793 if (snd_pcm_format_width(runtime->format) > 16) in snd_cmipci_pcm_prepare()
796 if (runtime->channels > 1) in snd_cmipci_pcm_prepare()
798 if (rec->is_dac && set_dac_channels(cm, rec, runtime->channels) < 0) { in snd_cmipci_pcm_prepare()
803 rec->offset = runtime->dma_addr; in snd_cmipci_pcm_prepare()
805 rec->dma_size = runtime->buffer_size << rec->shift; in snd_cmipci_pcm_prepare()
806 period_size = runtime->period_size << rec->shift; in snd_cmipci_pcm_prepare()
807 if (runtime->channels > 2) { in snd_cmipci_pcm_prepare()
809 rec->dma_size = (rec->dma_size * runtime->channels) / 2; in snd_cmipci_pcm_prepare()
[all …]
Des1938.c465 struct snd_pcm_runtime *runtime = substream->runtime; in snd_es1938_rate_set() local
466 if (runtime->rate_num == clocks[0].num) in snd_es1938_rate_set()
467 bits = 128 - runtime->rate_den; in snd_es1938_rate_set()
469 bits = 256 - runtime->rate_den; in snd_es1938_rate_set()
472 div0 = 256 - 7160000*20/(8*82*runtime->rate); in snd_es1938_rate_set()
626 struct snd_pcm_runtime *runtime = substream->runtime; in snd_es1938_capture_prepare() local
632 chip->dma1_start = runtime->dma_addr; in snd_es1938_capture_prepare()
634 mono = (runtime->channels > 1) ? 0 : 1; in snd_es1938_capture_prepare()
635 is8 = snd_pcm_format_width(runtime->format) == 16 ? 0 : 1; in snd_es1938_capture_prepare()
636 u = snd_pcm_format_unsigned(runtime->format); in snd_es1938_capture_prepare()
[all …]
Dcs4281.c670 struct cs4281_dma *dma = substream->runtime->private_data; in snd_cs4281_trigger()
735 struct snd_pcm_runtime *runtime, in snd_cs4281_mode() argument
742 if (runtime->channels == 1) in snd_cs4281_mode()
744 if (snd_pcm_format_unsigned(runtime->format) > 0) in snd_cs4281_mode()
746 if (snd_pcm_format_big_endian(runtime->format) > 0) in snd_cs4281_mode()
748 switch (snd_pcm_format_width(runtime->format)) { in snd_cs4281_mode()
750 if (runtime->channels == 1) in snd_cs4281_mode()
757 if (runtime->buffer_size != runtime->period_size) in snd_cs4281_mode()
760 snd_cs4281_pokeBA0(chip, dma->regDBA, runtime->dma_addr); in snd_cs4281_mode()
761 snd_cs4281_pokeBA0(chip, dma->regDBC, runtime->buffer_size - 1); in snd_cs4281_mode()
[all …]
Dbt87x.c392 static int snd_bt87x_set_digital_hw(struct snd_bt87x *chip, struct snd_pcm_runtime *runtime) in snd_bt87x_set_digital_hw() argument
395 runtime->hw = snd_bt87x_digital_hw; in snd_bt87x_set_digital_hw()
396 runtime->hw.rates = snd_pcm_rate_to_rate_bit(chip->board.dig_rate); in snd_bt87x_set_digital_hw()
397 runtime->hw.rate_min = chip->board.dig_rate; in snd_bt87x_set_digital_hw()
398 runtime->hw.rate_max = chip->board.dig_rate; in snd_bt87x_set_digital_hw()
402 static int snd_bt87x_set_analog_hw(struct snd_bt87x *chip, struct snd_pcm_runtime *runtime) in snd_bt87x_set_analog_hw() argument
416 runtime->hw = snd_bt87x_analog_hw; in snd_bt87x_set_analog_hw()
417 return snd_pcm_hw_constraint_ratnums(runtime, 0, SNDRV_PCM_HW_PARAM_RATE, in snd_bt87x_set_analog_hw()
424 struct snd_pcm_runtime *runtime = substream->runtime; in snd_bt87x_pcm_open() local
431 err = snd_bt87x_set_digital_hw(chip, runtime); in snd_bt87x_pcm_open()
[all …]
Drme96.c982 struct snd_pcm_runtime *runtime = substream->runtime; in snd_rme96_playback_hw_params() local
986 runtime->dma_area = (void __force *)(rme96->iobase + in snd_rme96_playback_hw_params()
988 runtime->dma_addr = rme96->port + RME96_IO_PLAY_BUFFER; in snd_rme96_playback_hw_params()
989 runtime->dma_bytes = RME96_BUFFER_SIZE; in snd_rme96_playback_hw_params()
1045 struct snd_pcm_runtime *runtime = substream->runtime; in snd_rme96_capture_hw_params() local
1048 runtime->dma_area = (void __force *)(rme96->iobase + in snd_rme96_capture_hw_params()
1050 runtime->dma_addr = rme96->port + RME96_IO_REC_BUFFER; in snd_rme96_capture_hw_params()
1051 runtime->dma_bytes = RME96_BUFFER_SIZE; in snd_rme96_capture_hw_params()
1070 if ((isadat && runtime->hw.channels_min == 2) || in snd_rme96_capture_hw_params()
1071 (!isadat && runtime->hw.channels_min == 8)) in snd_rme96_capture_hw_params()
[all …]
Dfm801.c448 struct snd_pcm_runtime *runtime = substream->runtime; in snd_fm801_playback_prepare() local
456 if (snd_pcm_format_width(runtime->format) == 16) in snd_fm801_playback_prepare()
458 if (runtime->channels > 1) { in snd_fm801_playback_prepare()
460 if (runtime->channels == 4) in snd_fm801_playback_prepare()
462 else if (runtime->channels == 6) in snd_fm801_playback_prepare()
465 chip->ply_ctrl |= snd_fm801_rate_bits(runtime->rate) << FM801_RATE_SHIFT; in snd_fm801_playback_prepare()
469 chip->ply_buffer = runtime->dma_addr; in snd_fm801_playback_prepare()
481 struct snd_pcm_runtime *runtime = substream->runtime; in snd_fm801_capture_prepare() local
488 if (snd_pcm_format_width(runtime->format) == 16) in snd_fm801_capture_prepare()
490 if (runtime->channels > 1) in snd_fm801_capture_prepare()
[all …]
Dintel8x0.c353 #define get_ichdev(substream) (substream->runtime->private_data)
945 struct snd_pcm_runtime *runtime = substream->runtime; in snd_intel8x0_hw_params() local
950 fill_nocache(runtime->dma_area, runtime->dma_bytes, 0); /* clear */ in snd_intel8x0_hw_params()
957 if (runtime->dma_area && ! ichdev->page_attr_changed) { in snd_intel8x0_hw_params()
958 fill_nocache(runtime->dma_area, runtime->dma_bytes, 1); in snd_intel8x0_hw_params()
989 fill_nocache(substream->runtime->dma_area, substream->runtime->dma_bytes, 0); in snd_intel8x0_hw_free()
996 struct snd_pcm_runtime *runtime) in snd_intel8x0_setup_pcm_out() argument
999 int dbl = runtime->rate > 48000; in snd_intel8x0_setup_pcm_out()
1006 if (runtime->channels == 4 || dbl) in snd_intel8x0_setup_pcm_out()
1008 else if (runtime->channels == 6) in snd_intel8x0_setup_pcm_out()
[all …]
Des1968.c888 struct snd_pcm_runtime *runtime) in snd_es1968_calc_bob_rate() argument
891 int freq = runtime->rate * 4; in snd_es1968_calc_bob_rate()
1004 struct snd_pcm_runtime *runtime) in snd_es1968_playback_setup() argument
1087 freq = runtime->rate; in snd_es1968_playback_setup()
1152 struct snd_pcm_runtime *runtime) in snd_es1968_capture_setup() argument
1190 freq = runtime->rate; in snd_es1968_capture_setup()
1223 struct snd_pcm_runtime *runtime = substream->runtime; in snd_es1968_pcm_prepare() local
1224 struct esschan *es = runtime->private_data; in snd_es1968_pcm_prepare()
1231 if (snd_pcm_format_width(runtime->format) == 16) in snd_es1968_pcm_prepare()
1233 if (runtime->channels > 1) { in snd_es1968_pcm_prepare()
[all …]
Datiixp.c388 addr = (u32)substream->runtime->dma_addr; in atiixp_build_dma_packets()
664 struct snd_pcm_runtime *runtime = substream->runtime; in snd_atiixp_pcm_pointer() local
665 struct atiixp_dma *dma = runtime->private_data; in snd_atiixp_pcm_pointer()
676 return bytes_to_frames(runtime, curptr); in snd_atiixp_pcm_pointer()
724 struct atiixp_dma *dma = substream->runtime->private_data; in snd_atiixp_pcm_trigger()
884 substream->runtime->format == SNDRV_PCM_FORMAT_S16_LE ? in snd_atiixp_spdif_prepare()
902 switch (substream->runtime->channels) { in snd_atiixp_playback_prepare()
926 substream->runtime->format == SNDRV_PCM_FORMAT_S16_LE ? in snd_atiixp_playback_prepare()
933 substream->runtime->channels >= 6 ? ATI_REG_6CH_REORDER_EN: 0); in snd_atiixp_playback_prepare()
946 substream->runtime->format == SNDRV_PCM_FORMAT_S16_LE ? in snd_atiixp_capture_prepare()
[all …]
Dens1370.c888 struct snd_pcm_runtime *runtime = substream->runtime; in snd_ensoniq_playback1_prepare() local
893 if (snd_pcm_format_width(runtime->format) == 16) in snd_ensoniq_playback1_prepare()
895 if (runtime->channels > 1) in snd_ensoniq_playback1_prepare()
901 if (runtime->rate == 48000) in snd_ensoniq_playback1_prepare()
908 outl(runtime->dma_addr, ES_REG(ensoniq, DAC1_FRAME)); in snd_ensoniq_playback1_prepare()
917 switch (runtime->rate) { in snd_ensoniq_playback1_prepare()
928 snd_es1371_dac1_rate(ensoniq, runtime->rate); in snd_ensoniq_playback1_prepare()
936 struct snd_pcm_runtime *runtime = substream->runtime; in snd_ensoniq_playback2_prepare() local
941 if (snd_pcm_format_width(runtime->format) == 16) in snd_ensoniq_playback2_prepare()
943 if (runtime->channels > 1) in snd_ensoniq_playback2_prepare()
[all …]
Dmaestro3.c1115 struct m3_dma *s = subs->runtime->private_data; in snd_m3_pcm_trigger()
1153 struct snd_pcm_runtime *runtime = subs->runtime; in snd_m3_pcm_setup1() local
1165 s->dma_size = frames_to_bytes(runtime, runtime->buffer_size); in snd_m3_pcm_setup1()
1166 s->period_size = frames_to_bytes(runtime, runtime->period_size); in snd_m3_pcm_setup1()
1236 struct snd_pcm_runtime *runtime) in snd_m3_pcm_setup2() argument
1256 runtime->channels == 2 ? 0 : 1); in snd_m3_pcm_setup2()
1260 snd_pcm_format_width(runtime->format) == 16 ? 0 : 1); in snd_m3_pcm_setup2()
1263 freq = ((runtime->rate << 15) + 24000 ) / 48000; in snd_m3_pcm_setup2()
1322 subs->runtime->rate > 45000 ? 0xff : 0); in snd_m3_playback_setup()
1398 struct m3_dma *s = substream->runtime->private_data; in snd_m3_pcm_hw_params()
[all …]
Datiixp_modem.c355 addr = (u32)substream->runtime->dma_addr; in atiixp_build_dma_packets()
613 struct snd_pcm_runtime *runtime = substream->runtime; in snd_atiixp_pcm_pointer() local
614 struct atiixp_dma *dma = runtime->private_data; in snd_atiixp_pcm_pointer()
625 return bytes_to_frames(runtime, curptr); in snd_atiixp_pcm_pointer()
674 struct atiixp_dma *dma = substream->runtime->private_data; in snd_atiixp_pcm_trigger()
796 struct atiixp_dma *dma = substream->runtime->private_data; in snd_atiixp_pcm_hw_params()
803 dma->buf_addr = substream->runtime->dma_addr; in snd_atiixp_pcm_hw_params()
826 struct atiixp_dma *dma = substream->runtime->private_data; in snd_atiixp_pcm_hw_free()
861 struct snd_pcm_runtime *runtime = substream->runtime; in snd_atiixp_pcm_open() local
876 runtime->hw = snd_atiixp_pcm_hw; in snd_atiixp_pcm_open()
[all …]
Dsonicvibes.c712 struct snd_pcm_runtime *runtime = substream->runtime; in snd_sonicvibes_playback_prepare() local
719 if (runtime->channels > 1) in snd_sonicvibes_playback_prepare()
721 if (snd_pcm_format_width(runtime->format) == 16) in snd_sonicvibes_playback_prepare()
724 snd_sonicvibes_set_dac_rate(sonic, runtime->rate); in snd_sonicvibes_playback_prepare()
726 snd_sonicvibes_setdmaa(sonic, runtime->dma_addr, size); in snd_sonicvibes_playback_prepare()
736 struct snd_pcm_runtime *runtime = substream->runtime; in snd_sonicvibes_capture_prepare() local
744 if (runtime->channels > 1) in snd_sonicvibes_capture_prepare()
746 if (snd_pcm_format_width(runtime->format) == 16) in snd_sonicvibes_capture_prepare()
749 snd_sonicvibes_set_adc_rate(sonic, runtime->rate); in snd_sonicvibes_capture_prepare()
751 snd_sonicvibes_setdmac(sonic, runtime->dma_addr, size); in snd_sonicvibes_capture_prepare()
[all …]
Dvia82xx_modem.c524 struct viadev *viadev = substream->runtime->private_data; in snd_via82xx_pcm_trigger()
621 struct viadev *viadev = substream->runtime->private_data; in snd_via686_pcm_pointer()
643 return bytes_to_frames(substream->runtime, res); in snd_via686_pcm_pointer()
654 struct viadev *viadev = substream->runtime->private_data; in snd_via82xx_hw_params()
679 struct viadev *viadev = substream->runtime->private_data; in snd_via82xx_hw_free()
704 struct viadev *viadev = substream->runtime->private_data; in snd_via82xx_pcm_prepare()
745 struct snd_pcm_runtime *runtime = substream->runtime; in snd_via82xx_modem_pcm_open() local
754 runtime->hw = snd_via82xx_hw; in snd_via82xx_modem_pcm_open()
756 if ((err = snd_pcm_hw_constraint_list(runtime, 0, SNDRV_PCM_HW_PARAM_RATE, in snd_via82xx_modem_pcm_open()
762 if ((err = snd_pcm_hw_constraint_integer(runtime, SNDRV_PCM_HW_PARAM_PERIODS)) < 0) in snd_via82xx_modem_pcm_open()
[all …]
Dazt3328.c1458 struct snd_pcm_runtime *runtime = substream->runtime; in snd_azf3328_pcm_prepare() local
1459 struct snd_azf3328_codec_data *codec = runtime->private_data; in snd_azf3328_pcm_prepare()
1465 codec->dma_base = runtime->dma_addr; in snd_azf3328_pcm_prepare()
1469 runtime->rate, in snd_azf3328_pcm_prepare()
1470 snd_pcm_format_width(runtime->format), in snd_azf3328_pcm_prepare()
1471 runtime->channels); in snd_azf3328_pcm_prepare()
1473 runtime->dma_addr, count, size); in snd_azf3328_pcm_prepare()
1482 struct snd_pcm_runtime *runtime = substream->runtime; in snd_azf3328_pcm_trigger() local
1483 struct snd_azf3328_codec_data *codec = runtime->private_data; in snd_azf3328_pcm_trigger()
1502 runtime->rate, in snd_azf3328_pcm_trigger()
[all …]
/linux-4.4.14/sound/firewire/bebob/
Dbebob_pcm.c112 struct snd_pcm_runtime *runtime = substream->runtime; in pcm_init_hw_params() local
117 runtime->hw.info = SNDRV_PCM_INFO_BATCH | in pcm_init_hw_params()
125 runtime->hw.formats = AM824_IN_PCM_FORMAT_BITS; in pcm_init_hw_params()
129 runtime->hw.formats = AM824_OUT_PCM_FORMAT_BITS; in pcm_init_hw_params()
134 limit_channels_and_rates(&runtime->hw, formations); in pcm_init_hw_params()
135 limit_period_and_buffer(&runtime->hw); in pcm_init_hw_params()
137 err = snd_pcm_hw_rule_add(runtime, 0, SNDRV_PCM_HW_PARAM_CHANNELS, in pcm_init_hw_params()
143 err = snd_pcm_hw_rule_add(runtime, 0, SNDRV_PCM_HW_PARAM_RATE, in pcm_init_hw_params()
149 err = amdtp_am824_add_pcm_hw_constraints(s, runtime); in pcm_init_hw_params()
189 substream->runtime->hw.rate_min = sampling_rate; in pcm_open()
[all …]
/linux-4.4.14/sound/pci/cs5535audio/
Dcs5535audio_pcm.c96 struct snd_pcm_runtime *runtime = substream->runtime; in snd_cs5535audio_playback_open() local
98 runtime->hw = snd_cs5535audio_playback; in snd_cs5535audio_playback_open()
99 runtime->hw.rates = cs5535au->ac97->rates[AC97_RATES_FRONT_DAC]; in snd_cs5535audio_playback_open()
100 snd_pcm_limit_hw_rates(runtime); in snd_cs5535audio_playback_open()
102 runtime->private_data = &(cs5535au->dmas[CS5535AUDIO_DMA_PLAYBACK]); in snd_cs5535audio_playback_open()
103 if ((err = snd_pcm_hw_constraint_integer(runtime, in snd_cs5535audio_playback_open()
145 addr = (u32) substream->runtime->dma_addr; in cs5535audio_build_dma_packets()
249 struct cs5535audio_dma *dma = substream->runtime->private_data; in snd_cs5535audio_hw_params()
256 dma->buf_addr = substream->runtime->dma_addr; in snd_cs5535audio_hw_params()
271 struct cs5535audio_dma *dma = substream->runtime->private_data; in snd_cs5535audio_hw_free()
[all …]
/linux-4.4.14/sound/firewire/
Damdtp-am824.c159 struct snd_pcm_runtime *runtime = pcm->runtime; in write_pcm_s32() local
164 src = (void *)runtime->dma_area + in write_pcm_s32()
165 frames_to_bytes(runtime, s->pcm_buffer_pointer); in write_pcm_s32()
166 remaining_frames = runtime->buffer_size - s->pcm_buffer_pointer; in write_pcm_s32()
176 src = (void *)runtime->dma_area; in write_pcm_s32()
185 struct snd_pcm_runtime *runtime = pcm->runtime; in write_pcm_s16() local
190 src = (void *)runtime->dma_area + in write_pcm_s16()
191 frames_to_bytes(runtime, s->pcm_buffer_pointer); in write_pcm_s16()
192 remaining_frames = runtime->buffer_size - s->pcm_buffer_pointer; in write_pcm_s16()
202 src = (void *)runtime->dma_area; in write_pcm_s16()
[all …]
Disight.c90 struct snd_pcm_runtime *runtime = isight->pcm->runtime; in isight_update_pointers() local
97 if (ptr >= runtime->buffer_size) in isight_update_pointers()
98 ptr -= runtime->buffer_size; in isight_update_pointers()
102 if (isight->period_counter >= runtime->period_size) { in isight_update_pointers()
103 isight->period_counter -= runtime->period_size; in isight_update_pointers()
111 struct snd_pcm_runtime *runtime; in isight_samples() local
117 runtime = isight->pcm->runtime; in isight_samples()
118 if (isight->buffer_pointer + count <= runtime->buffer_size) { in isight_samples()
119 memcpy(runtime->dma_area + isight->buffer_pointer * 4, in isight_samples()
122 count1 = runtime->buffer_size - isight->buffer_pointer; in isight_samples()
[all …]
Damdtp-stream.c139 struct snd_pcm_runtime *runtime) in amdtp_stream_add_pcm_hw_constraints() argument
153 err = snd_pcm_hw_constraint_minmax(runtime, in amdtp_stream_add_pcm_hw_constraints()
172 err = snd_pcm_hw_constraint_step(runtime, 0, in amdtp_stream_add_pcm_hw_constraints()
176 err = snd_pcm_hw_constraint_step(runtime, 0, in amdtp_stream_add_pcm_hw_constraints()
345 if (ptr >= pcm->runtime->buffer_size) in update_pcm_pointers()
346 ptr -= pcm->runtime->buffer_size; in update_pcm_pointers()
350 if (s->pcm_period_pointer >= pcm->runtime->period_size) { in update_pcm_pointers()
351 s->pcm_period_pointer -= pcm->runtime->period_size; in update_pcm_pointers()
/linux-4.4.14/sound/pci/au88x0/
Dau88x0_pcm.c141 struct snd_pcm_runtime *runtime = substream->runtime; in snd_vortex_pcm_open() local
146 snd_pcm_hw_constraint_integer(runtime, in snd_vortex_pcm_open()
151 snd_pcm_hw_constraint_pow2(runtime, 0, in snd_vortex_pcm_open()
155 snd_pcm_hw_constraint_step(runtime, 0, in snd_vortex_pcm_open()
161 runtime->hw = snd_vortex_playback_hw_a3d; in snd_vortex_pcm_open()
165 runtime->hw = snd_vortex_playback_hw_spdif; in snd_vortex_pcm_open()
168 runtime->hw.rates = SNDRV_PCM_RATE_32000; in snd_vortex_pcm_open()
171 runtime->hw.rates = SNDRV_PCM_RATE_44100; in snd_vortex_pcm_open()
174 runtime->hw.rates = SNDRV_PCM_RATE_48000; in snd_vortex_pcm_open()
180 runtime->hw = snd_vortex_playback_hw_adb; in snd_vortex_pcm_open()
[all …]
/linux-4.4.14/sound/soc/atmel/
Datmel-pcm-pdc.c166 struct atmel_runtime_data *prtd = substream->runtime->private_data; in atmel_pcm_dma_irq()
215 struct snd_pcm_runtime *runtime = substream->runtime; in atmel_pcm_hw_params() local
216 struct atmel_runtime_data *prtd = runtime->private_data; in atmel_pcm_hw_params()
223 runtime->dma_bytes = params_buffer_bytes(params); in atmel_pcm_hw_params()
228 prtd->dma_buffer = runtime->dma_addr; in atmel_pcm_hw_params()
229 prtd->dma_buffer_end = runtime->dma_addr + runtime->dma_bytes; in atmel_pcm_hw_params()
236 runtime->dma_bytes, in atmel_pcm_hw_params()
243 struct atmel_runtime_data *prtd = substream->runtime->private_data; in atmel_pcm_hw_free()
257 struct atmel_runtime_data *prtd = substream->runtime->private_data; in atmel_pcm_prepare()
270 struct snd_pcm_runtime *rtd = substream->runtime; in atmel_pcm_trigger()
[all …]
/linux-4.4.14/sound/sh/
Daica.c239 struct snd_pcm_runtime *runtime; in aica_dma_transfer() local
245 runtime = substream->runtime; in aica_dma_transfer()
249 (unsigned long) (runtime->dma_area + in aica_dma_transfer()
277 struct snd_pcm_runtime *runtime; in run_spu_dma() local
281 runtime = dreamcastcard->substream->runtime; in run_spu_dma()
284 frames_to_bytes(runtime, runtime->buffer_size); in run_spu_dma()
285 if (runtime->channels > 1) in run_spu_dma()
287 aica_dma_transfer(runtime->channels, buffer_size, in run_spu_dma()
291 buffer_size / (AICA_PERIOD_SIZE * runtime->channels); in run_spu_dma()
294 aica_dma_transfer(runtime->channels, in run_spu_dma()
[all …]
Dsh_dac_audio.c117 struct snd_pcm_runtime *runtime = substream->runtime; in snd_sh_dac_pcm_open() local
119 runtime->hw = snd_sh_dac_pcm_hw; in snd_sh_dac_pcm_open()
158 struct snd_pcm_runtime *runtime = chip->substream->runtime; in snd_sh_dac_pcm_prepare() local
160 chip->buffer_size = runtime->buffer_size; in snd_sh_dac_pcm_prepare()
192 struct snd_pcm_runtime *runtime = substream->runtime; in snd_sh_dac_pcm_copy() local
193 ssize_t b_count = frames_to_bytes(runtime , count); in snd_sh_dac_pcm_copy()
194 ssize_t b_pos = frames_to_bytes(runtime , pos); in snd_sh_dac_pcm_copy()
219 struct snd_pcm_runtime *runtime = substream->runtime; in snd_sh_dac_pcm_silence() local
220 ssize_t b_count = frames_to_bytes(runtime , count); in snd_sh_dac_pcm_silence()
221 ssize_t b_pos = frames_to_bytes(runtime , pos); in snd_sh_dac_pcm_silence()
[all …]
/linux-4.4.14/drivers/gpu/drm/nouveau/
Dnouveau_vga.c90 bool runtime = false; in nouveau_vga_init() local
99 runtime = true; in nouveau_vga_init()
101 runtime = true; in nouveau_vga_init()
102 vga_switcheroo_register_client(dev->pdev, &nouveau_switcheroo_ops, runtime); in nouveau_vga_init()
104 if (runtime && nouveau_is_v1_dsm() && !nouveau_is_optimus()) in nouveau_vga_init()
112 bool runtime = false; in nouveau_vga_fini() local
115 runtime = true; in nouveau_vga_fini()
117 runtime = true; in nouveau_vga_fini()
120 if (runtime && nouveau_is_v1_dsm() && !nouveau_is_optimus()) in nouveau_vga_fini()
/linux-4.4.14/sound/mips/
Dsgio2audio.c369 struct snd_pcm_runtime *runtime = chip->channel[ch].substream->runtime; in snd_sgio2audio_dma_pull_frag() local
375 dst_base = runtime->dma_area; in snd_sgio2audio_dma_pull_frag()
377 dst_mask = frames_to_bytes(runtime, runtime->buffer_size) - 1; in snd_sgio2audio_dma_pull_frag()
381 ret = chip->channel[ch].size >= runtime->period_size; in snd_sgio2audio_dma_pull_frag()
382 chip->channel[ch].size %= runtime->period_size; in snd_sgio2audio_dma_pull_frag()
417 struct snd_pcm_runtime *runtime = chip->channel[ch].substream->runtime; in snd_sgio2audio_dma_push_frag() local
423 src_base = runtime->dma_area; in snd_sgio2audio_dma_push_frag()
425 src_mask = frames_to_bytes(runtime, runtime->buffer_size) - 1; in snd_sgio2audio_dma_push_frag()
429 ret = chip->channel[ch].size >= runtime->period_size; in snd_sgio2audio_dma_push_frag()
430 chip->channel[ch].size %= runtime->period_size; in snd_sgio2audio_dma_push_frag()
[all …]
Dau1x00.c157 struct snd_pcm_runtime *runtime = substream->runtime; in au1000_setup_dma_link() local
162 dma_start = virt_to_phys(runtime->dma_area); in au1000_setup_dma_link()
296 substream->runtime->hw = snd_au1000_hw; in snd_au1000_playback_open()
297 return (snd_pcm_hw_constraint_list(substream->runtime, 0, in snd_au1000_playback_open()
309 substream->runtime->hw = snd_au1000_hw; in snd_au1000_capture_open()
310 return (snd_pcm_hw_constraint_list(substream->runtime, 0, in snd_au1000_capture_open()
360 struct snd_pcm_runtime *runtime = substream->runtime; in snd_au1000_playback_prepare() local
362 if (runtime->channels == 1) in snd_au1000_playback_prepare()
366 snd_ac97_set_rate(au1000->ac97, AC97_PCM_FRONT_DAC_RATE, runtime->rate); in snd_au1000_playback_prepare()
374 struct snd_pcm_runtime *runtime = substream->runtime; in snd_au1000_capture_prepare() local
[all …]
Dhal2.c532 struct snd_pcm_runtime *runtime = substream->runtime; in hal2_playback_open() local
536 runtime->hw = hal2_pcm_hw; in hal2_playback_open()
555 struct snd_pcm_runtime *runtime = substream->runtime; in hal2_playback_prepare() local
558 dac->voices = runtime->channels; in hal2_playback_prepare()
559 dac->sample_rate = hal2_compute_rate(dac, runtime->rate); in hal2_playback_prepare()
604 memcpy(buf, substream->runtime->dma_area + rec->sw_data, bytes); in hal2_playback_transfer()
623 struct snd_pcm_runtime *runtime = substream->runtime; in hal2_capture_open() local
628 runtime->hw = hal2_pcm_hw; in hal2_capture_open()
647 struct snd_pcm_runtime *runtime = substream->runtime; in hal2_capture_prepare() local
650 adc->voices = runtime->channels; in hal2_capture_prepare()
[all …]
/linux-4.4.14/sound/firewire/digi00x/
Ddigi00x-pcm.c85 substream->runtime->hw = hardware; in pcm_init_hw_params()
88 substream->runtime->hw.formats = SNDRV_PCM_FMTBIT_S32; in pcm_init_hw_params()
91 substream->runtime->hw.formats = SNDRV_PCM_FMTBIT_S16 | in pcm_init_hw_params()
96 err = snd_pcm_hw_rule_add(substream->runtime, 0, in pcm_init_hw_params()
103 err = snd_pcm_hw_rule_add(substream->runtime, 0, in pcm_init_hw_params()
110 return amdtp_dot_add_pcm_hw_constraints(s, substream->runtime); in pcm_init_hw_params()
149 substream->runtime->hw.rate_min = rate; in pcm_open()
150 substream->runtime->hw.rate_max = rate; in pcm_open()
181 if (substream->runtime->status->state == SNDRV_PCM_STATE_OPEN) { in pcm_capture_hw_params()
203 if (substream->runtime->status->state == SNDRV_PCM_STATE_OPEN) { in pcm_playback_hw_params()
[all …]
Damdtp-dot.c158 struct snd_pcm_runtime *runtime = pcm->runtime; in write_pcm_s32() local
163 src = (void *)runtime->dma_area + in write_pcm_s32()
164 frames_to_bytes(runtime, s->pcm_buffer_pointer); in write_pcm_s32()
165 remaining_frames = runtime->buffer_size - s->pcm_buffer_pointer; in write_pcm_s32()
176 src = (void *)runtime->dma_area; in write_pcm_s32()
184 struct snd_pcm_runtime *runtime = pcm->runtime; in write_pcm_s16() local
189 src = (void *)runtime->dma_area + in write_pcm_s16()
190 frames_to_bytes(runtime, s->pcm_buffer_pointer); in write_pcm_s16()
191 remaining_frames = runtime->buffer_size - s->pcm_buffer_pointer; in write_pcm_s16()
202 src = (void *)runtime->dma_area; in write_pcm_s16()
[all …]
/linux-4.4.14/sound/arm/
Dpxa2xx-pcm-lib.c98 struct snd_pcm_runtime *runtime = substream->runtime; in __pxa2xx_pcm_open() local
102 runtime->hw = pxa2xx_pcm_hardware; in __pxa2xx_pcm_open()
113 ret = snd_pcm_hw_constraint_step(runtime, 0, in __pxa2xx_pcm_open()
118 ret = snd_pcm_hw_constraint_step(runtime, 0, in __pxa2xx_pcm_open()
123 ret = snd_pcm_hw_constraint_integer(runtime, in __pxa2xx_pcm_open()
143 struct snd_pcm_runtime *runtime = substream->runtime; in pxa2xx_pcm_mmap() local
145 runtime->dma_area, in pxa2xx_pcm_mmap()
146 runtime->dma_addr, in pxa2xx_pcm_mmap()
147 runtime->dma_bytes); in pxa2xx_pcm_mmap()
Dpxa2xx-ac97.c76 struct snd_pcm_runtime *runtime = substream->runtime; in pxa2xx_ac97_pcm_startup() local
80 runtime->hw.channels_min = 2; in pxa2xx_ac97_pcm_startup()
81 runtime->hw.channels_max = 2; in pxa2xx_ac97_pcm_startup()
85 runtime->hw.rates = pxa2xx_ac97_ac97->rates[r]; in pxa2xx_ac97_pcm_startup()
86 snd_pcm_limit_hw_rates(runtime); in pxa2xx_ac97_pcm_startup()
106 struct snd_pcm_runtime *runtime = substream->runtime; in pxa2xx_ac97_pcm_prepare() local
109 return snd_ac97_set_rate(pxa2xx_ac97_ac97, reg, runtime->rate); in pxa2xx_ac97_pcm_prepare()
Daaci.c404 struct snd_pcm_runtime *runtime = substream->runtime; in aaci_pcm_open() local
416 runtime->private_data = aacirun; in aaci_pcm_open()
417 runtime->hw = aaci_hw_info; in aaci_pcm_open()
418 runtime->hw.rates = aacirun->pcm->rates; in aaci_pcm_open()
419 snd_pcm_limit_hw_rates(runtime); in aaci_pcm_open()
422 runtime->hw.channels_max = 6; in aaci_pcm_open()
425 ret = snd_pcm_hw_rule_add(substream->runtime, 0, in aaci_pcm_open()
433 snd_ac97_pcm_double_rate_rules(runtime); in aaci_pcm_open()
441 runtime->hw.fifo_size = aaci->fifo_depth * 2; in aaci_pcm_open()
462 struct aaci_runtime *aacirun = substream->runtime->private_data; in aaci_pcm_close()
[all …]
Dpxa2xx-pcm.c37 struct snd_pcm_runtime *runtime = substream->runtime; in pxa2xx_pcm_open() local
45 rtd = runtime->private_data; in pxa2xx_pcm_open()
/linux-4.4.14/Documentation/ABI/testing/
Dsysfs-firmware-efi-runtime-map1 What: /sys/firmware/efi/runtime-map/
4 Description: Switching efi runtime services to virtual mode requires
5 that all efi memory ranges which have the runtime attribute
8 The efi runtime services can only be switched to virtual
14 /sys/firmware/efi/runtime-map/ is the directory the kernel
19 /sys/firmware/efi/runtime-map/0
20 /sys/firmware/efi/runtime-map/1
21 /sys/firmware/efi/runtime-map/2
22 /sys/firmware/efi/runtime-map/3
Dsysfs-devices-lpss_ltr18 This attribute is read-only. If the device's runtime PM status
30 This attribute is read-only. If the device's runtime PM status
42 This attribute is read-only. If the device's runtime PM status
/linux-4.4.14/drivers/gpu/drm/bridge/
Ddw_hdmi-ahb-audio.c217 struct snd_pcm_runtime *runtime) in dw_hdmi_create_cs() argument
222 snd_pcm_create_iec958_consumer(runtime, cs, sizeof(cs)); in dw_hdmi_create_cs()
327 struct snd_pcm_runtime *runtime = substream->runtime; in dw_hdmi_open() local
332 runtime->hw = dw_hdmi_hw; in dw_hdmi_open()
334 ret = snd_pcm_hw_constraint_eld(runtime, dw->data.eld); in dw_hdmi_open()
338 ret = snd_pcm_limit_hw_rates(runtime); in dw_hdmi_open()
342 ret = snd_pcm_hw_constraint_integer(runtime, in dw_hdmi_open()
348 ret = snd_pcm_hw_constraint_minmax(runtime, in dw_hdmi_open()
407 struct snd_pcm_runtime *runtime = substream->runtime; in dw_hdmi_prepare() local
416 if (runtime->channels == 2) in dw_hdmi_prepare()
[all …]
/linux-4.4.14/sound/usb/line6/
Dcapture.c92 struct snd_pcm_runtime *runtime = substream->runtime; in line6_capture_copy() local
96 if (runtime == NULL) in line6_capture_copy()
99 if (line6pcm->in.pos_done + frames > runtime->buffer_size) { in line6_capture_copy()
106 len = runtime->buffer_size - line6pcm->in.pos_done; in line6_capture_copy()
109 memcpy(runtime->dma_area + in line6_capture_copy()
112 memcpy(runtime->dma_area, fbuf + len * bytes_per_frame, in line6_capture_copy()
121 memcpy(runtime->dma_area + in line6_capture_copy()
126 if (line6pcm->in.pos_done >= runtime->buffer_size) in line6_capture_copy()
127 line6pcm->in.pos_done -= runtime->buffer_size; in line6_capture_copy()
214 struct snd_pcm_runtime *runtime = substream->runtime; in snd_line6_capture_open() local
[all …]
Dplayback.c204 struct snd_pcm_runtime *runtime = in submit_audio_out_urb() local
205 get_substream(line6pcm, SNDRV_PCM_STREAM_PLAYBACK)->runtime; in submit_audio_out_urb()
207 if (line6pcm->out.pos + urb_frames > runtime->buffer_size) { in submit_audio_out_urb()
214 len = runtime->buffer_size - line6pcm->out.pos; in submit_audio_out_urb()
218 runtime->dma_area + in submit_audio_out_urb()
222 len * bytes_per_frame, runtime->dma_area, in submit_audio_out_urb()
229 runtime->dma_area + in submit_audio_out_urb()
235 if (line6pcm->out.pos >= runtime->buffer_size) in submit_audio_out_urb()
236 line6pcm->out.pos -= runtime->buffer_size; in submit_audio_out_urb()
329 struct snd_pcm_runtime *runtime = substream->runtime; in audio_out_callback() local
[all …]
/linux-4.4.14/sound/soc/kirkwood/
Dkirkwood-dma.c108 struct snd_pcm_runtime *runtime = substream->runtime; in kirkwood_dma_open() local
116 err = snd_pcm_hw_constraint_minmax(runtime, in kirkwood_dma_open()
123 err = snd_pcm_hw_constraint_step(runtime, 0, in kirkwood_dma_open()
129 err = snd_pcm_hw_constraint_step(substream->runtime, 0, in kirkwood_dma_open()
190 struct snd_pcm_runtime *runtime = substream->runtime; in kirkwood_dma_hw_params() local
193 runtime->dma_bytes = params_buffer_bytes(params); in kirkwood_dma_hw_params()
206 struct snd_pcm_runtime *runtime = substream->runtime; in kirkwood_dma_prepare() local
211 size = frames_to_bytes(runtime, runtime->buffer_size); in kirkwood_dma_prepare()
217 writel(runtime->dma_addr, priv->io + KIRKWOOD_PLAY_BUF_ADDR); in kirkwood_dma_prepare()
221 writel(runtime->dma_addr, priv->io + KIRKWOOD_REC_BUF_ADDR); in kirkwood_dma_prepare()
[all …]
/linux-4.4.14/sound/soc/intel/atom/
Dsst-mfld-platform-compress.c54 struct snd_compr_runtime *runtime = cstream->runtime; in sst_platform_compr_open() local
76 runtime->private_data = stream; in sst_platform_compr_open()
88 stream = cstream->runtime->private_data; in sst_platform_compr_free()
113 stream = cstream->runtime->private_data; in sst_platform_compr_set_params()
156 virt_to_phys(cstream->runtime->buffer); in sst_platform_compr_set_params()
158 cstream->runtime->buffer_size; in sst_platform_compr_set_params()
160 str_params.aparams.frag_size = cstream->runtime->fragment_size; in sst_platform_compr_set_params()
179 struct sst_runtime_stream *stream = cstream->runtime->private_data; in sst_platform_compr_trigger()
210 stream = cstream->runtime->private_data; in sst_platform_compr_pointer()
213 (u32)cstream->runtime->buffer_size; in sst_platform_compr_pointer()
[all …]
Dsst-mfld-platform-pcm.c139 channels = substream->runtime->channels; in sst_fill_alloc_params()
140 period_size = substream->runtime->period_size; in sst_fill_alloc_params()
141 periodbytes = samples_to_bytes(substream->runtime, period_size); in sst_fill_alloc_params()
152 param->uc.pcm_params.num_chan = (u8) substream->runtime->channels; in sst_fill_pcm_params()
153 param->uc.pcm_params.pcm_wd_sz = substream->runtime->sample_bits; in sst_fill_pcm_params()
154 param->uc.pcm_params.sfreq = substream->runtime->rate; in sst_fill_pcm_params()
233 substream->runtime->private_data; in sst_platform_alloc_stream()
243 substream->runtime->dma_area = substream->dma_buffer.area; in sst_platform_alloc_stream()
269 if (!substream || !substream->runtime) in sst_period_elapsed()
271 stream = substream->runtime->private_data; in sst_period_elapsed()
[all …]
/linux-4.4.14/sound/soc/intel/common/
Dsst-firmware.c412 struct sst_module_runtime *runtime, *rtmp; in sst_fw_unload() local
423 list_for_each_entry_safe(runtime, rtmp, &module->runtime_list, list) { in sst_fw_unload()
425 block_list_remove(dsp, &runtime->block_list); in sst_fw_unload()
426 list_del(&runtime->list); in sst_fw_unload()
427 kfree(runtime); in sst_fw_unload()
524 struct sst_module_runtime *runtime; in sst_module_runtime_new() local
526 runtime = kzalloc(sizeof(*runtime), GFP_KERNEL); in sst_module_runtime_new()
527 if (runtime == NULL) in sst_module_runtime_new()
530 runtime->id = id; in sst_module_runtime_new()
531 runtime->dsp = dsp; in sst_module_runtime_new()
[all …]
Dsst-dsp-priv.h357 void sst_module_runtime_free(struct sst_module_runtime *runtime);
360 int sst_module_runtime_alloc_blocks(struct sst_module_runtime *runtime,
362 int sst_module_runtime_free_blocks(struct sst_module_runtime *runtime);
363 int sst_module_runtime_save(struct sst_module_runtime *runtime,
365 int sst_module_runtime_restore(struct sst_module_runtime *runtime,
/linux-4.4.14/sound/hda/
Dhdac_stream.c142 struct snd_pcm_runtime *runtime; in snd_hdac_stream_setup() local
146 runtime = azx_dev->substream->runtime; in snd_hdac_stream_setup()
148 runtime = NULL; in snd_hdac_stream_setup()
196 if (runtime && runtime->period_size > 64) in snd_hdac_stream_setup()
198 -frames_to_bytes(runtime, 64); in snd_hdac_stream_setup()
203 if (runtime) in snd_hdac_stream_setup()
204 azx_dev->period_wallclk = (((runtime->period_size * 24000) / in snd_hdac_stream_setup()
205 runtime->rate) * 1000); in snd_hdac_stream_setup()
366 struct snd_pcm_runtime *runtime = substream->runtime; in snd_hdac_stream_setup_periods() local
386 pos_adj = (pos_adj * runtime->rate + 47999) / 48000; in snd_hdac_stream_setup_periods()
[all …]
/linux-4.4.14/drivers/media/usb/usbtv/
Dusbtv-audio.c54 struct snd_pcm_runtime *runtime = substream->runtime; in snd_usbtv_pcm_open() local
57 runtime->hw = snd_usbtv_digital_hw; in snd_usbtv_pcm_open()
112 struct snd_pcm_runtime *runtime = substream->runtime; in usbtv_audio_urb_received() local
134 frame_bytes = runtime->frame_bits >> 3; in usbtv_audio_urb_received()
144 if (buffer_pos + chunk_length >= runtime->buffer_size) { in usbtv_audio_urb_received()
145 size_t cnt = (runtime->buffer_size - buffer_pos) * in usbtv_audio_urb_received()
147 memcpy(runtime->dma_area + buffer_pos * frame_bytes, in usbtv_audio_urb_received()
149 memcpy(runtime->dma_area, urb_current + cnt, in usbtv_audio_urb_received()
152 memcpy(runtime->dma_area + buffer_pos * frame_bytes, in usbtv_audio_urb_received()
159 if (buffer_pos >= runtime->buffer_size) in usbtv_audio_urb_received()
[all …]
/linux-4.4.14/sound/firewire/dice/
Ddice-pcm.c83 struct snd_pcm_runtime *runtime, in limit_channels_and_rates() argument
86 struct snd_pcm_hardware *hw = &runtime->hw; in limit_channels_and_rates()
104 snd_pcm_limit_hw_rates(runtime); in limit_channels_and_rates()
122 struct snd_pcm_runtime *runtime = substream->runtime; in init_hw_info() local
123 struct snd_pcm_hardware *hw = &runtime->hw; in init_hw_info()
145 limit_channels_and_rates(dice, runtime, pcm_channels); in init_hw_info()
148 err = snd_pcm_hw_rule_add(runtime, 0, SNDRV_PCM_HW_PARAM_RATE, in init_hw_info()
153 err = snd_pcm_hw_rule_add(runtime, 0, SNDRV_PCM_HW_PARAM_CHANNELS, in init_hw_info()
159 err = amdtp_am824_add_pcm_hw_constraints(stream, runtime); in init_hw_info()
208 substream->runtime->hw.rate_min = rate; in pcm_open()
[all …]
/linux-4.4.14/sound/pci/trident/
Dtrident_main.c765 struct snd_pcm_runtime *runtime = substream->runtime; in snd_trident_control_mode() local
771 if (snd_pcm_format_width(runtime->format) == 16) in snd_trident_control_mode()
773 if (snd_pcm_format_signed(runtime->format)) in snd_trident_control_mode()
775 if (runtime->channels > 1) in snd_trident_control_mode()
823 struct snd_pcm_runtime *runtime = substream->runtime; in snd_trident_allocate_pcm_mem() local
824 struct snd_trident_voice *voice = runtime->private_data; in snd_trident_allocate_pcm_mem()
857 struct snd_pcm_runtime *runtime = substream->runtime; in snd_trident_allocate_evoice() local
858 struct snd_trident_voice *voice = runtime->private_data; in snd_trident_allocate_evoice()
918 struct snd_pcm_runtime *runtime = substream->runtime; in snd_trident_hw_free() local
919 struct snd_trident_voice *voice = runtime->private_data; in snd_trident_hw_free()
[all …]
Dtrident_memory.c194 struct snd_pcm_runtime *runtime = substream->runtime; in snd_trident_alloc_sg_pages() local
197 if (snd_BUG_ON(runtime->dma_bytes <= 0 || in snd_trident_alloc_sg_pages()
198 runtime->dma_bytes > SNDRV_TRIDENT_MAX_PAGES * in snd_trident_alloc_sg_pages()
208 blk = search_empty(hdr, runtime->dma_bytes); in snd_trident_alloc_sg_pages()
242 struct snd_pcm_runtime *runtime = substream->runtime; in snd_trident_alloc_cont_pages() local
246 if (snd_BUG_ON(runtime->dma_bytes <= 0 || in snd_trident_alloc_cont_pages()
247 runtime->dma_bytes > SNDRV_TRIDENT_MAX_PAGES * in snd_trident_alloc_cont_pages()
255 blk = search_empty(hdr, runtime->dma_bytes); in snd_trident_alloc_cont_pages()
262 addr = runtime->dma_addr; in snd_trident_alloc_cont_pages()
263 ptr = (unsigned long)runtime->dma_area; in snd_trident_alloc_cont_pages()
/linux-4.4.14/drivers/media/pci/saa7134/
Dsaa7134-alsa.c248 struct snd_pcm_runtime *runtime = substream->runtime; in snd_card_saa7134_capture_trigger() local
249 snd_card_saa7134_pcm_t *pcm = runtime->private_data; in snd_card_saa7134_capture_trigger()
512 struct snd_pcm_runtime *runtime = substream->runtime; in snd_card_saa7134_capture_prepare() local
517 snd_card_saa7134_pcm_t *pcm = runtime->private_data; in snd_card_saa7134_capture_prepare()
523 if (snd_pcm_format_width(runtime->format) == 8) in snd_card_saa7134_capture_prepare()
528 if (snd_pcm_format_signed(runtime->format)) in snd_card_saa7134_capture_prepare()
533 if (snd_pcm_format_big_endian(runtime->format)) in snd_card_saa7134_capture_prepare()
540 if (1 == runtime->channels) in snd_card_saa7134_capture_prepare()
542 if (2 == runtime->channels) in snd_card_saa7134_capture_prepare()
556 if (1 == runtime->channels) in snd_card_saa7134_capture_prepare()
[all …]
/linux-4.4.14/sound/pci/aw2/
Daw2-alsa.c397 struct snd_pcm_runtime *runtime = substream->runtime; in snd_aw2_pcm_playback_open() local
400 runtime->hw = snd_aw2_playback_hw; in snd_aw2_pcm_playback_open()
413 struct snd_pcm_runtime *runtime = substream->runtime; in snd_aw2_pcm_capture_open() local
416 runtime->hw = snd_aw2_capture_hw; in snd_aw2_pcm_capture_open()
446 struct snd_pcm_runtime *runtime = substream->runtime; in snd_aw2_pcm_prepare_playback() local
456 runtime->dma_addr, period_size, in snd_aw2_pcm_prepare_playback()
475 struct snd_pcm_runtime *runtime = substream->runtime; in snd_aw2_pcm_prepare_capture() local
485 runtime->dma_addr, period_size, in snd_aw2_pcm_prepare_capture()
560 struct snd_pcm_runtime *runtime = substream->runtime; in snd_aw2_pcm_pointer_playback() local
564 runtime->dma_area, in snd_aw2_pcm_pointer_playback()
[all …]
/linux-4.4.14/drivers/media/usb/em28xx/
Dem28xx-audio.c91 struct snd_pcm_runtime *runtime; in em28xx_audio_isocirq() local
117 runtime = substream->runtime; in em28xx_audio_isocirq()
118 stride = runtime->frame_bits >> 3; in em28xx_audio_isocirq()
130 if (oldptr + length >= runtime->buffer_size) { in em28xx_audio_isocirq()
132 runtime->buffer_size - oldptr; in em28xx_audio_isocirq()
133 memcpy(runtime->dma_area + oldptr * stride, cp, in em28xx_audio_isocirq()
135 memcpy(runtime->dma_area, cp + cnt * stride, in em28xx_audio_isocirq()
138 memcpy(runtime->dma_area + oldptr * stride, cp, in em28xx_audio_isocirq()
146 runtime->buffer_size) in em28xx_audio_isocirq()
148 runtime->buffer_size; in em28xx_audio_isocirq()
[all …]
/linux-4.4.14/sound/soc/intel/skylake/
Dskl-pcm.c59 return substream->runtime->private_data; in get_hdac_ext_stream()
91 struct snd_pcm_runtime *runtime) in skl_set_pcm_constrains() argument
93 snd_pcm_hw_constraint_integer(runtime, SNDRV_PCM_HW_PARAM_PERIODS); in skl_set_pcm_constrains()
96 snd_pcm_hw_constraint_minmax(runtime, SNDRV_PCM_HW_PARAM_BUFFER_TIME, in skl_set_pcm_constrains()
113 struct snd_pcm_runtime *runtime = substream->runtime; in skl_pcm_open() local
127 skl_set_pcm_constrains(ebus, runtime); in skl_pcm_open()
134 runtime->hw.info &= ~SNDRV_PCM_INFO_HAS_WALL_CLOCK; /* legacy */ in skl_pcm_open()
135 runtime->hw.info &= ~SNDRV_PCM_INFO_HAS_LINK_ATIME; in skl_pcm_open()
138 runtime->private_data = stream; in skl_pcm_open()
163 struct snd_pcm_runtime *runtime = substream->runtime; in skl_get_format() local
[all …]
/linux-4.4.14/sound/soc/txx9/
Dtxx9aclc.c55 struct snd_pcm_runtime *runtime = substream->runtime; in txx9aclc_pcm_hw_params() local
56 struct txx9aclc_dmadata *dmadata = runtime->private_data; in txx9aclc_pcm_hw_params()
66 (unsigned long)runtime->dma_area, in txx9aclc_pcm_hw_params()
67 (unsigned long)runtime->dma_addr, runtime->dma_bytes, in txx9aclc_pcm_hw_params()
68 runtime->min_align); in txx9aclc_pcm_hw_params()
86 struct snd_pcm_runtime *runtime = substream->runtime; in txx9aclc_pcm_prepare() local
87 struct txx9aclc_dmadata *dmadata = runtime->private_data; in txx9aclc_pcm_prepare()
89 dmadata->dma_addr = runtime->dma_addr; in txx9aclc_pcm_prepare()
208 struct txx9aclc_dmadata *dmadata = substream->runtime->private_data; in txx9aclc_pcm_trigger()
241 struct txx9aclc_dmadata *dmadata = substream->runtime->private_data; in txx9aclc_pcm_pointer()
[all …]
/linux-4.4.14/sound/pci/nm256/
Dnm256.c432 struct snd_pcm_runtime *runtime = substream->runtime; in snd_nm256_set_format() local
433 int rate_index = snd_nm256_fixed_rate(runtime->rate); in snd_nm256_set_format()
437 if (snd_pcm_format_width(runtime->format) == 16) { in snd_nm256_set_format()
441 if (runtime->channels > 1) { in snd_nm256_set_format()
446 runtime->rate = samplerates[rate_index]; in snd_nm256_set_format()
565 struct nm256_stream *s = substream->runtime->private_data; in snd_nm256_playback_trigger()
603 struct nm256_stream *s = substream->runtime->private_data; in snd_nm256_capture_trigger()
640 struct snd_pcm_runtime *runtime = substream->runtime; in snd_nm256_pcm_prepare() local
641 struct nm256_stream *s = runtime->private_data; in snd_nm256_pcm_prepare()
645 s->dma_size = frames_to_bytes(runtime, substream->runtime->buffer_size); in snd_nm256_pcm_prepare()
[all …]
/linux-4.4.14/drivers/media/pci/cx23885/
Dcx23885-alsa.c326 struct snd_pcm_runtime *runtime = substream->runtime; in snd_cx23885_pcm_open() local
335 err = snd_pcm_hw_constraint_pow2(runtime, 0, in snd_cx23885_pcm_open()
342 runtime->hw = snd_cx23885_digital_hw; in snd_cx23885_pcm_open()
349 runtime->hw.period_bytes_min = bpl; in snd_cx23885_pcm_open()
350 runtime->hw.period_bytes_max = bpl; in snd_cx23885_pcm_open()
378 if (substream->runtime->dma_area) { in snd_cx23885_hw_params()
380 substream->runtime->dma_area = NULL; in snd_cx23885_hw_params()
416 substream->runtime->dma_area = chip->buf->vaddr; in snd_cx23885_hw_params()
417 substream->runtime->dma_bytes = chip->dma_size; in snd_cx23885_hw_params()
418 substream->runtime->dma_addr = 0; in snd_cx23885_hw_params()
[all …]
/linux-4.4.14/sound/soc/sh/
Ddma-sh7760.c203 struct snd_pcm_runtime *runtime = substream->runtime; in camelot_prepare() local
208 (u32)runtime->dma_addr, runtime->dma_bytes); in camelot_prepare()
211 BRGREG(BRGATXSAR) = (unsigned long)runtime->dma_area; in camelot_prepare()
212 BRGREG(BRGATXTCR) = runtime->dma_bytes; in camelot_prepare()
214 BRGREG(BRGARXDAR) = (unsigned long)runtime->dma_area; in camelot_prepare()
215 BRGREG(BRGARXTCR) = runtime->dma_bytes; in camelot_prepare()
277 struct snd_pcm_runtime *runtime = substream->runtime; in camelot_pos() local
294 return bytes_to_frames(runtime, pos); in camelot_pos()
/linux-4.4.14/sound/soc/xtensa/
Dxtfpga-i2s.c80 struct snd_pcm_runtime *runtime,
134 struct xtfpga_i2s *i2s, struct snd_pcm_runtime *runtime, \
138 (void *)runtime->dma_area; \
146 if (++tx_ptr >= runtime->buffer_size) \
169 unsigned new_tx_ptr = i2s->tx_fn(i2s, tx_substream->runtime, in xtfpga_pcm_push_tx()
373 struct snd_pcm_runtime *runtime = substream->runtime; in xtfpga_pcm_open() local
379 runtime->private_data = p; in xtfpga_pcm_open()
394 struct snd_pcm_runtime *runtime = substream->runtime; in xtfpga_pcm_hw_params() local
395 struct xtfpga_i2s *i2s = runtime->private_data; in xtfpga_pcm_hw_params()
433 struct snd_pcm_runtime *runtime = substream->runtime; in xtfpga_pcm_trigger() local
[all …]
/linux-4.4.14/sound/usb/misc/
Dua101.c202 ua->playback.substream->runtime->delay -= in playback_urb_complete()
224 struct snd_pcm_runtime *runtime; in copy_playback_data() local
228 runtime = stream->substream->runtime; in copy_playback_data()
230 source = runtime->dma_area + stream->buffer_pos * frame_bytes; in copy_playback_data()
231 if (stream->buffer_pos + frames <= runtime->buffer_size) { in copy_playback_data()
235 frames1 = runtime->buffer_size - stream->buffer_pos; in copy_playback_data()
238 runtime->dma_area, (frames - frames1) * frame_bytes); in copy_playback_data()
242 if (stream->buffer_pos >= runtime->buffer_size) in copy_playback_data()
243 stream->buffer_pos -= runtime->buffer_size; in copy_playback_data()
245 if (stream->period_pos >= runtime->period_size) { in copy_playback_data()
[all …]
/linux-4.4.14/sound/soc/intel/haswell/
Dsst-haswell-pcm.c115 struct sst_module_runtime *runtime; member
474 struct snd_pcm_runtime *runtime = substream->runtime; in hsw_pcm_hw_params() local
613 ret = create_adsp_page_table(substream, pdata, rtd, runtime->dma_area, in hsw_pcm_hw_params()
614 runtime->dma_bytes, rtd->cpu_dai->id); in hsw_pcm_hw_params()
621 if (runtime->dma_bytes % PAGE_SIZE) in hsw_pcm_hw_params()
622 pages = (runtime->dma_bytes / PAGE_SIZE) + 1; in hsw_pcm_hw_params()
624 pages = runtime->dma_bytes / PAGE_SIZE; in hsw_pcm_hw_params()
628 pages, runtime->dma_bytes, 0, in hsw_pcm_hw_params()
644 pcm_data->runtime); in hsw_pcm_hw_params()
682 struct snd_pcm_runtime *runtime = substream->runtime; in hsw_pcm_trigger() local
[all …]
/linux-4.4.14/sound/ppc/
Dsnd_ps3.c461 substream->runtime->rate, in snd_ps3_set_avsetting()
462 snd_pcm_format_width(substream->runtime->format)); in snd_ps3_set_avsetting()
468 switch (substream->runtime->rate) { in snd_ps3_set_avsetting()
483 substream->runtime->rate); in snd_ps3_set_avsetting()
488 switch (snd_pcm_format_width(substream->runtime->format)) { in snd_ps3_set_avsetting()
497 snd_pcm_format_width(substream->runtime->format)); in snd_ps3_set_avsetting()
527 struct snd_pcm_runtime *runtime = substream->runtime; in snd_ps3_pcm_open() local
535 runtime->hw = snd_ps3_pcm_hw; in snd_ps3_pcm_open()
542 snd_pcm_hw_constraint_step(runtime, 0, SNDRV_PCM_HW_PARAM_BUFFER_BYTES, in snd_ps3_pcm_open()
578 rate = substream->runtime->rate; in snd_ps3_delay_to_bytes()
[all …]
Dpmac.c215 struct snd_pcm_runtime *runtime = subs->runtime; in snd_pmac_pcm_prepare() local
224 rate_index = snd_pmac_rate_index(chip, rec, runtime->rate); in snd_pmac_pcm_prepare()
231 astr->cur_formats = 1 << runtime->format; in snd_pmac_pcm_prepare()
233 chip->format = runtime->format; in snd_pmac_pcm_prepare()
252 offset = runtime->dma_addr; in snd_pmac_pcm_prepare()
340 return bytes_to_frames(subs->runtime, count); in snd_pmac_pcm_pointer()
588 struct snd_pcm_runtime *runtime = subs->runtime; in snd_pmac_pcm_open() local
592 runtime->hw.rates = 0; in snd_pmac_pcm_open()
595 runtime->hw.rates |= in snd_pmac_pcm_open()
601 runtime->hw.rate_max = chip->freq_table[i]; in snd_pmac_pcm_open()
[all …]
/linux-4.4.14/sound/pci/ymfpci/
Dymfpci_main.c360 struct snd_pcm_runtime *runtime = substream->runtime; in snd_ymfpci_pcm_capture_interrupt() local
361 struct snd_ymfpci_pcm *ypcm = runtime->private_data; in snd_ymfpci_pcm_capture_interrupt()
394 struct snd_ymfpci_pcm *ypcm = substream->runtime->private_data; in snd_ymfpci_playback_trigger()
439 struct snd_ymfpci_pcm *ypcm = substream->runtime->private_data; in snd_ymfpci_capture_trigger()
498 struct snd_pcm_runtime *runtime, in snd_ymfpci_pcm_init_voice() argument
503 u32 delta = snd_ymfpci_calc_delta(runtime->rate); in snd_ymfpci_pcm_init_voice()
504 u32 lpfQ = snd_ymfpci_calc_lpfQ(runtime->rate); in snd_ymfpci_pcm_init_voice()
505 u32 lpfK = snd_ymfpci_calc_lpfK(runtime->rate); in snd_ymfpci_pcm_init_voice()
514 if (runtime->channels == 1) { in snd_ymfpci_pcm_init_voice()
531 format = runtime->channels == 2 ? 0x00010000 : 0; in snd_ymfpci_pcm_init_voice()
[all …]
/linux-4.4.14/sound/pci/hda/
Dhda_controller.c79 substream->runtime->rate); in azx_adjust_codec_delay()
161 struct snd_pcm_runtime *runtime = substream->runtime; in azx_pcm_prepare() local
176 format_val = snd_hdac_calc_stream_format(runtime->rate, in azx_pcm_prepare()
177 runtime->channels, in azx_pcm_prepare()
178 runtime->format, in azx_pcm_prepare()
184 runtime->rate, runtime->channels, runtime->format); in azx_pcm_prepare()
314 if (substream->runtime) { in azx_get_position()
323 substream->runtime->delay = delay; in azx_get_position()
336 return bytes_to_frames(substream->runtime, in azx_pcm_pointer()
348 if ((substream->runtime->hw.info & SNDRV_PCM_INFO_HAS_LINK_ATIME) && in azx_get_time_info()
[all …]
/linux-4.4.14/sound/soc/omap/
Domap-pcm.c78 struct snd_pcm_runtime *runtime = substream->runtime; in omap_pcm_hw_params() local
93 runtime->dma_bytes = params_buffer_bytes(params); in omap_pcm_hw_params()
157 struct snd_pcm_runtime *runtime = substream->runtime; in omap_pcm_mmap() local
160 runtime->dma_area, in omap_pcm_mmap()
161 runtime->dma_addr, in omap_pcm_mmap()
162 runtime->dma_bytes); in omap_pcm_mmap()
/linux-4.4.14/sound/drivers/pcsp/
Dpcsp_lib.c48 struct snd_pcm_runtime *runtime; in pcsp_timer_update() local
61 runtime = substream->runtime; in pcsp_timer_update()
63 val = runtime->dma_area[chip->playback_ptr + chip->fmt_size - 1]; in pcsp_timer_update()
242 snd_pcm_format_physical_width(substream->runtime->format) >> 3; in snd_pcsp_playback_prepare()
243 chip->is_signed = snd_pcm_format_signed(substream->runtime->format); in snd_pcsp_playback_prepare()
251 substream->runtime->periods, in snd_pcsp_playback_prepare()
285 return bytes_to_frames(substream->runtime, pos); in snd_pcsp_playback_pointer()
313 struct snd_pcm_runtime *runtime = substream->runtime; in snd_pcsp_playback_open() local
321 runtime->hw = snd_pcsp_playback; in snd_pcsp_playback_open()
/linux-4.4.14/sound/spi/
Dat73c213.c211 struct snd_pcm_runtime *runtime = substream->runtime; in snd_at73c213_pcm_open() local
215 err = snd_pcm_hw_constraint_integer(runtime, in snd_at73c213_pcm_open()
221 runtime->hw = snd_at73c213_playback_hw; in snd_at73c213_pcm_open()
257 struct snd_pcm_runtime *runtime = substream->runtime; in snd_at73c213_pcm_prepare() local
260 block_size = frames_to_bytes(runtime, runtime->period_size); in snd_at73c213_pcm_prepare()
265 (long)runtime->dma_addr); in snd_at73c213_pcm_prepare()
267 runtime->period_size * runtime->channels); in snd_at73c213_pcm_prepare()
269 (long)runtime->dma_addr + block_size); in snd_at73c213_pcm_prepare()
271 runtime->period_size * runtime->channels); in snd_at73c213_pcm_prepare()
308 struct snd_pcm_runtime *runtime = substream->runtime; in snd_at73c213_pcm_pointer() local
[all …]
/linux-4.4.14/sound/soc/sti/
Duniperif_player.c243 struct snd_pcm_runtime *runtime) in uni_player_set_channel_status() argument
254 if (runtime && (player->stream_settings.iec958.status[3] in uni_player_set_channel_status()
256 switch (runtime->rate) { in uni_player_set_channel_status()
341 struct snd_pcm_runtime *runtime) in uni_player_prepare_iec958() argument
345 clk_div = player->mclk / runtime->rate; in uni_player_prepare_iec958()
354 switch (runtime->format) { in uni_player_prepare_iec958()
394 uni_player_set_channel_status(player, runtime); in uni_player_prepare_iec958()
417 SET_UNIPERIF_I2S_FMT_NUM_CH(player, runtime->channels / 2); in uni_player_prepare_iec958()
442 struct snd_pcm_runtime *runtime) in uni_player_prepare_pcm() argument
451 switch (runtime->format) { in uni_player_prepare_pcm()
[all …]
Duniperif_reader.c81 struct snd_pcm_runtime *runtime = substream->runtime; in uni_reader_prepare() local
94 transfer_size = runtime->channels * UNIPERIF_FIFO_FRAMES; in uni_reader_prepare()
131 switch (runtime->format) { in uni_reader_prepare()
157 switch (runtime->format) { in uni_reader_prepare()
201 if ((runtime->channels % 2) || (runtime->channels < 2) || in uni_reader_prepare()
202 (runtime->channels > 10)) { in uni_reader_prepare()
207 SET_UNIPERIF_I2S_FMT_NUM_CH(reader, runtime->channels / 2); in uni_reader_prepare()
/linux-4.4.14/sound/pci/oxygen/
Doxygen_pcm.c129 return (unsigned int)(uintptr_t)substream->runtime->private_data; in oxygen_substream_channel()
136 struct snd_pcm_runtime *runtime = substream->runtime; in oxygen_open() local
139 runtime->private_data = (void *)(uintptr_t)channel; in oxygen_open()
142 runtime->hw = oxygen_ac97_hardware; in oxygen_open()
144 runtime->hw = *oxygen_hardware[channel]; in oxygen_open()
148 runtime->hw.rates &= ~(SNDRV_PCM_RATE_32000 | in oxygen_open()
150 runtime->hw.rate_min = 44100; in oxygen_open()
155 runtime->hw.fifo_size = 0; in oxygen_open()
158 runtime->hw.channels_max = chip->model.dac_channels_pcm; in oxygen_open()
162 chip->model.pcm_hardware_filter(channel, &runtime->hw); in oxygen_open()
[all …]
/linux-4.4.14/sound/pci/lola/
Dlola_pcm.c228 struct snd_pcm_runtime *runtime = substream->runtime; in lola_pcm_open() local
238 runtime->hw = lola_pcm_hw; in lola_pcm_open()
239 runtime->hw.channels_max = pcm->num_streams - str->index; in lola_pcm_open()
242 runtime->hw.rate_min = chip->sample_rate; in lola_pcm_open()
243 runtime->hw.rate_max = chip->sample_rate; in lola_pcm_open()
245 runtime->hw.rate_min = chip->sample_rate_min; in lola_pcm_open()
246 runtime->hw.rate_max = chip->sample_rate_max; in lola_pcm_open()
249 snd_pcm_hw_constraint_integer(runtime, SNDRV_PCM_HW_PARAM_PERIODS); in lola_pcm_open()
251 snd_pcm_hw_constraint_step(runtime, 0, SNDRV_PCM_HW_PARAM_BUFFER_SIZE, in lola_pcm_open()
253 snd_pcm_hw_constraint_step(runtime, 0, SNDRV_PCM_HW_PARAM_PERIOD_SIZE, in lola_pcm_open()
[all …]
/linux-4.4.14/arch/x86/platform/efi/
Defi.c294 efi_systab.runtime = data ? in efi_systab_init()
295 (void *)(unsigned long)data->runtime : in efi_systab_init()
296 (void *)(unsigned long)systab64->runtime; in efi_systab_init()
297 tmp |= data ? data->runtime : systab64->runtime; in efi_systab_init()
333 efi_systab.runtime = (void *)(unsigned long)systab32->runtime; in efi_systab_init()
362 efi_runtime_services_32_t *runtime; in efi_runtime_init32() local
364 runtime = early_memremap((unsigned long)efi.systab->runtime, in efi_runtime_init32()
366 if (!runtime) { in efi_runtime_init32()
378 (unsigned long)runtime->set_virtual_address_map; in efi_runtime_init32()
379 early_memunmap(runtime, sizeof(efi_runtime_services_32_t)); in efi_runtime_init32()
[all …]
/linux-4.4.14/sound/pci/asihpi/
Dasihpi.c454 struct snd_pcm_runtime *runtime = substream->runtime; in snd_card_asihpi_pcm_hw_params() local
455 struct snd_card_asihpi_pcm *dpcm = runtime->private_data; in snd_card_asihpi_pcm_hw_params()
486 params_buffer_bytes(params), runtime->dma_addr); in snd_card_asihpi_pcm_hw_params()
491 (unsigned long)runtime->dma_addr); in snd_card_asihpi_pcm_hw_params()
518 struct snd_pcm_runtime *runtime = substream->runtime; in snd_card_asihpi_hw_free() local
519 struct snd_card_asihpi_pcm *dpcm = runtime->private_data; in snd_card_asihpi_hw_free()
527 static void snd_card_asihpi_runtime_free(struct snd_pcm_runtime *runtime) in snd_card_asihpi_runtime_free() argument
529 struct snd_card_asihpi_pcm *dpcm = runtime->private_data; in snd_card_asihpi_runtime_free()
536 struct snd_pcm_runtime *runtime = substream->runtime; in snd_card_asihpi_pcm_timer_start() local
537 struct snd_card_asihpi_pcm *dpcm = runtime->private_data; in snd_card_asihpi_pcm_timer_start()
[all …]
/linux-4.4.14/sound/core/seq/
Dseq_virmidi.c141 struct snd_virmidi *vmidi = substream->runtime->private_data; in snd_virmidi_input_trigger()
155 struct snd_virmidi *vmidi = substream->runtime->private_data; in snd_virmidi_output_trigger()
175 spin_lock_irqsave(&substream->runtime->lock, flags); in snd_virmidi_output_trigger()
198 spin_unlock_irqrestore(&substream->runtime->lock, flags); in snd_virmidi_output_trigger()
210 struct snd_rawmidi_runtime *runtime = substream->runtime; in snd_virmidi_input_open() local
225 runtime->private_data = vmidi; in snd_virmidi_input_open()
239 struct snd_rawmidi_runtime *runtime = substream->runtime; in snd_virmidi_output_open() local
255 runtime->private_data = vmidi; in snd_virmidi_output_open()
265 struct snd_virmidi *vmidi = substream->runtime->private_data; in snd_virmidi_input_close()
271 substream->runtime->private_data = NULL; in snd_virmidi_input_close()
[all …]
Dseq_midi.c77 struct snd_rawmidi_runtime *runtime; in snd_midi_input_event() local
85 runtime = substream->runtime; in snd_midi_input_event()
86 msynth = runtime->private_data; in snd_midi_input_event()
90 while (runtime->avail > 0) { in snd_midi_input_event()
116 struct snd_rawmidi_runtime *runtime; in dump_midi() local
121 runtime = substream->runtime; in dump_midi()
122 if ((tmp = runtime->avail) < count) { in dump_midi()
184 struct snd_rawmidi_runtime *runtime; in midisynth_subscribe() local
195 runtime = msynth->input_rfile.input->runtime; in midisynth_subscribe()
204 runtime->event = snd_midi_input_event; in midisynth_subscribe()
[all …]
/linux-4.4.14/sound/isa/es1688/
Des1688_lib.c315 struct snd_pcm_runtime *runtime = substream->runtime; in snd_es1688_set_rate() local
318 if (runtime->rate_num == clocks[0].num) in snd_es1688_set_rate()
319 bits = 256 - runtime->rate_den; in snd_es1688_set_rate()
321 bits = 128 - runtime->rate_den; in snd_es1688_set_rate()
323 divider = 256 - 7160000*20/(8*82*runtime->rate); in snd_es1688_set_rate()
376 struct snd_pcm_runtime *runtime = substream->runtime; in snd_es1688_playback_prepare() local
385 snd_es1688_write(chip, 0xa8, (snd_es1688_read(chip, 0xa8) & ~0x03) | (3 - runtime->channels)); in snd_es1688_playback_prepare()
387 if (runtime->channels == 1) { in snd_es1688_playback_prepare()
388 if (snd_pcm_format_width(runtime->format) == 8) { in snd_es1688_playback_prepare()
400 if (snd_pcm_format_width(runtime->format) == 8) { in snd_es1688_playback_prepare()
[all …]
/linux-4.4.14/sound/pci/ice1712/
Dice1724.c566 reg = s->runtime->private_data; in snd_vt1724_pcm_trigger()
787 val = (8 - substream->runtime->channels) >> 1; in snd_vt1724_playback_pro_prepare()
790 outl(substream->runtime->dma_addr, ICEMT1724(ice, PLAYBACK_ADDR)); in snd_vt1724_playback_pro_prepare()
823 if (ptr < substream->runtime->dma_addr) { in snd_vt1724_playback_pro_pointer()
827 ptr -= substream->runtime->dma_addr; in snd_vt1724_playback_pro_pointer()
828 ptr = bytes_to_frames(substream->runtime, ptr); in snd_vt1724_playback_pro_pointer()
829 if (ptr >= substream->runtime->buffer_size) { in snd_vt1724_playback_pro_pointer()
831 (int)ptr, (int)substream->runtime->period_size); in snd_vt1724_playback_pro_pointer()
837 ptr = bytes_to_frames(substream->runtime, ptr); in snd_vt1724_playback_pro_pointer()
840 else if (ptr <= substream->runtime->buffer_size) in snd_vt1724_playback_pro_pointer()
[all …]
Dice1712.c589 struct snd_pcm_runtime *runtime = substream->runtime; in snd_ice1712_playback_prepare() local
595 if (snd_pcm_format_width(runtime->format) == 16) in snd_ice1712_playback_prepare()
597 if (runtime->channels == 2) in snd_ice1712_playback_prepare()
599 rate = (runtime->rate * 8192) / 375; in snd_ice1712_playback_prepare()
605 outl(runtime->dma_addr, ice->ddma_port + 0); in snd_ice1712_playback_prepare()
622 struct snd_pcm_runtime *runtime = substream->runtime; in snd_ice1712_playback_ds_prepare() local
627 if (snd_pcm_format_width(runtime->format) == 16) in snd_ice1712_playback_ds_prepare()
629 if (runtime->channels == 2) in snd_ice1712_playback_ds_prepare()
631 rate = (runtime->rate * 8192) / 375; in snd_ice1712_playback_ds_prepare()
635 ice->playback_con_virt_addr[substream->number] = runtime->dma_addr; in snd_ice1712_playback_ds_prepare()
[all …]
/linux-4.4.14/drivers/media/pci/cx25821/
Dcx25821-alsa.c461 struct snd_pcm_runtime *runtime = substream->runtime; in snd_cx25821_pcm_open() local
470 err = snd_pcm_hw_constraint_pow2(runtime, 0, in snd_cx25821_pcm_open()
477 runtime->hw = snd_cx25821_digital_hw; in snd_cx25821_pcm_open()
488 runtime->hw.period_bytes_min = bpl; in snd_cx25821_pcm_open()
489 runtime->hw.period_bytes_max = bpl; in snd_cx25821_pcm_open()
516 if (substream->runtime->dma_area) { in snd_cx25821_hw_params()
518 substream->runtime->dma_area = NULL; in snd_cx25821_hw_params()
559 substream->runtime->dma_area = chip->buf->vaddr; in snd_cx25821_hw_params()
560 substream->runtime->dma_bytes = chip->dma_size; in snd_cx25821_hw_params()
561 substream->runtime->dma_addr = 0; in snd_cx25821_hw_params()
[all …]
/linux-4.4.14/sound/pci/mixart/
Dmixart.c431 struct mixart_stream *stream = subs->runtime->private_data; in snd_mixart_trigger()
493 struct mixart_stream *stream = subs->runtime->private_data; in snd_mixart_prepare()
504 chip->mgr->sample_rate = subs->runtime->rate; in snd_mixart_prepare()
508 if( mixart_set_clock(chip->mgr, stream->pipe, subs->runtime->rate) ) in snd_mixart_prepare()
608 struct mixart_stream *stream = subs->runtime->private_data; in snd_mixart_hw_params()
650 bufferinfo[i].buffer_address = subs->runtime->dma_addr; in snd_mixart_hw_params()
651 bufferinfo[i].available_length = subs->runtime->dma_bytes; in snd_mixart_hw_params()
725 struct snd_pcm_runtime *runtime = subs->runtime; in snd_mixart_playback_open() local
736 runtime->hw = snd_mixart_analog_caps; in snd_mixart_playback_open()
740 runtime->hw = snd_mixart_digital_caps; in snd_mixart_playback_open()
[all …]
/linux-4.4.14/sound/pci/cs46xx/
Dcs46xx_lib.c881 struct snd_pcm_runtime *runtime = substream->runtime; in snd_cs46xx_pb_trans_copy() local
882 struct snd_cs46xx_pcm * cpcm = runtime->private_data; in snd_cs46xx_pb_trans_copy()
883 memcpy(cpcm->hw_buf.area + rec->hw_data, runtime->dma_area + rec->sw_data, bytes); in snd_cs46xx_pb_trans_copy()
888 struct snd_pcm_runtime *runtime = substream->runtime; in snd_cs46xx_playback_transfer() local
889 struct snd_cs46xx_pcm * cpcm = runtime->private_data; in snd_cs46xx_playback_transfer()
898 struct snd_pcm_runtime *runtime = substream->runtime; in snd_cs46xx_cp_trans_copy() local
899 memcpy(runtime->dma_area + rec->sw_data, in snd_cs46xx_cp_trans_copy()
914 struct snd_cs46xx_pcm *cpcm = substream->runtime->private_data; in snd_cs46xx_playback_direct_pointer()
932 struct snd_cs46xx_pcm *cpcm = substream->runtime->private_data; in snd_cs46xx_playback_indirect_pointer()
967 struct snd_cs46xx_pcm *cpcm = substream->runtime->private_data; in snd_cs46xx_playback_trigger()
[all …]
/linux-4.4.14/drivers/staging/most/aim-sound/
Dsound.c185 struct snd_pcm_runtime *const runtime = channel->substream->runtime; in copy_data() local
187 unsigned int const buffer_size = runtime->buffer_size; in copy_data()
197 channel->copy_fn(runtime->dma_area + channel->buffer_pos * frame_bytes, in copy_data()
203 channel->copy_fn(runtime->dma_area, in copy_data()
212 if (channel->period_pos >= runtime->period_size) { in copy_data()
213 channel->period_pos -= runtime->period_size; in copy_data()
276 struct snd_pcm_runtime *runtime = substream->runtime; in pcm_open() local
297 runtime->hw = channel->pcm_hardware; in pcm_open()
374 struct snd_pcm_runtime *runtime = substream->runtime; in pcm_prepare() local
376 int width = snd_pcm_format_physical_width(runtime->format); in pcm_prepare()
[all …]
/linux-4.4.14/Documentation/power/
Druntime_pm.txt9 Support for runtime power management (runtime PM) of I/O devices is provided
14 used for queuing all work items related to runtime PM, because this allows
19 * A number of runtime PM fields in the 'power' member of 'struct device' (which
21 be used for synchronizing runtime PM operations with one another.
23 * Three device runtime PM callbacks in 'struct dev_pm_ops' (defined in
26 * A set of helper functions defined in drivers/base/power/runtime.c that can be
27 used for carrying out runtime PM operations in such a way that the
31 The runtime PM callbacks present in 'struct dev_pm_ops', the device runtime PM
33 runtime PM are described below.
37 There are three device runtime PM callbacks defined in 'struct dev_pm_ops':
[all …]
/linux-4.4.14/sound/isa/msnd/
Dmsnd.c480 struct snd_pcm_runtime *runtime = substream->runtime; in snd_msnd_playback_open() local
487 runtime->dma_area = chip->mappedbase; in snd_msnd_playback_open()
488 runtime->dma_bytes = 0x3000; in snd_msnd_playback_open()
491 runtime->hw = snd_msnd_playback; in snd_msnd_playback_open()
570 return bytes_to_frames(substream->runtime, chip->playDMAPos); in snd_msnd_playback_pointer()
586 struct snd_pcm_runtime *runtime = substream->runtime; in snd_msnd_capture_open() local
591 runtime->dma_area = chip->mappedbase + 0x3000; in snd_msnd_capture_open()
592 runtime->dma_bytes = 0x3000; in snd_msnd_capture_open()
593 memset(runtime->dma_area, 0, runtime->dma_bytes); in snd_msnd_capture_open()
595 runtime->hw = snd_msnd_capture; in snd_msnd_capture_open()
[all …]
/linux-4.4.14/sound/isa/ad1816a/
Dad1816a_lib.c235 struct snd_pcm_runtime *runtime = substream->runtime; in snd_ad1816a_playback_prepare() local
244 snd_dma_program(chip->dma1, runtime->dma_addr, size, in snd_ad1816a_playback_prepare()
247 rate = runtime->rate; in snd_ad1816a_playback_prepare()
253 snd_ad1816a_get_format(chip, runtime->format, in snd_ad1816a_playback_prepare()
254 runtime->channels)); in snd_ad1816a_playback_prepare()
267 struct snd_pcm_runtime *runtime = substream->runtime; in snd_ad1816a_capture_prepare() local
276 snd_dma_program(chip->dma2, runtime->dma_addr, size, in snd_ad1816a_capture_prepare()
279 rate = runtime->rate; in snd_ad1816a_capture_prepare()
285 snd_ad1816a_get_format(chip, runtime->format, in snd_ad1816a_capture_prepare()
286 runtime->channels)); in snd_ad1816a_capture_prepare()
[all …]
/linux-4.4.14/sound/pci/ali5451/
Dali5451.c1062 struct snd_pcm_runtime *runtime = substream->runtime; in snd_ali_control_mode() local
1068 if (snd_pcm_format_width(runtime->format) == 16) in snd_ali_control_mode()
1070 if (!snd_pcm_format_unsigned(runtime->format)) in snd_ali_control_mode()
1072 if (runtime->channels > 1) in snd_ali_control_mode()
1108 pvoice = s->runtime->private_data; in snd_ali_trigger()
1152 struct snd_pcm_runtime *runtime = substream->runtime; in snd_ali_playback_hw_params() local
1153 struct snd_ali_voice *pvoice = runtime->private_data; in snd_ali_playback_hw_params()
1188 struct snd_pcm_runtime *runtime = substream->runtime; in snd_ali_playback_hw_free() local
1189 struct snd_ali_voice *pvoice = runtime->private_data; in snd_ali_playback_hw_free()
1215 struct snd_pcm_runtime *runtime = substream->runtime; in snd_ali_playback_prepare() local
[all …]
/linux-4.4.14/sound/soc/sh/rcar/
Dsrc.c242 struct snd_pcm_runtime *runtime = rsnd_io_to_runtime(io); in rsnd_src_convert_rate() local
245 if (!runtime) in rsnd_src_convert_rate()
257 convert_rate = runtime->rate; in rsnd_src_convert_rate()
264 struct snd_pcm_runtime *runtime) in rsnd_src_get_ssi_rate() argument
281 rate = runtime->rate; in rsnd_src_get_ssi_rate()
289 struct snd_pcm_runtime *runtime = rsnd_io_to_runtime(io); in rsnd_src_set_convert_rate() local
295 fsrate = 0x0400000 / convert_rate * runtime->rate; in rsnd_src_set_convert_rate()
448 struct snd_pcm_runtime *runtime = rsnd_io_to_runtime(io); in rsnd_src_set_convert_timing_gen1() local
473 runtime->rate, in rsnd_src_set_convert_timing_gen1()
745 struct snd_pcm_runtime *runtime = rsnd_io_to_runtime(io); in rsnd_src_set_convert_rate_gen2() local
[all …]
Dcore.c223 struct snd_pcm_runtime *runtime = rsnd_io_to_runtime(io); in rsnd_get_adinr_bit() local
225 u32 adinr = runtime->channels; in rsnd_get_adinr_bit()
227 switch (runtime->sample_bits) { in rsnd_get_adinr_bit()
245 struct snd_pcm_runtime *runtime = rsnd_io_to_runtime(io); in rsnd_get_adinr_chan() local
247 u32 chan = runtime->channels; in rsnd_get_adinr_chan()
273 struct snd_pcm_runtime *runtime = rsnd_io_to_runtime(io); in rsnd_get_dalign() local
277 mask <<= runtime->channels * 4; in rsnd_get_dalign()
280 switch (runtime->sample_bits) { in rsnd_get_dalign()
384 struct snd_pcm_runtime *runtime = substream->runtime; in rsnd_dai_pointer_offset() local
387 pos %= (runtime->periods * io->byte_per_period); in rsnd_dai_pointer_offset()
[all …]
/linux-4.4.14/sound/pci/pcxhr/
Dpcxhr.c649 chip->chip_idx, (void *)(long)subs->runtime->dma_addr, in pcxhr_update_r_buffer()
650 subs->runtime->dma_bytes, subs->number); in pcxhr_update_r_buffer()
657 snd_BUG_ON(subs->runtime->dma_bytes >= 0x200000); in pcxhr_update_r_buffer()
659 rmh.cmd[1] = subs->runtime->dma_bytes * 8; in pcxhr_update_r_buffer()
661 rmh.cmd[2] = subs->runtime->dma_addr >> 24; in pcxhr_update_r_buffer()
665 rmh.cmd[3] = subs->runtime->dma_addr & MASK_DSP_WORD; in pcxhr_update_r_buffer()
851 stream = s->runtime->private_data; in pcxhr_trigger()
858 stream = subs->runtime->private_data; in pcxhr_trigger()
876 stream = s->runtime->private_data; in pcxhr_trigger()
922 subs->runtime->period_size, subs->runtime->periods, in pcxhr_prepare()
[all …]
/linux-4.4.14/tools/testing/selftests/timers/
Dthreadtest.c135 time_t start, now, runtime; in main() local
144 runtime = DEFAULT_RUNTIME; in main()
150 runtime = atoi(optarg); in main()
177 printf("Testing consistency with %i threads for %ld seconds: ", thread_count, runtime); in main()
183 while (time(&now) < start + runtime) { in main()
Dinconsistency-check.c169 int runtime = 10; in main() local
176 runtime = atoi(optarg); in main()
199 if (consistency_test(clockid, runtime)) in main()
/linux-4.4.14/sound/soc/au1x/
Ddbdma2.c198 struct snd_pcm_runtime *runtime = substream->runtime; in au1xpsc_pcm_hw_params() local
211 (unsigned long)runtime->dma_area, in au1xpsc_pcm_hw_params()
212 (unsigned long)runtime->dma_addr, runtime->dma_bytes, in au1xpsc_pcm_hw_params()
213 runtime->min_align); in au1xpsc_pcm_hw_params()
227 pcd->dma_area_s = pcd->dma_area = runtime->dma_addr; in au1xpsc_pcm_hw_params()
282 return bytes_to_frames(substream->runtime, to_dmadata(substream)->pos); in au1xpsc_pcm_pointer()
/linux-4.4.14/sound/soc/
Dsoc-pcm.c158 struct snd_pcm_runtime *runtime = substream->runtime; in snd_soc_set_runtime_hwparams() local
159 runtime->hw.info = hw->info; in snd_soc_set_runtime_hwparams()
160 runtime->hw.formats = hw->formats; in snd_soc_set_runtime_hwparams()
161 runtime->hw.period_bytes_min = hw->period_bytes_min; in snd_soc_set_runtime_hwparams()
162 runtime->hw.period_bytes_max = hw->period_bytes_max; in snd_soc_set_runtime_hwparams()
163 runtime->hw.periods_min = hw->periods_min; in snd_soc_set_runtime_hwparams()
164 runtime->hw.periods_max = hw->periods_max; in snd_soc_set_runtime_hwparams()
165 runtime->hw.buffer_bytes_max = hw->buffer_bytes_max; in snd_soc_set_runtime_hwparams()
166 runtime->hw.fifo_size = hw->fifo_size; in snd_soc_set_runtime_hwparams()
203 ret = snd_pcm_hw_constraint_single(substream->runtime, in soc_pcm_apply_symmetry()
[all …]
/linux-4.4.14/sound/pci/echoaudio/
Dechoaudio.c107 static void audiopipe_free(struct snd_pcm_runtime *runtime) in audiopipe_free() argument
109 struct audiopipe *pipe = runtime->private_data; in audiopipe_free()
274 struct snd_pcm_runtime *runtime; in pcm_open() local
282 runtime = substream->runtime; in pcm_open()
303 runtime->hw = pipe->hw; in pcm_open()
304 runtime->private_data = pipe; in pcm_open()
305 runtime->private_free = audiopipe_free; in pcm_open()
309 if ((err = snd_pcm_hw_constraint_list(runtime, 0, in pcm_open()
315 if ((err = snd_pcm_hw_constraint_integer(runtime, in pcm_open()
322 if ((err = snd_pcm_hw_constraint_step(runtime, 0, in pcm_open()
[all …]
/linux-4.4.14/sound/soc/intel/boards/
Dcht_bsw_rt5645.c178 static int cht_codec_init(struct snd_soc_pcm_runtime *runtime) in cht_codec_init() argument
182 struct snd_soc_codec *codec = runtime->codec; in cht_codec_init()
183 struct snd_soc_dai *codec_dai = runtime->codec_dai; in cht_codec_init()
184 struct cht_mc_private *ctx = snd_soc_card_get_drvdata(runtime->card); in cht_codec_init()
197 dev_err(runtime->dev, "can't set codec TDM slot %d\n", ret); in cht_codec_init()
208 ret = snd_soc_card_jack_new(runtime->card, "Headset Jack", in cht_codec_init()
212 dev_err(runtime->dev, "Headset jack creation failed %d\n", ret); in cht_codec_init()
240 return snd_pcm_hw_constraint_single(substream->runtime, in cht_aif1_startup()
Dbyt-max98090.c84 static int byt_max98090_init(struct snd_soc_pcm_runtime *runtime) in byt_max98090_init() argument
87 struct snd_soc_card *card = runtime->card; in byt_max98090_init()
93 ret = snd_soc_dai_set_sysclk(runtime->codec_dai, in byt_max98090_init()
102 ret = snd_soc_card_jack_new(runtime->card, "Headset", in byt_max98090_init()
Dcht_bsw_max98090_ti.c127 static int cht_codec_init(struct snd_soc_pcm_runtime *runtime) in cht_codec_init() argument
131 struct cht_mc_private *ctx = snd_soc_card_get_drvdata(runtime->card); in cht_codec_init()
148 ret = snd_soc_card_jack_new(runtime->card, "Headset Jack", in cht_codec_init()
152 dev_err(runtime->dev, "Headset Jack creation failed %d\n", ret); in cht_codec_init()
198 return snd_pcm_hw_constraint_single(substream->runtime, in cht_aif1_startup()
Dcht_bsw_rt5672.c170 static int cht_codec_init(struct snd_soc_pcm_runtime *runtime) in cht_codec_init() argument
173 struct snd_soc_dai *codec_dai = runtime->codec_dai; in cht_codec_init()
179 dev_err(runtime->dev, "can't set codec TDM slot %d\n", ret); in cht_codec_init()
197 ret = snd_soc_card_jack_new(runtime->card, "Headset", in cht_codec_init()
227 return snd_pcm_hw_constraint_single(substream->runtime, in cht_aif1_startup()
Dbyt-rt5640.c131 static int byt_rt5640_init(struct snd_soc_pcm_runtime *runtime) in byt_rt5640_init() argument
134 struct snd_soc_codec *codec = runtime->codec; in byt_rt5640_init()
135 struct snd_soc_card *card = runtime->card; in byt_rt5640_init()
/linux-4.4.14/sound/aoa/soundbus/i2sbus/
Dpcm.c91 hw = &pi->substream->runtime->hw; in i2sbus_pcm_open()
196 err = snd_pcm_hw_constraint_integer(pi->substream->runtime, in i2sbus_pcm_open()
331 struct snd_pcm_runtime *runtime; in i2sbus_pcm_prepare() local
356 if (!pi->substream || !pi->substream->runtime) { in i2sbus_pcm_prepare()
361 runtime = pi->substream->runtime; in i2sbus_pcm_prepare()
364 ((i2sdev->format != runtime->format) in i2sbus_pcm_prepare()
365 || (i2sdev->rate != runtime->rate))) { in i2sbus_pcm_prepare()
370 i2sdev->format = runtime->format; in i2sbus_pcm_prepare()
371 i2sdev->rate = runtime->rate; in i2sbus_pcm_prepare()
374 nperiods = pi->substream->runtime->periods; in i2sbus_pcm_prepare()
[all …]
/linux-4.4.14/sound/soc/qcom/
Dlpass-platform.c61 struct snd_pcm_runtime *runtime = substream->runtime; in lpass_platform_pcmops_open() local
67 runtime->dma_bytes = lpass_platform_pcm_hardware.buffer_bytes_max; in lpass_platform_pcmops_open()
69 ret = snd_pcm_hw_constraint_integer(runtime, in lpass_platform_pcmops_open()
190 struct snd_pcm_runtime *runtime = substream->runtime; in lpass_platform_pcmops_prepare() local
200 runtime->dma_addr); in lpass_platform_pcmops_prepare()
335 return bytes_to_frames(substream->runtime, curr_addr - base_addr); in lpass_platform_pcmops_pointer()
341 struct snd_pcm_runtime *runtime = substream->runtime; in lpass_platform_pcmops_mmap() local
344 runtime->dma_area, runtime->dma_addr, in lpass_platform_pcmops_mmap()
345 runtime->dma_bytes); in lpass_platform_pcmops_mmap()
/linux-4.4.14/Documentation/x86/x86_64/
Duefi.txt22 If EFI runtime services are expected, the following configuration should
34 - If some or all EFI runtime services don't work, you can try following
35 kernel command line parameters to turn off some or all EFI runtime
37 noefi turn off all EFI runtime services
38 reboot_type=k turn off EFI reboot runtime service
/linux-4.4.14/sound/pci/lx6464es/
Dlx6464es.c109 struct snd_pcm_runtime *runtime = substream->runtime; in lx_hardware_open() local
110 int channels = runtime->channels; in lx_hardware_open()
113 snd_pcm_uframes_t period_size = runtime->period_size; in lx_hardware_open()
136 struct snd_pcm_runtime *runtime = substream->runtime; in lx_hardware_start() local
140 err = lx_stream_set_format(chip, runtime, 0, is_capture); in lx_hardware_start()
215 struct snd_pcm_runtime *runtime = substream->runtime; in lx_pcm_open() local
223 runtime->hw = lx_caps; in lx_pcm_open()
227 err = snd_pcm_hw_constraint_integer(runtime, in lx_pcm_open()
237 err = snd_pcm_hw_constraint_single(runtime, SNDRV_PCM_HW_PARAM_RATE, in lx_pcm_open()
246 err = snd_pcm_hw_constraint_minmax(runtime, in lx_pcm_open()
[all …]
/linux-4.4.14/drivers/media/pci/cx88/
Dcx88-alsa.c424 struct snd_pcm_runtime *runtime = substream->runtime; in snd_cx88_pcm_open() local
433 err = snd_pcm_hw_constraint_pow2(runtime, 0, SNDRV_PCM_HW_PARAM_PERIODS); in snd_cx88_pcm_open()
439 runtime->hw = snd_cx88_digital_hw; in snd_cx88_pcm_open()
444 runtime->hw.period_bytes_min = bpl; in snd_cx88_pcm_open()
445 runtime->hw.period_bytes_max = bpl; in snd_cx88_pcm_open()
473 if (substream->runtime->dma_area) { in snd_cx88_hw_params()
475 substream->runtime->dma_area = NULL; in snd_cx88_hw_params()
510 substream->runtime->dma_area = chip->buf->vaddr; in snd_cx88_hw_params()
511 substream->runtime->dma_bytes = chip->dma_size; in snd_cx88_hw_params()
512 substream->runtime->dma_addr = 0; in snd_cx88_hw_params()
[all …]
/linux-4.4.14/sound/isa/
Des18xx.c418 struct snd_pcm_runtime *runtime = substream->runtime; in snd_es18xx_rate_set() local
420 if (runtime->rate_num == new_clocks[0].num) in snd_es18xx_rate_set()
421 bits = 128 - runtime->rate_den; in snd_es18xx_rate_set()
423 bits = 256 - runtime->rate_den; in snd_es18xx_rate_set()
425 if (runtime->rate_num == old_clocks[0].num) in snd_es18xx_rate_set()
426 bits = 256 - runtime->rate_den; in snd_es18xx_rate_set()
428 bits = 128 - runtime->rate_den; in snd_es18xx_rate_set()
432 div0 = 256 - 7160000*20/(8*82*runtime->rate); in snd_es18xx_rate_set()
484 struct snd_pcm_runtime *runtime = substream->runtime; in snd_es18xx_playback1_prepare() local
497 ((runtime->channels == 1) ? 0x00 : 0x02) | in snd_es18xx_playback1_prepare()
[all …]
/linux-4.4.14/sound/soc/mediatek/
Dmtk-afe-pcm.c179 return bytes_to_frames(substream->runtime, memif->hw_ptr); in mtk_afe_pcm_pointer()
386 struct snd_pcm_runtime * const runtime = substream->runtime; in mtk_afe_i2s_prepare() local
391 afe->clocks[MTK_CLK_I2S1_M], runtime->rate * 256, in mtk_afe_i2s_prepare()
394 ret = mtk_afe_set_i2s(afe, substream->runtime->rate); in mtk_afe_i2s_prepare()
437 struct snd_pcm_runtime * const runtime = substream->runtime; in mtk_afe_hdmi_prepare() local
442 afe->clocks[MTK_CLK_I2S3_M], runtime->rate * 128, in mtk_afe_hdmi_prepare()
444 runtime->rate * runtime->channels * 32); in mtk_afe_hdmi_prepare()
455 switch (runtime->channels) { in mtk_afe_hdmi_prepare()
490 0x000000f0, runtime->channels << 4); in mtk_afe_hdmi_prepare()
545 struct snd_pcm_runtime *runtime = substream->runtime; in mtk_afe_dais_startup() local
[all …]
Dmt8173-rt5650-rt5676.c88 static int mt8173_rt5650_rt5676_init(struct snd_soc_pcm_runtime *runtime) in mt8173_rt5650_rt5676_init() argument
90 struct snd_soc_card *card = runtime->card; in mt8173_rt5650_rt5676_init()
91 struct snd_soc_codec *codec = runtime->codec_dais[0]->codec; in mt8173_rt5650_rt5676_init()
92 struct snd_soc_codec *codec_sub = runtime->codec_dais[1]->codec; in mt8173_rt5650_rt5676_init()
Dmt8173-max98090.c74 static int mt8173_max98090_init(struct snd_soc_pcm_runtime *runtime) in mt8173_max98090_init() argument
77 struct snd_soc_card *card = runtime->card; in mt8173_max98090_init()
78 struct snd_soc_codec *codec = runtime->codec; in mt8173_max98090_init()
/linux-4.4.14/sound/pci/riptide/
Driptide.c426 #define get_pcmhwdev(substream) (struct pcmhw *)(substream->runtime->private_data)
1092 struct snd_pcm_runtime *runtime; in riptide_handleirq() local
1107 (runtime = substream[i]->runtime) && in riptide_handleirq()
1108 (data = runtime->private_data) && data->state != ST_STOP) { in riptide_handleirq()
1132 frames_to_bytes(runtime, in riptide_handleirq()
1133 runtime->period_size); in riptide_handleirq()
1137 bytes_to_frames(runtime, pos), in riptide_handleirq()
1138 runtime->period_size); in riptide_handleirq()
1361 struct snd_pcm_runtime *runtime = substream->runtime; in snd_riptide_pointer() local
1368 if (data->size && runtime->period_size) { in snd_riptide_pointer()
[all …]
/linux-4.4.14/sound/sparc/
Damd7930.c584 struct snd_pcm_runtime *runtime = substream->runtime; in snd_amd7930_playback_prepare() local
594 amd->p_orig = amd->p_cur = runtime->dma_area; in snd_amd7930_playback_prepare()
599 if (runtime->format == SNDRV_PCM_FORMAT_A_LAW) in snd_amd7930_playback_prepare()
616 struct snd_pcm_runtime *runtime = substream->runtime; in snd_amd7930_capture_prepare() local
626 amd->c_orig = amd->c_cur = runtime->dma_area; in snd_amd7930_capture_prepare()
631 if (runtime->format == SNDRV_PCM_FORMAT_A_LAW) in snd_amd7930_capture_prepare()
653 return bytes_to_frames(substream->runtime, ptr); in snd_amd7930_playback_pointer()
665 return bytes_to_frames(substream->runtime, ptr); in snd_amd7930_capture_pointer()
692 struct snd_pcm_runtime *runtime = substream->runtime; in snd_amd7930_playback_open() local
695 runtime->hw = snd_amd7930_pcm_hw; in snd_amd7930_playback_open()
[all …]
Dcs4231.c213 static int snd_cs4231_xrate(struct snd_pcm_runtime *runtime) in snd_cs4231_xrate() argument
215 return snd_pcm_hw_constraint_list(runtime, 0, in snd_cs4231_xrate()
426 struct snd_pcm_runtime *runtime = substream->runtime; in snd_cs4231_advance_dma() local
436 runtime->dma_addr + offset, period_size)) in snd_cs4231_advance_dma()
438 (*periods_sent) = ((*periods_sent) + 1) % runtime->periods; in snd_cs4231_advance_dma()
908 struct snd_pcm_runtime *runtime = substream->runtime; in snd_cs4231_playback_prepare() local
917 if (WARN_ON(runtime->period_size > 0xffff + 1)) { in snd_cs4231_playback_prepare()
976 chip->capture_substream->runtime->overrange++; in snd_cs4231_overrange()
1008 ptr -= substream->runtime->dma_addr; in snd_cs4231_playback_pointer()
1010 return bytes_to_frames(substream->runtime, ptr); in snd_cs4231_playback_pointer()
[all …]
/linux-4.4.14/sound/soc/ux500/
Dux500_msp_dai.c309 struct snd_pcm_runtime *runtime = substream->runtime; in setup_msp_config() local
323 msp_config->frame_freq = runtime->rate; in setup_msp_config()
331 runtime->rate, runtime->channels); in setup_msp_config()
370 ret = setup_pcm_framing(dai, runtime->rate, prot_desc); in setup_msp_config()
466 struct snd_pcm_runtime *runtime = substream->runtime; in ux500_msp_dai_prepare() local
470 dai->id, snd_pcm_stream_str(substream), runtime->rate); in ux500_msp_dai_prepare()
503 struct snd_pcm_runtime *runtime = substream->runtime; in ux500_msp_dai_hw_params() local
511 snd_pcm_hw_constraint_minmax(runtime, in ux500_msp_dai_hw_params()
525 snd_pcm_hw_constraint_single(runtime, in ux500_msp_dai_hw_params()
/linux-4.4.14/sound/soc/codecs/
Dstac9766.c191 struct snd_pcm_runtime *runtime = substream->runtime; in ac97_analog_prepare() local
206 return stac9766_ac97_write(codec, reg, runtime->rate); in ac97_analog_prepare()
213 struct snd_pcm_runtime *runtime = substream->runtime; in ac97_digital_prepare() local
225 return stac9766_ac97_write(codec, reg, runtime->rate); in ac97_digital_prepare()
Dtlv320dac33.c870 switch (substream->runtime->rate) { in dac33_prepare_chip()
873 oscset = CALC_OSCSET(substream->runtime->rate, dac33->refclk); in dac33_prepare_chip()
874 ratioset = CALC_RATIOSET(substream->runtime->rate, in dac33_prepare_chip()
879 substream->runtime->rate); in dac33_prepare_chip()
891 switch (substream->runtime->format) { in dac33_prepare_chip()
901 substream->runtime->format); in dac33_prepare_chip()
1033 if (substream->runtime->format == SNDRV_PCM_FORMAT_S16_LE) in dac33_prepare_chip()
1065 unsigned int period_size = substream->runtime->period_size; in dac33_calculate_times()
1066 unsigned int rate = substream->runtime->rate; in dac33_calculate_times()
1108 SAMPLES_TO_US(substream->runtime->rate, in dac33_calculate_times()
[all …]
/linux-4.4.14/sound/usb/caiaq/
Daudio.c160 substream->runtime->hw = cdev->pcm_info; in snd_usb_caiaq_substream_open()
161 snd_pcm_limit_hw_rates(substream->runtime); in snd_usb_caiaq_substream_open()
210 struct snd_pcm_runtime *runtime = substream->runtime; in snd_usb_caiaq_pcm_prepare() local
257 if (runtime->rate == rates[i]) in snd_usb_caiaq_pcm_prepare()
260 snd_pcm_limit_hw_rates(runtime); in snd_usb_caiaq_pcm_prepare()
266 bpp = ((runtime->rate / 8000) + CLOCK_DRIFT_TOLERANCE) in snd_usb_caiaq_pcm_prepare()
272 ret = snd_usb_caiaq_set_audio_params(cdev, runtime->rate, in snd_usb_caiaq_pcm_prepare()
273 runtime->sample_bits, bpp); in snd_usb_caiaq_pcm_prepare()
329 ptr = bytes_to_frames(sub->runtime, in snd_usb_caiaq_pcm_pointer()
332 ptr = bytes_to_frames(sub->runtime, in snd_usb_caiaq_pcm_pointer()
[all …]
/linux-4.4.14/drivers/usb/gadget/function/
Df_uac2.c318 return bytes_to_frames(substream->runtime, prm->hw_ptr); in uac2_pcm_pointer()
336 prm->dma_bytes = substream->runtime->dma_bytes; in uac2_pcm_hw_params()
337 prm->dma_area = substream->runtime->dma_area; in uac2_pcm_hw_params()
364 struct snd_pcm_runtime *runtime = substream->runtime; in uac2_pcm_open() local
381 runtime->hw = uac2_pcm_hardware; in uac2_pcm_open()
385 runtime->hw.rate_min = p_srate; in uac2_pcm_open()
388 runtime->hw.formats = SNDRV_PCM_FMTBIT_S24_3LE; in uac2_pcm_open()
391 runtime->hw.formats = SNDRV_PCM_FMTBIT_S32_LE; in uac2_pcm_open()
394 runtime->hw.formats = SNDRV_PCM_FMTBIT_S16_LE; in uac2_pcm_open()
397 runtime->hw.channels_min = num_channels(p_chmask); in uac2_pcm_open()
[all …]
Du_uac1.c159 struct snd_pcm_runtime *runtime = substream->runtime; in u_audio_playback() local
165 if (runtime->status->state == SNDRV_PCM_STATE_XRUN || in u_audio_playback()
166 runtime->status->state == SNDRV_PCM_STATE_SUSPENDED) { in u_audio_playback()
176 frames = bytes_to_frames(runtime, count); in u_audio_playback()
/linux-4.4.14/arch/x86/include/asm/
Defi.h43 efi.systab->runtime->f)(args); \
53 efi.systab->runtime->f)(args); \
74 __s = efi_call((void *)efi.systab->runtime->f, __VA_ARGS__); \
126 u64 runtime; member
/linux-4.4.14/drivers/firmware/efi/
DKconfig45 bool "Export efi runtime maps to sysfs"
49 Export efi runtime memory maps to /sys/firmware/efi/runtime-map.
53 See also Documentation/ABI/testing/sysfs-firmware-efi-runtime-map.
81 the EFI runtime support gets system table address, memory
DMakefile17 obj-$(CONFIG_EFI_RUNTIME_MAP) += runtime-map.o
18 obj-$(CONFIG_EFI_RUNTIME_WRAPPERS) += runtime-wrappers.o
/linux-4.4.14/tools/perf/bench/
Dfutex-wake.c156 struct timeval start, end, runtime; in bench_futex_wake() local
175 timersub(&end, &start, &runtime); in bench_futex_wake()
178 update_stats(&waketime_stats, runtime.tv_usec); in bench_futex_wake()
182 j + 1, nwoken, nthreads, runtime.tv_usec/1e3); in bench_futex_wake()
Dfutex-requeue.c151 struct timeval start, end, runtime; in bench_futex_requeue() local
177 timersub(&end, &start, &runtime); in bench_futex_requeue()
180 update_stats(&requeuetime_stats, runtime.tv_usec); in bench_futex_requeue()
184 j + 1, nrequeued, nthreads, runtime.tv_usec/1e3); in bench_futex_requeue()
Dfutex-lock-pi.c32 struct timeval start, end, runtime; variable
59 (int) runtime.tv_sec); in print_summary()
69 timersub(&end, &start, &runtime); in toggle_done()
201 unsigned long t = worker[i].ops/runtime.tv_sec; in bench_futex_lock_pi()
Dfutex-hash.c31 struct timeval start, end, runtime; variable
96 timersub(&end, &start, &runtime); in toggle_done()
106 (int) runtime.tv_sec); in print_summary()
194 unsigned long t = worker[i].ops/runtime.tv_sec; in bench_futex_hash()
Dfutex-wake-parallel.c26 struct timeval runtime; member
69 timersub(&end, &start, &waker->runtime); in waking_workerfn()
146 update_stats(&__waketime_stats, waking_worker[i].runtime.tv_usec); in print_run()
182 update_stats(&waketime_stats, waking_worker[i].runtime.tv_usec); in do_run_stats()
/linux-4.4.14/sound/soc/intel/baytrail/
Dsst-baytrail-pcm.c217 struct snd_pcm_runtime *runtime = substream->runtime; in byt_notify_pointer() local
227 pos = frames_to_bytes(runtime, in byt_notify_pointer()
228 (runtime->control->appl_ptr % in byt_notify_pointer()
229 runtime->buffer_size)); in byt_notify_pointer()
240 struct snd_pcm_runtime *runtime = substream->runtime; in sst_byt_pcm_pointer() local
247 return bytes_to_frames(runtime, pcm_data->hw_ptr); in sst_byt_pcm_pointer()
/linux-4.4.14/Documentation/scheduler/
Dsched-deadline.txt46 SCHED_DEADLINE uses three parameters, named "runtime", "period", and
48 "runtime" microseconds of execution time every "period" microseconds, and
49 these "runtime" microseconds are available within "deadline" microseconds
55 task actually receives "runtime" time units within "deadline" if a proper
60 that each task runs for at most its runtime every period, avoiding any
70 - Each SCHED_DEADLINE task is characterized by the "runtime",
74 a "remaining runtime". These two parameters are initially set to 0;
79 remaining runtime runtime
85 remaining runtime are re-initialized as
88 remaining runtime = runtime
[all …]
Dsched-bwc.txt17 A group's unused runtime is globally tracked, being refreshed with quota units
90 In case b) above, even though the child may have runtime remaining it will not
91 be allowed to until the parent's runtime is refreshed.
95 1. Limit a group to 1 CPU worth of runtime.
98 1 CPU worth of runtime every 250ms.
103 2. Limit a group to 2 CPUs worth of runtime on a multi-CPU machine.
106 runtime every 500ms.
/linux-4.4.14/sound/isa/wss/
Dwss_lib.c83 static int snd_wss_xrate(struct snd_pcm_runtime *runtime) in snd_wss_xrate() argument
85 return snd_pcm_hw_constraint_list(runtime, 0, SNDRV_PCM_HW_PARAM_RATE, in snd_wss_xrate()
1018 struct snd_pcm_runtime *runtime = substream->runtime; in snd_wss_playback_prepare() local
1026 snd_dma_program(chip->dma1, runtime->dma_addr, size, DMA_MODE_WRITE | DMA_AUTOINIT); in snd_wss_playback_prepare()
1061 struct snd_pcm_runtime *runtime = substream->runtime; in snd_wss_capture_prepare() local
1069 snd_dma_program(chip->dma2, runtime->dma_addr, size, DMA_MODE_READ | DMA_AUTOINIT); in snd_wss_capture_prepare()
1099 chip->capture_substream->runtime->overrange++; in snd_wss_overrange()
1162 return bytes_to_frames(substream->runtime, ptr); in snd_wss_playback_pointer()
1173 return bytes_to_frames(substream->runtime, ptr); in snd_wss_capture_pointer()
1503 struct snd_pcm_runtime *runtime = substream->runtime; in snd_wss_playback_open() local
[all …]
/linux-4.4.14/arch/arm64/include/asm/
Defi.h20 __f = efi.systab->runtime->f; \
33 __f = efi.systab->runtime->f; \
/linux-4.4.14/include/trace/events/
Dsched.h382 TP_PROTO(struct task_struct *tsk, u64 runtime, u64 vruntime),
384 TP_ARGS(tsk, __perf_count(runtime), vruntime),
389 __field( u64, runtime )
396 __entry->runtime = runtime;
402 (unsigned long long)__entry->runtime,
407 TP_PROTO(struct task_struct *tsk, u64 runtime, u64 vruntime),
408 TP_ARGS(tsk, runtime, vruntime));
/linux-4.4.14/sound/soc/rockchip/
Drockchip_rt5645.c110 static int rk_init(struct snd_soc_pcm_runtime *runtime) in rk_init() argument
112 struct snd_soc_card *card = runtime->card; in rk_init()
126 return rt5645_set_jack_detect(runtime->codec, in rk_init()
/linux-4.4.14/sound/pci/rme9652/
Drme9652.c1941 struct snd_pcm_runtime *runtime = substream->runtime; in snd_rme9652_reset() local
1949 runtime->status->hw_ptr = rme9652_hw_pointer(rme9652); in snd_rme9652_reset()
1951 runtime->status->hw_ptr = 0; in snd_rme9652_reset()
1954 struct snd_pcm_runtime *oruntime = other->runtime; in snd_rme9652_reset()
1957 oruntime->status->hw_ptr = runtime->status->hw_ptr; in snd_rme9652_reset()
2264 struct snd_pcm_runtime *runtime = substream->runtime; in snd_rme9652_playback_open() local
2270 runtime->hw = snd_rme9652_playback_subinfo; in snd_rme9652_playback_open()
2271 runtime->dma_area = rme9652->playback_buffer; in snd_rme9652_playback_open()
2272 runtime->dma_bytes = RME9652_DMA_AREA_BYTES; in snd_rme9652_playback_open()
2284 snd_pcm_hw_constraint_msbits(runtime, 0, 32, 24); in snd_rme9652_playback_open()
[all …]
/linux-4.4.14/kernel/sched/
Ddeadline.c53 void init_dl_bandwidth(struct dl_bandwidth *dl_b, u64 period, u64 runtime) in init_dl_bandwidth() argument
57 dl_b->dl_runtime = runtime; in init_dl_bandwidth()
357 dl_se->runtime = pi_se->dl_runtime; in setup_new_dl_entity()
393 dl_se->runtime = pi_se->dl_runtime; in replenish_dl_entity()
402 while (dl_se->runtime <= 0) { in replenish_dl_entity()
404 dl_se->runtime += pi_se->dl_runtime; in replenish_dl_entity()
419 dl_se->runtime = pi_se->dl_runtime; in replenish_dl_entity()
475 left = (pi_se->dl_period >> DL_SCALE) * (dl_se->runtime >> DL_SCALE); in dl_entity_overflow()
509 dl_se->runtime = pi_se->dl_runtime; in update_dl_entity()
705 return (dl_se->runtime <= 0); in dl_runtime_exceeded()
[all …]

123