Home
last modified time | relevance | path

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

12345678910>>...15

/sound/core/
Drawmidi.c98 static inline bool __snd_rawmidi_ready(struct snd_rawmidi_runtime *runtime) in __snd_rawmidi_ready() argument
100 return runtime->avail >= runtime->avail_min; in __snd_rawmidi_ready()
105 struct snd_rawmidi_runtime *runtime = substream->runtime; in snd_rawmidi_ready() local
109 spin_lock_irqsave(&runtime->lock, flags); in snd_rawmidi_ready()
110 ready = __snd_rawmidi_ready(runtime); in snd_rawmidi_ready()
111 spin_unlock_irqrestore(&runtime->lock, flags); in snd_rawmidi_ready()
118 struct snd_rawmidi_runtime *runtime = substream->runtime; in snd_rawmidi_ready_append() local
120 return runtime->avail >= runtime->avail_min && in snd_rawmidi_ready_append()
121 (!substream->append || runtime->avail >= count); in snd_rawmidi_ready_append()
126 struct snd_rawmidi_runtime *runtime = in snd_rawmidi_input_event_work() local
[all …]
Dpcm_native.c261 if (!(substream->runtime->hw.info & SNDRV_PCM_INFO_MMAP)) in hw_support_mmap()
288 &substream->runtime->hw_constraints; in constrain_mask_params()
324 &substream->runtime->hw_constraints; in constrain_interval_params()
360 &substream->runtime->hw_constraints; in constrain_params_by_rules()
511 params->info = substream->runtime->hw.info; in fixup_unreferenced_params()
579 static int period_to_usecs(struct snd_pcm_runtime *runtime) in period_to_usecs() argument
583 if (! runtime->rate) in period_to_usecs()
587 usecs = (750000 / runtime->rate) * runtime->period_size; in period_to_usecs()
588 usecs += ((750000 % runtime->rate) * runtime->period_size) / in period_to_usecs()
589 runtime->rate; in period_to_usecs()
[all …]
Dpcm_lib.c47 struct snd_pcm_runtime *runtime = substream->runtime; in snd_pcm_playback_silence() local
51 if (runtime->silence_size < runtime->boundary) { in snd_pcm_playback_silence()
53 snd_pcm_uframes_t appl_ptr = READ_ONCE(runtime->control->appl_ptr); in snd_pcm_playback_silence()
54 if (runtime->silence_start != appl_ptr) { in snd_pcm_playback_silence()
55 n = appl_ptr - runtime->silence_start; in snd_pcm_playback_silence()
57 n += runtime->boundary; in snd_pcm_playback_silence()
58 if ((snd_pcm_uframes_t)n < runtime->silence_filled) in snd_pcm_playback_silence()
59 runtime->silence_filled -= n; in snd_pcm_playback_silence()
61 runtime->silence_filled = 0; in snd_pcm_playback_silence()
62 runtime->silence_start = appl_ptr; in snd_pcm_playback_silence()
[all …]
Dcompress_offload.c79 struct snd_compr_runtime *runtime; in snd_compr_open() local
120 runtime = kzalloc(sizeof(*runtime), GFP_KERNEL); in snd_compr_open()
121 if (!runtime) { in snd_compr_open()
126 runtime->state = SNDRV_PCM_STATE_OPEN; in snd_compr_open()
127 init_waitqueue_head(&runtime->sleep); in snd_compr_open()
128 data->stream.runtime = runtime; in snd_compr_open()
134 kfree(runtime); in snd_compr_open()
144 struct snd_compr_runtime *runtime = data->stream.runtime; in snd_compr_free() local
148 switch (runtime->state) { in snd_compr_free()
159 if (!data->stream.runtime->dma_buffer_p) in snd_compr_free()
[all …]
Dpcm.c381 struct snd_pcm_runtime *runtime; in snd_pcm_substream_proc_hw_params_read() local
384 runtime = substream->runtime; in snd_pcm_substream_proc_hw_params_read()
385 if (!runtime) { in snd_pcm_substream_proc_hw_params_read()
389 if (runtime->status->state == SNDRV_PCM_STATE_OPEN) { in snd_pcm_substream_proc_hw_params_read()
393 snd_iprintf(buffer, "access: %s\n", snd_pcm_access_name(runtime->access)); in snd_pcm_substream_proc_hw_params_read()
394 snd_iprintf(buffer, "format: %s\n", snd_pcm_format_name(runtime->format)); in snd_pcm_substream_proc_hw_params_read()
395 snd_iprintf(buffer, "subformat: %s\n", snd_pcm_subformat_name(runtime->subformat)); in snd_pcm_substream_proc_hw_params_read()
396 snd_iprintf(buffer, "channels: %u\n", runtime->channels); in snd_pcm_substream_proc_hw_params_read()
397 snd_iprintf(buffer, "rate: %u (%u/%u)\n", runtime->rate, runtime->rate_num, runtime->rate_den); in snd_pcm_substream_proc_hw_params_read()
398 snd_iprintf(buffer, "period_size: %lu\n", runtime->period_size); in snd_pcm_substream_proc_hw_params_read()
[all …]
Dpcm_memory.c190 if (substream->runtime) { in snd_pcm_lib_preallocate_proc_write()
417 struct snd_pcm_runtime *runtime; in snd_pcm_lib_malloc_pages() local
425 runtime = substream->runtime; in snd_pcm_lib_malloc_pages()
428 if (runtime->dma_buffer_p) { in snd_pcm_lib_malloc_pages()
432 if (runtime->dma_buffer_p->bytes >= size) { in snd_pcm_lib_malloc_pages()
433 runtime->dma_bytes = size; in snd_pcm_lib_malloc_pages()
462 runtime->dma_bytes = size; in snd_pcm_lib_malloc_pages()
477 struct snd_pcm_runtime *runtime; in snd_pcm_lib_free_pages() local
481 runtime = substream->runtime; in snd_pcm_lib_free_pages()
482 if (runtime->dma_area == NULL) in snd_pcm_lib_free_pages()
[all …]
/sound/core/oss/
Dpcm_oss.c541 struct snd_pcm_runtime *runtime = substream->runtime; in snd_pcm_oss_plugin_clear() local
544 plugin = runtime->oss.plugin_first; in snd_pcm_oss_plugin_clear()
550 runtime->oss.plugin_first = runtime->oss.plugin_last = NULL; in snd_pcm_oss_plugin_clear()
556 struct snd_pcm_runtime *runtime = plugin->plug->runtime; in snd_pcm_plugin_insert() local
557 plugin->next = runtime->oss.plugin_first; in snd_pcm_plugin_insert()
559 if (runtime->oss.plugin_first) { in snd_pcm_plugin_insert()
560 runtime->oss.plugin_first->prev = plugin; in snd_pcm_plugin_insert()
561 runtime->oss.plugin_first = plugin; in snd_pcm_plugin_insert()
563 runtime->oss.plugin_last = in snd_pcm_plugin_insert()
564 runtime->oss.plugin_first = plugin; in snd_pcm_plugin_insert()
[all …]
/sound/soc/uniphier/
Daio-dma.c30 struct snd_pcm_runtime *runtime = sub->substream->runtime; in aiodma_pcm_irq() local
31 int bytes = runtime->period_size * in aiodma_pcm_irq()
32 runtime->channels * samples_to_bytes(runtime, 1); in aiodma_pcm_irq()
36 ret = aiodma_rb_set_threshold(sub, runtime->dma_bytes, in aiodma_pcm_irq()
41 aiodma_rb_sync(sub, runtime->dma_addr, runtime->dma_bytes, bytes); in aiodma_pcm_irq()
50 struct snd_compr_runtime *runtime = sub->cstream->runtime; in aiodma_compr_irq() local
51 int bytes = runtime->fragment_size; in aiodma_compr_irq()
99 struct snd_pcm_runtime *runtime = substream->runtime; in uniphier_aiodma_open() local
103 return snd_pcm_hw_constraint_step(runtime, 0, in uniphier_aiodma_open()
110 struct snd_pcm_runtime *runtime = substream->runtime; in uniphier_aiodma_prepare() local
[all …]
/sound/pci/ctxfi/
Dctpcm.c103 static void ct_atc_pcm_free_substream(struct snd_pcm_runtime *runtime) in ct_atc_pcm_free_substream() argument
105 struct ct_atc_pcm *apcm = runtime->private_data; in ct_atc_pcm_free_substream()
111 runtime->private_data = NULL; in ct_atc_pcm_free_substream()
118 struct snd_pcm_runtime *runtime = substream->runtime; in ct_pcm_playback_open() local
129 runtime->hw = ct_spdif_passthru_playback_hw; in ct_pcm_playback_open()
132 runtime->hw = ct_pcm_playback_hw; in ct_pcm_playback_open()
134 runtime->hw.channels_max = 8; in ct_pcm_playback_open()
137 err = snd_pcm_hw_constraint_integer(runtime, in ct_pcm_playback_open()
142 err = snd_pcm_hw_constraint_minmax(runtime, in ct_pcm_playback_open()
153 runtime->private_data = apcm; in ct_pcm_playback_open()
[all …]
/sound/pci/emu10k1/
Demupcm.c36 epcm->substream->runtime->hw->pointer(emu, epcm->substream), in snd_emu10k1_pcm_interrupt()
48 if (emu->pcm_capture_substream->runtime->mode == SNDRV_PCM_MODE_FRAME) in snd_emu10k1_pcm_ac97adc_interrupt()
60 if (emu->pcm_capture_mic_substream->runtime->mode == SNDRV_PCM_MODE_FRAME) in snd_emu10k1_pcm_ac97mic_interrupt()
72 if (emu->pcm_capture_efx_substream->runtime->mode == SNDRV_PCM_MODE_FRAME) in snd_emu10k1_pcm_efx_interrupt()
82 struct snd_pcm_runtime *runtime = substream->runtime; in snd_emu10k1_efx_playback_pointer() local
83 struct snd_emu10k1_pcm *epcm = runtime->private_data; in snd_emu10k1_efx_playback_pointer()
89 ptr += runtime->buffer_size; in snd_emu10k1_efx_playback_pointer()
91 ptr %= runtime->buffer_size; in snd_emu10k1_efx_playback_pointer()
277 struct snd_pcm_runtime *runtime = substream->runtime; in snd_emu10k1_pcm_init_voice() local
287 stereo = runtime->channels == 2; in snd_emu10k1_pcm_init_voice()
[all …]
Dp16v.c152 static void snd_p16v_pcm_free_substream(struct snd_pcm_runtime *runtime) in snd_p16v_pcm_free_substream() argument
154 struct snd_emu10k1_pcm *epcm = runtime->private_data; in snd_p16v_pcm_free_substream()
165 struct snd_pcm_runtime *runtime = substream->runtime; in snd_p16v_pcm_open_playback_channel() local
179 runtime->private_data = epcm; in snd_p16v_pcm_open_playback_channel()
180 runtime->private_free = snd_p16v_pcm_free_substream; in snd_p16v_pcm_open_playback_channel()
182 runtime->hw = snd_p16v_playback_hw; in snd_p16v_pcm_open_playback_channel()
197 err = snd_pcm_hw_constraint_integer(runtime, SNDRV_PCM_HW_PARAM_PERIODS); in snd_p16v_pcm_open_playback_channel()
201 runtime->sync.id32[0] = substream->pcm->card->number; in snd_p16v_pcm_open_playback_channel()
202 runtime->sync.id32[1] = 'P'; in snd_p16v_pcm_open_playback_channel()
203 runtime->sync.id32[2] = 16; in snd_p16v_pcm_open_playback_channel()
[all …]
/sound/isa/sb/
Dsb16_main.c37 #define runtime_format_bits(runtime) \ argument
38 ((unsigned int)pcm_format_to_bits((runtime)->format))
41 static void snd_sb16_csp_playback_prepare(struct snd_sb *chip, struct snd_pcm_runtime *runtime) in snd_sb16_csp_playback_prepare() argument
49 (runtime_format_bits(runtime) == csp->acc_format)) { in snd_sb16_csp_playback_prepare()
57 if (runtime_format_bits(runtime) & (SNDRV_PCM_FMTBIT_S8 | SNDRV_PCM_FMTBIT_U8 | in snd_sb16_csp_playback_prepare()
68 if (csp->ops.csp_autoload(csp, runtime->format, SNDRV_SB_CSP_MODE_DSP_WRITE)) { in snd_sb16_csp_playback_prepare()
76 (runtime->channels > 1) ? in snd_sb16_csp_playback_prepare()
89 static void snd_sb16_csp_capture_prepare(struct snd_sb *chip, struct snd_pcm_runtime *runtime) in snd_sb16_csp_capture_prepare() argument
97 (runtime_format_bits(runtime) == csp->acc_format)) { in snd_sb16_csp_capture_prepare()
106 if (csp->ops.csp_autoload(csp, runtime->format, SNDRV_SB_CSP_MODE_DSP_READ)) { in snd_sb16_csp_capture_prepare()
[all …]
Dsb8_main.c94 struct snd_pcm_runtime *runtime = substream->runtime; in snd_sb8_playback_prepare() local
97 unsigned char stereo = runtime->channels > 1; in snd_sb8_playback_prepare()
100 rate = runtime->rate; in snd_sb8_playback_prepare()
103 if (runtime->format == SNDRV_PCM_FORMAT_S16_LE) { in snd_sb8_playback_prepare()
112 if (runtime->channels > 1) { in snd_sb8_playback_prepare()
158 runtime->dma_area[0] = 0x80; in snd_sb8_playback_prepare()
159 snd_dma_program(dma, runtime->dma_addr, 1, DMA_MODE_WRITE); in snd_sb8_playback_prepare()
167 snd_sbdsp_command(chip, 256 - runtime->rate_den / 2); in snd_sb8_playback_prepare()
176 snd_sbdsp_command(chip, 256 - runtime->rate_den); in snd_sb8_playback_prepare()
187 snd_dma_program(dma, runtime->dma_addr, in snd_sb8_playback_prepare()
[all …]
/sound/isa/gus/
Dgus_pcm.c65 struct snd_pcm_runtime *runtime = substream->runtime; in snd_gf1_pcm_block_change() local
66 struct gus_pcm_private *pcmp = runtime->private_data; in snd_gf1_pcm_block_change()
76 if (snd_pcm_format_unsigned(runtime->format)) in snd_gf1_pcm_block_change()
78 if (snd_pcm_format_width(runtime->format) == 16) in snd_gf1_pcm_block_change()
81 block.buffer = runtime->dma_area + offset; in snd_gf1_pcm_block_change()
82 block.buf_addr = runtime->dma_addr + offset; in snd_gf1_pcm_block_change()
93 struct snd_pcm_runtime *runtime = substream->runtime; in snd_gf1_pcm_trigger_up() local
94 struct gus_pcm_private *pcmp = runtime->private_data; in snd_gf1_pcm_trigger_up()
112 rate = snd_gf1_translate_freq(gus, runtime->rate << 4); in snd_gf1_pcm_trigger_up()
114 voice_ctrl = snd_pcm_format_width(runtime->format) == 16 ? 0x24 : 0x20; in snd_gf1_pcm_trigger_up()
[all …]
/sound/soc/bcm/
Dbcm63xx-pcm-whistler.c147 struct snd_pcm_runtime *runtime = substream->runtime; in bcm63xx_pcm_prepare() local
152 dma_desc->dma_addr = runtime->dma_addr; in bcm63xx_pcm_prepare()
153 dma_desc->dma_area = runtime->dma_area; in bcm63xx_pcm_prepare()
177 struct bcm63xx_runtime_data *prtd = substream->runtime->private_data; in bcm63xx_pcm_pointer()
180 prtd->dma_addr_next = substream->runtime->dma_addr; in bcm63xx_pcm_pointer()
182 x = bytes_to_frames(substream->runtime, in bcm63xx_pcm_pointer()
183 prtd->dma_addr_next - substream->runtime->dma_addr); in bcm63xx_pcm_pointer()
185 return x == substream->runtime->buffer_size ? 0 : x; in bcm63xx_pcm_pointer()
192 struct snd_pcm_runtime *runtime = substream->runtime; in bcm63xx_pcm_open() local
195 runtime->hw = bcm63xx_pcm_hardware; in bcm63xx_pcm_open()
[all …]
/sound/soc/dwc/
Ddwc-pcm.c26 struct snd_pcm_runtime *runtime, unsigned int tx_ptr, \
29 const u##sample_bits (*p)[2] = (void *)runtime->dma_area; \
30 unsigned int period_pos = tx_ptr % runtime->period_size; \
37 if (++tx_ptr >= runtime->buffer_size) \
40 *period_elapsed = period_pos >= runtime->period_size; \
46 struct snd_pcm_runtime *runtime, unsigned int rx_ptr, \
49 u##sample_bits (*p)[2] = (void *)runtime->dma_area; \
50 unsigned int period_pos = rx_ptr % runtime->period_size; \
57 if (++rx_ptr >= runtime->buffer_size) \
60 *period_elapsed = period_pos >= runtime->period_size; \
[all …]
/sound/soc/amd/
Dacp-da7219-max98357a.c229 struct snd_pcm_runtime *runtime = substream->runtime; in cz_da7219_play_startup() local
238 runtime->hw.channels_max = DUAL_CHANNEL; in cz_da7219_play_startup()
239 snd_pcm_hw_constraint_list(runtime, 0, SNDRV_PCM_HW_PARAM_CHANNELS, in cz_da7219_play_startup()
241 snd_pcm_hw_constraint_list(runtime, 0, SNDRV_PCM_HW_PARAM_RATE, in cz_da7219_play_startup()
250 struct snd_pcm_runtime *runtime = substream->runtime; in cz_da7219_cap_startup() local
259 runtime->hw.channels_max = DUAL_CHANNEL; in cz_da7219_cap_startup()
260 snd_pcm_hw_constraint_list(runtime, 0, SNDRV_PCM_HW_PARAM_CHANNELS, in cz_da7219_cap_startup()
262 snd_pcm_hw_constraint_list(runtime, 0, SNDRV_PCM_HW_PARAM_RATE, in cz_da7219_cap_startup()
272 struct snd_pcm_runtime *runtime = substream->runtime; in cz_max_startup() local
281 runtime->hw.channels_max = DUAL_CHANNEL; in cz_max_startup()
[all …]
/sound/drivers/vx/
Dvx_pcm.c45 static void vx_pcm_read_per_bytes(struct vx_core *chip, struct snd_pcm_runtime *runtime, in vx_pcm_read_per_bytes() argument
49 unsigned char *buf = (unsigned char *)(runtime->dma_area + offset); in vx_pcm_read_per_bytes()
53 buf = (unsigned char *)runtime->dma_area; in vx_pcm_read_per_bytes()
58 buf = (unsigned char *)runtime->dma_area; in vx_pcm_read_per_bytes()
151 struct snd_pcm_runtime *runtime) in vx_set_format() argument
155 if (runtime->channels == 1) in vx_set_format()
157 if (snd_pcm_format_little_endian(runtime->format)) in vx_set_format()
159 if (runtime->rate < 32000 && runtime->rate > 11025) in vx_set_format()
161 else if (runtime->rate <= 11025) in vx_set_format()
164 switch (snd_pcm_format_physical_width(runtime->format)) { in vx_set_format()
[all …]
/sound/atmel/
Dac97c.c89 struct snd_pcm_runtime *runtime = substream->runtime; in atmel_ac97c_playback_open() local
93 runtime->hw = atmel_ac97c_hw; in atmel_ac97c_playback_open()
95 runtime->hw.rate_min = chip->cur_rate; in atmel_ac97c_playback_open()
96 runtime->hw.rate_max = chip->cur_rate; in atmel_ac97c_playback_open()
99 runtime->hw.formats = pcm_format_to_bits(chip->cur_format); in atmel_ac97c_playback_open()
108 struct snd_pcm_runtime *runtime = substream->runtime; in atmel_ac97c_capture_open() local
112 runtime->hw = atmel_ac97c_hw; in atmel_ac97c_capture_open()
114 runtime->hw.rate_min = chip->cur_rate; in atmel_ac97c_capture_open()
115 runtime->hw.rate_max = chip->cur_rate; in atmel_ac97c_capture_open()
118 runtime->hw.formats = pcm_format_to_bits(chip->cur_format); in atmel_ac97c_capture_open()
[all …]
/sound/firewire/fireface/
Damdtp-ff.c36 struct snd_pcm_runtime *runtime = pcm->runtime; in write_pcm_s32() local
43 pcm_buffer_pointer %= runtime->buffer_size; in write_pcm_s32()
45 src = (void *)runtime->dma_area + in write_pcm_s32()
46 frames_to_bytes(runtime, pcm_buffer_pointer); in write_pcm_s32()
47 remaining_frames = runtime->buffer_size - pcm_buffer_pointer; in write_pcm_s32()
56 src = (void *)runtime->dma_area; in write_pcm_s32()
66 struct snd_pcm_runtime *runtime = pcm->runtime; in read_pcm_s32() local
73 pcm_buffer_pointer %= runtime->buffer_size; in read_pcm_s32()
75 dst = (void *)runtime->dma_area + in read_pcm_s32()
76 frames_to_bytes(runtime, pcm_buffer_pointer); in read_pcm_s32()
[all …]
/sound/usb/
Dpcm.c35 struct snd_pcm_runtime *runtime) in snd_usb_pcm_delay() argument
43 queued = bytes_to_frames(runtime, subs->inflight_bytes); in snd_usb_pcm_delay()
60 est_delay = frame_diff * runtime->rate / 1000; in snd_usb_pcm_delay()
76 struct snd_pcm_runtime *runtime = substream->runtime; in snd_usb_pcm_pointer() local
77 struct snd_usb_substream *subs = runtime->private_data; in snd_usb_pcm_pointer()
84 runtime->delay = snd_usb_pcm_delay(subs, runtime); in snd_usb_pcm_pointer()
86 return bytes_to_frames(runtime, hwptr_done); in snd_usb_pcm_pointer()
285 struct snd_usb_substream *subs = substream->runtime->private_data; in snd_usb_pcm_sync_stop()
486 struct snd_usb_substream *subs = substream->runtime->private_data; in snd_usb_hw_params()
591 struct snd_usb_substream *subs = substream->runtime->private_data; in snd_usb_hw_free()
[all …]
/sound/soc/samsung/
Didma.c66 struct snd_pcm_runtime *runtime = substream->runtime; in idma_enqueue() local
67 struct idma_ctrl *prtd = substream->runtime->private_data; in idma_enqueue()
88 val |= (((runtime->dma_bytes >> 2) & in idma_enqueue()
102 struct idma_ctrl *prtd = substream->runtime->private_data; in idma_setcallbk()
134 struct idma_ctrl *prtd = substream->runtime->private_data; in idma_done()
144 struct snd_pcm_runtime *runtime = substream->runtime; in idma_hw_params() local
145 struct idma_ctrl *prtd = substream->runtime->private_data; in idma_hw_params()
155 runtime->dma_bytes = params_buffer_bytes(params); in idma_hw_params()
157 prtd->start = prtd->pos = runtime->dma_addr; in idma_hw_params()
160 prtd->end = runtime->dma_addr + runtime->dma_bytes; in idma_hw_params()
[all …]
/sound/firewire/tascam/
Dtascam-pcm.c13 struct snd_pcm_runtime *runtime = substream->runtime; in pcm_init_hw_params() local
14 struct snd_pcm_hardware *hw = &runtime->hw; in pcm_init_hw_params()
19 runtime->hw.formats = SNDRV_PCM_FMTBIT_S32; in pcm_init_hw_params()
23 runtime->hw.formats = SNDRV_PCM_FMTBIT_S32; in pcm_init_hw_params()
32 runtime->hw.channels_min = runtime->hw.channels_max = pcm_channels; in pcm_init_hw_params()
38 snd_pcm_limit_hw_rates(runtime); in pcm_init_hw_params()
40 return amdtp_tscm_add_pcm_hw_constraints(stream, runtime); in pcm_init_hw_params()
77 substream->runtime->hw.rate_min = rate; in pcm_open()
78 substream->runtime->hw.rate_max = rate; in pcm_open()
80 err = snd_pcm_hw_constraint_minmax(substream->runtime, in pcm_open()
[all …]
/sound/soc/sprd/
Dsprd-pcm-dma.c52 struct snd_pcm_runtime *runtime = substream->runtime; in sprd_pcm_open() local
60 ret = snd_pcm_hw_constraint_step(runtime, 0, in sprd_pcm_open()
66 ret = snd_pcm_hw_constraint_step(runtime, 0, in sprd_pcm_open()
72 ret = snd_pcm_hw_constraint_integer(runtime, in sprd_pcm_open()
81 size = runtime->hw.periods_max * SPRD_PCM_DMA_LINKLIST_SIZE; in sprd_pcm_open()
95 runtime->private_data = dma_private; in sprd_pcm_open()
115 struct snd_pcm_runtime *runtime = substream->runtime; in sprd_pcm_close() local
116 struct sprd_pcm_dma_private *dma_private = runtime->private_data; in sprd_pcm_close()
118 int size = runtime->hw.periods_max * SPRD_PCM_DMA_LINKLIST_SIZE; in sprd_pcm_close()
142 struct snd_pcm_runtime *runtime = substream->runtime; in sprd_pcm_release_dma_channel() local
[all …]
/sound/soc/fsl/
Dimx-pcm-fiq.c76 struct snd_pcm_runtime *runtime = substream->runtime; in snd_imx_pcm_hw_params() local
77 struct imx_pcm_runtime_data *iprtd = runtime->private_data; in snd_imx_pcm_hw_params()
91 struct snd_pcm_runtime *runtime = substream->runtime; in snd_imx_pcm_prepare() local
92 struct imx_pcm_runtime_data *iprtd = runtime->private_data; in snd_imx_pcm_prepare()
111 struct snd_pcm_runtime *runtime = substream->runtime; in snd_imx_pcm_trigger() local
112 struct imx_pcm_runtime_data *iprtd = runtime->private_data; in snd_imx_pcm_trigger()
150 struct snd_pcm_runtime *runtime = substream->runtime; in snd_imx_pcm_pointer() local
151 struct imx_pcm_runtime_data *iprtd = runtime->private_data; in snd_imx_pcm_pointer()
153 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 …]

12345678910>>...15