Home
last modified time | relevance | path

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

12345678910>>...26

/linux/sound/core/
H A Drawmidi.c101 static inline bool __snd_rawmidi_ready(struct snd_rawmidi_runtime *runtime) in __snd_rawmidi_ready() argument
103 return runtime->avail >= runtime->avail_min; in __snd_rawmidi_ready()
109 return __snd_rawmidi_ready(substream->runtime); in snd_rawmidi_ready()
115 struct snd_rawmidi_runtime *runtime = substream->runtime; in snd_rawmidi_ready_append() local
117 return runtime->avail >= runtime->avail_min && in snd_rawmidi_ready_append()
118 (!substream->append || runtime->avail >= count); in snd_rawmidi_ready_append()
123 struct snd_rawmidi_runtime *runtime in snd_rawmidi_input_event_work() local
131 snd_rawmidi_buffer_ref(struct snd_rawmidi_runtime * runtime) snd_rawmidi_buffer_ref() argument
136 snd_rawmidi_buffer_unref(struct snd_rawmidi_runtime * runtime) snd_rawmidi_buffer_unref() argument
160 struct snd_rawmidi_runtime *runtime; snd_rawmidi_runtime_create() local
188 get_align(struct snd_rawmidi_runtime * runtime) get_align() argument
197 get_aligned_size(runtime,size) global() argument
201 struct snd_rawmidi_runtime *runtime = substream->runtime; snd_rawmidi_runtime_free() local
225 __reset_runtime_ptrs(struct snd_rawmidi_runtime * runtime,bool is_input) __reset_runtime_ptrs() argument
253 struct snd_rawmidi_runtime *runtime; snd_rawmidi_drain_output() local
714 struct snd_rawmidi_runtime *runtime = substream->runtime; resize_runtime_buffer() local
792 struct snd_rawmidi_runtime *runtime = substream->runtime; snd_rawmidi_output_status() local
804 struct snd_rawmidi_runtime *runtime = substream->runtime; snd_rawmidi_input_status() local
1079 struct snd_rawmidi_runtime *runtime = substream->runtime; receive_with_tstamp_framing() local
1148 struct snd_rawmidi_runtime *runtime; snd_rawmidi_receive() local
1223 struct snd_rawmidi_runtime *runtime = substream->runtime; snd_rawmidi_kernel_read1() local
1277 struct snd_rawmidi_runtime *runtime; snd_rawmidi_read() local
1333 struct snd_rawmidi_runtime *runtime; snd_rawmidi_transmit_empty() local
1358 struct snd_rawmidi_runtime *runtime = substream->runtime; __snd_rawmidi_transmit_peek() local
1433 struct snd_rawmidi_runtime *runtime = substream->runtime; __snd_rawmidi_transmit_ack() local
1504 struct snd_rawmidi_runtime *runtime; snd_rawmidi_proceed() local
1525 struct snd_rawmidi_runtime *runtime = substream->runtime; snd_rawmidi_kernel_write1() local
1593 struct snd_rawmidi_runtime *runtime; snd_rawmidi_write() local
1664 struct snd_rawmidi_runtime *runtime; snd_rawmidi_poll() local
1705 struct snd_rawmidi_runtime *runtime; snd_rawmidi_proc_info_read() local
[all...]
H A Dpcm_lib.c37 static inline void update_silence_vars(struct snd_pcm_runtime *runtime, in update_silence_vars() argument
47 delta += runtime->boundary; in update_silence_vars()
48 if ((snd_pcm_uframes_t)delta < runtime->silence_filled) in update_silence_vars()
49 runtime->silence_filled -= delta; in update_silence_vars()
51 runtime->silence_filled = 0; in update_silence_vars()
52 runtime->silence_start = new_ptr; in update_silence_vars()
66 struct snd_pcm_runtime *runtime = substream->runtime; in snd_pcm_playback_silence() local
70 if (runtime->silence_size < runtime->boundary) { in snd_pcm_playback_silence()
72 snd_pcm_uframes_t appl_ptr = READ_ONCE(runtime->control->appl_ptr); in snd_pcm_playback_silence()
73 update_silence_vars(runtime, runtime->silence_start, appl_ptr); in snd_pcm_playback_silence()
[all …]
/linux/sound/soc/uniphier/
H A Daio-dma.c30 struct snd_pcm_runtime *runtime = sub->substream->runtime; in aiodma_pcm_irq() local
31 int bytes = runtime->period_size * in aiodma_pcm_irq()
32 runtime->channels * samples_to_bytes(runtime, 1); in aiodma_pcm_irq()
36 ret = aiodma_rb_set_threshold(sub, runtime->dma_bytes, in aiodma_pcm_irq()
41 aiodma_rb_sync(sub, runtime->dma_addr, runtime->dma_bytes, bytes); in aiodma_pcm_irq()
50 struct snd_compr_runtime *runtime = sub->cstream->runtime; in aiodma_compr_irq() local
51 int bytes = runtime->fragment_size; in aiodma_compr_irq()
99 struct snd_pcm_runtime *runtime = substream->runtime; in uniphier_aiodma_open() local
103 return snd_pcm_hw_constraint_step(runtime, 0, in uniphier_aiodma_open()
110 struct snd_pcm_runtime *runtime = substream->runtime; in uniphier_aiodma_prepare() local
[all …]
/linux/sound/pci/ctxfi/
H A Dctpcm.c103 static void ct_atc_pcm_free_substream(struct snd_pcm_runtime *runtime) in ct_atc_pcm_free_substream() argument
105 struct ct_atc_pcm *apcm = runtime->private_data; in ct_atc_pcm_free_substream()
111 runtime->private_data = NULL; in ct_atc_pcm_free_substream()
118 struct snd_pcm_runtime *runtime = substream->runtime; in ct_pcm_playback_open() local
129 runtime->hw = ct_spdif_passthru_playback_hw; in ct_pcm_playback_open()
132 runtime->hw = ct_pcm_playback_hw; in ct_pcm_playback_open()
134 runtime->hw.channels_max = 8; in ct_pcm_playback_open()
137 err = snd_pcm_hw_constraint_integer(runtime, in ct_pcm_playback_open()
142 err = snd_pcm_hw_constraint_minmax(runtime, in ct_pcm_playback_open()
153 runtime->private_data = apcm; in ct_pcm_playback_open()
[all …]
/linux/sound/drivers/
H A Dpcmtest.c172 static void check_buf_block_i(struct pcmtst_buf_iter *v_iter, struct snd_pcm_runtime *runtime) in check_buf_block_i() argument
179 current_byte = runtime->dma_area[v_iter->buf_pos]; in check_buf_block_i()
182 ch_num = (v_iter->total_bytes / v_iter->sample_bytes) % runtime->channels; in check_buf_block_i()
184 runtime->channels, in check_buf_block_i()
190 inc_buf_pos(v_iter, 1, runtime->dma_bytes); in check_buf_block_i()
193 inc_buf_pos(v_iter, v_iter->b_rw - i, runtime->dma_bytes); in check_buf_block_i()
196 static void check_buf_block_ni(struct pcmtst_buf_iter *v_iter, struct snd_pcm_runtime *runtime) in check_buf_block_ni() argument
198 unsigned int channels = runtime->channels; in check_buf_block_ni()
205 current_byte = runtime->dma_area[buf_pos_n(v_iter, channels, ch_num)]; in check_buf_block_ni()
213 inc_buf_pos(v_iter, 1, runtime in check_buf_block_ni()
223 check_buf_block(struct pcmtst_buf_iter * v_iter,struct snd_pcm_runtime * runtime) check_buf_block() argument
239 fill_block_pattern_n(struct pcmtst_buf_iter * v_iter,struct snd_pcm_runtime * runtime) fill_block_pattern_n() argument
255 fill_block_pattern_i(struct pcmtst_buf_iter * v_iter,struct snd_pcm_runtime * runtime) fill_block_pattern_i() argument
275 fill_block_pattern(struct pcmtst_buf_iter * v_iter,struct snd_pcm_runtime * runtime) fill_block_pattern() argument
283 fill_block_rand_n(struct pcmtst_buf_iter * v_iter,struct snd_pcm_runtime * runtime) fill_block_rand_n() argument
306 fill_block_rand_i(struct pcmtst_buf_iter * v_iter,struct snd_pcm_runtime * runtime) fill_block_rand_i() argument
319 fill_block_random(struct pcmtst_buf_iter * v_iter,struct snd_pcm_runtime * runtime) fill_block_random() argument
327 fill_block(struct pcmtst_buf_iter * v_iter,struct snd_pcm_runtime * runtime) fill_block() argument
374 struct snd_pcm_runtime *runtime = substream->runtime; snd_pcmtst_pcm_open() local
472 struct snd_pcm_runtime *runtime = substream->runtime; snd_pcmtst_pcm_prepare() local
[all...]
/linux/drivers/staging/vc04_services/bcm2835-audio/
H A Dbcm2835-pcm.c47 static void snd_bcm2835_playback_free(struct snd_pcm_runtime *runtime) in snd_bcm2835_playback_free() argument
49 kfree(runtime->private_data); in snd_bcm2835_playback_free()
88 struct snd_pcm_runtime *runtime = substream->runtime; in snd_bcm2835_playback_open_generic() local
127 runtime->private_data = alsa_stream; in snd_bcm2835_playback_open_generic()
128 runtime->private_free = snd_bcm2835_playback_free; in snd_bcm2835_playback_open_generic()
130 runtime->hw = snd_bcm2835_playback_spdif_hw; in snd_bcm2835_playback_open_generic()
134 runtime->hw = snd_bcm2835_playback_hw; in snd_bcm2835_playback_open_generic()
137 snd_pcm_hw_constraint_step(runtime, in snd_bcm2835_playback_open_generic()
143 snd_pcm_hw_constraint_minmax(runtime, in snd_bcm2835_playback_open_generic()
170 struct snd_pcm_runtime *runtime; in snd_bcm2835_playback_close() local
[all …]
/linux/include/sound/
H A Dpcm.h426 void (*private_free)(struct snd_pcm_runtime *runtime);
478 struct snd_pcm_runtime *runtime; member
713 return (substream->runtime->state == SNDRV_PCM_STATE_RUNNING || in snd_pcm_running()
714 (substream->runtime->state == SNDRV_PCM_STATE_DRAINING && in snd_pcm_running()
725 static inline void __snd_pcm_set_state(struct snd_pcm_runtime *runtime, in __snd_pcm_set_state() argument
728 runtime->state = state; in __snd_pcm_set_state()
729 runtime->status->state = state; /* copy for mmap */ in __snd_pcm_set_state()
739 static inline ssize_t bytes_to_samples(struct snd_pcm_runtime *runtime, ssize_t size) in bytes_to_samples() argument
741 return size * 8 / runtime->sample_bits; in bytes_to_samples()
751 static inline snd_pcm_sframes_t bytes_to_frames(struct snd_pcm_runtime *runtime, ssize_t size) in bytes_to_frames() argument
[all …]
H A Dpcm-indirect.h38 struct snd_pcm_runtime *runtime = substream->runtime; in snd_pcm_indirect_playback_transfer() local
39 snd_pcm_uframes_t appl_ptr = runtime->control->appl_ptr; in snd_pcm_indirect_playback_transfer()
44 if (diff < -(snd_pcm_sframes_t) (runtime->boundary / 2)) in snd_pcm_indirect_playback_transfer()
45 diff += runtime->boundary; in snd_pcm_indirect_playback_transfer()
48 rec->sw_ready += (int)frames_to_bytes(runtime, diff); in snd_pcm_indirect_playback_transfer()
100 return bytes_to_frames(substream->runtime, rec->sw_io); in snd_pcm_indirect_playback_pointer()
112 struct snd_pcm_runtime *runtime = substream->runtime; in snd_pcm_indirect_capture_transfer() local
113 snd_pcm_uframes_t appl_ptr = runtime->control->appl_ptr; in snd_pcm_indirect_capture_transfer()
117 if (diff < -(snd_pcm_sframes_t) (runtime->boundary / 2)) in snd_pcm_indirect_capture_transfer()
118 diff += runtime->boundary; in snd_pcm_indirect_capture_transfer()
[all …]
/linux/sound/soc/bcm/
H A Dbcm63xx-pcm-whistler.c148 struct snd_pcm_runtime *runtime = substream->runtime; in bcm63xx_pcm_prepare() local
153 dma_desc->dma_addr = runtime->dma_addr; in bcm63xx_pcm_prepare()
154 dma_desc->dma_area = runtime->dma_area; in bcm63xx_pcm_prepare()
178 struct bcm63xx_runtime_data *prtd = substream->runtime->private_data; in bcm63xx_pcm_pointer()
181 prtd->dma_addr_next = substream->runtime->dma_addr; in bcm63xx_pcm_pointer()
183 x = bytes_to_frames(substream->runtime, in bcm63xx_pcm_pointer()
184 prtd->dma_addr_next - substream->runtime->dma_addr); in bcm63xx_pcm_pointer()
186 return x == substream->runtime->buffer_size ? 0 : x; in bcm63xx_pcm_pointer()
193 struct snd_pcm_runtime *runtime = substream->runtime; in bcm63xx_pcm_open() local
196 runtime->hw = bcm63xx_pcm_hardware; in bcm63xx_pcm_open()
[all …]
/linux/sound/soc/dwc/
H A Ddwc-pcm.c26 struct snd_pcm_runtime *runtime, unsigned int tx_ptr, \
29 const u##sample_bits (*p)[2] = (void *)runtime->dma_area; \
30 unsigned int period_pos = tx_ptr % runtime->period_size; \
37 if (++tx_ptr >= runtime->buffer_size) \
40 *period_elapsed = period_pos >= runtime->period_size; \
46 struct snd_pcm_runtime *runtime, unsigned int rx_ptr, \
49 u##sample_bits (*p)[2] = (void *)runtime->dma_area; \
50 unsigned int period_pos = rx_ptr % runtime->period_size; \
57 if (++rx_ptr >= runtime->buffer_size) \
60 *period_elapsed = period_pos >= runtime->period_size; \
[all …]
/linux/sound/soc/sof/intel/
H A Dhda-pcm.c106 struct hdac_stream *hstream = substream->runtime->private_data; in hda_dsp_pcm_hw_params()
114 dmab = substream->runtime->dma_buffer_p; in hda_dsp_pcm_hw_params()
157 struct hdac_stream *hstream = substream->runtime->private_data; in hda_dsp_pcm_ack()
158 struct snd_pcm_runtime *runtime = substream->runtime; in hda_dsp_pcm_ack() local
162 appl_pos = frames_to_bytes(runtime, runtime->control->appl_ptr); in hda_dsp_pcm_ack()
163 buf_size = frames_to_bytes(runtime, runtime->buffer_size); in hda_dsp_pcm_ack()
180 struct hdac_stream *hstream = substream->runtime->private_data; in hda_dsp_pcm_trigger()
192 struct hdac_stream *hstream = substream->runtime->private_data; in hda_dsp_pcm_pointer()
212 pos = bytes_to_frames(substream->runtime, pos); in hda_dsp_pcm_pointer()
223 struct snd_pcm_runtime *runtime = substream->runtime; in hda_dsp_pcm_open() local
[all …]
/linux/drivers/media/pci/cobalt/
H A Dcobalt-alsa-pcm.c102 struct snd_pcm_runtime *runtime; in cobalt_alsa_announce_pcm_data() local
119 runtime = substream->runtime; in cobalt_alsa_announce_pcm_data()
120 if (runtime == NULL) { in cobalt_alsa_announce_pcm_data()
124 is_s32 = runtime->format == SNDRV_PCM_FORMAT_S32_LE; in cobalt_alsa_announce_pcm_data()
126 stride = runtime->frame_bits >> 3; in cobalt_alsa_announce_pcm_data()
137 if (runtime->dma_area == NULL) { in cobalt_alsa_announce_pcm_data()
143 if (oldptr + length >= runtime->buffer_size) { in cobalt_alsa_announce_pcm_data()
144 unsigned int cnt = runtime->buffer_size - oldptr; in cobalt_alsa_announce_pcm_data()
148 sample_cpy(runtime->dma_area + (oldptr + i) * stride, in cobalt_alsa_announce_pcm_data()
152 sample_cpy(runtime->dma_area + (i - cnt) * stride, in cobalt_alsa_announce_pcm_data()
[all …]
/linux/sound/soc/amd/
H A Dacp-da7219-max98357a.c247 struct snd_pcm_runtime *runtime = substream->runtime; in cz_da7219_play_startup() local
256 runtime->hw.channels_max = DUAL_CHANNEL; in cz_da7219_play_startup()
257 snd_pcm_hw_constraint_list(runtime, 0, SNDRV_PCM_HW_PARAM_CHANNELS, in cz_da7219_play_startup()
259 snd_pcm_hw_constraint_list(runtime, 0, SNDRV_PCM_HW_PARAM_RATE, in cz_da7219_play_startup()
268 struct snd_pcm_runtime *runtime = substream->runtime; in cz_da7219_cap_startup() local
277 runtime->hw.channels_max = DUAL_CHANNEL; in cz_da7219_cap_startup()
278 snd_pcm_hw_constraint_list(runtime, 0, SNDRV_PCM_HW_PARAM_CHANNELS, in cz_da7219_cap_startup()
280 snd_pcm_hw_constraint_list(runtime, 0, SNDRV_PCM_HW_PARAM_RATE, in cz_da7219_cap_startup()
290 struct snd_pcm_runtime *runtime = substream->runtime; in cz_max_startup() local
299 runtime->hw.channels_max = DUAL_CHANNEL; in cz_max_startup()
[all …]
/linux/drivers/media/pci/cx18/
H A Dcx18-alsa-pcm.c62 struct snd_pcm_runtime *runtime; in cx18_alsa_announce_pcm_data() local
77 runtime = substream->runtime; in cx18_alsa_announce_pcm_data()
78 if (runtime == NULL) { in cx18_alsa_announce_pcm_data()
83 stride = runtime->frame_bits >> 3; in cx18_alsa_announce_pcm_data()
95 if (runtime->dma_area == NULL) { in cx18_alsa_announce_pcm_data()
101 if (oldptr + length >= runtime->buffer_size) { in cx18_alsa_announce_pcm_data()
103 runtime->buffer_size - oldptr; in cx18_alsa_announce_pcm_data()
104 memcpy(runtime->dma_area + oldptr * stride, pcm_data, in cx18_alsa_announce_pcm_data()
106 memcpy(runtime->dma_area, pcm_data + cnt * stride, in cx18_alsa_announce_pcm_data()
109 memcpy(runtime->dma_area + oldptr * stride, pcm_data, in cx18_alsa_announce_pcm_data()
[all …]
/linux/drivers/gpu/drm/bridge/synopsys/
H A Ddw-hdmi-ahb-audio.c211 struct snd_pcm_runtime *runtime) in dw_hdmi_create_cs() argument
216 snd_pcm_create_iec958_consumer(runtime, cs, sizeof(cs)); in dw_hdmi_create_cs()
321 struct snd_pcm_runtime *runtime = substream->runtime; in dw_hdmi_open() local
327 runtime->hw = dw_hdmi_hw; in dw_hdmi_open()
331 ret = snd_pcm_hw_constraint_eld(runtime, eld); in dw_hdmi_open()
336 ret = snd_pcm_limit_hw_rates(runtime); in dw_hdmi_open()
340 ret = snd_pcm_hw_constraint_integer(runtime, in dw_hdmi_open()
346 ret = snd_pcm_hw_constraint_minmax(runtime, in dw_hdmi_open()
392 struct snd_pcm_runtime *runtime = substream->runtime; in dw_hdmi_hw_free() local
394 vfree(runtime->dma_area); in dw_hdmi_hw_free()
[all …]
/linux/sound/firewire/fireface/
H A Damdtp-ff.c36 struct snd_pcm_runtime *runtime = pcm->runtime; in write_pcm_s32() local
43 pcm_buffer_pointer %= runtime->buffer_size; in write_pcm_s32()
45 src = (void *)runtime->dma_area + in write_pcm_s32()
46 frames_to_bytes(runtime, pcm_buffer_pointer); in write_pcm_s32()
47 remaining_frames = runtime->buffer_size - pcm_buffer_pointer; in write_pcm_s32()
56 src = (void *)runtime->dma_area; in write_pcm_s32()
66 struct snd_pcm_runtime *runtime = pcm->runtime; in read_pcm_s32() local
73 pcm_buffer_pointer %= runtime->buffer_size; in read_pcm_s32()
75 dst = (void *)runtime->dma_area + in read_pcm_s32()
76 frames_to_bytes(runtime, pcm_buffer_pointer); in read_pcm_s32()
[all …]
/linux/sound/soc/samsung/
H A Didma.c66 struct snd_pcm_runtime *runtime = substream->runtime; in idma_enqueue() local
67 struct idma_ctrl *prtd = substream->runtime->private_data; in idma_enqueue()
88 val |= (((runtime->dma_bytes >> 2) & in idma_enqueue()
102 struct idma_ctrl *prtd = substream->runtime->private_data; in idma_setcallbk()
134 struct idma_ctrl *prtd = substream->runtime->private_data; in idma_done()
144 struct snd_pcm_runtime *runtime = substream->runtime; in idma_hw_params() local
145 struct idma_ctrl *prtd = substream->runtime->private_data; in idma_hw_params()
155 runtime->dma_bytes = params_buffer_bytes(params); in idma_hw_params()
157 prtd->start = prtd->pos = runtime->dma_addr; in idma_hw_params()
160 prtd->end = runtime->dma_addr + runtime->dma_bytes; in idma_hw_params()
[all …]
/linux/sound/soc/sprd/
H A 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 …]
/linux/drivers/gpu/drm/i915/
H A Dintel_device_info.c90 const struct intel_runtime_info *runtime, in intel_device_info_print() argument
93 if (runtime->graphics.ip.rel) in intel_device_info_print()
95 runtime->graphics.ip.ver, in intel_device_info_print()
96 runtime->graphics.ip.rel); in intel_device_info_print()
99 runtime->graphics.ip.ver); in intel_device_info_print()
101 if (runtime->media.ip.rel) in intel_device_info_print()
103 runtime->media.ip.ver, in intel_device_info_print()
104 runtime->media.ip.rel); in intel_device_info_print()
107 runtime->media.ip.ver); in intel_device_info_print()
109 drm_printf(p, "graphics stepping: %s\n", intel_step_name(runtime->step.graphics_step)); in intel_device_info_print()
[all …]
/linux/sound/soc/fsl/
H A Dfsl_asrc_dma.c45 struct snd_pcm_runtime *runtime = substream->runtime; in fsl_asrc_dma_complete() local
46 struct fsl_asrc_pair *pair = runtime->private_data; in fsl_asrc_dma_complete()
59 struct snd_pcm_runtime *runtime = substream->runtime; in fsl_asrc_dma_prepare_and_submit() local
60 struct fsl_asrc_pair *pair = runtime->private_data; in fsl_asrc_dma_prepare_and_submit()
65 if (!substream->runtime->no_period_wakeup) in fsl_asrc_dma_prepare_and_submit()
70 pair->dma_chan[!dir], runtime->dma_addr, in fsl_asrc_dma_prepare_and_submit()
100 struct snd_pcm_runtime *runtime = substream->runtime; in fsl_asrc_dma_trigger() local
137 struct snd_pcm_runtime *runtime = substream->runtime; fsl_asrc_dma_hw_params() local
325 struct snd_pcm_runtime *runtime = substream->runtime; fsl_asrc_dma_hw_free() local
347 struct snd_pcm_runtime *runtime = substream->runtime; fsl_asrc_dma_startup() local
422 struct snd_pcm_runtime *runtime = substream->runtime; fsl_asrc_dma_shutdown() local
443 struct snd_pcm_runtime *runtime = substream->runtime; fsl_asrc_dma_pcm_pointer() local
[all...]
/linux/sound/soc/atmel/
H A Datmel-pcm-pdc.c91 struct atmel_runtime_data *prtd = substream->runtime->private_data; in atmel_pcm_dma_irq()
141 struct snd_pcm_runtime *runtime = substream->runtime; in atmel_pcm_hw_params() local
142 struct atmel_runtime_data *prtd = runtime->private_data; in atmel_pcm_hw_params()
151 prtd->dma_buffer = runtime->dma_addr; in atmel_pcm_hw_params()
152 prtd->dma_buffer_end = runtime->dma_addr + runtime->dma_bytes; in atmel_pcm_hw_params()
159 runtime->dma_bytes, in atmel_pcm_hw_params()
167 struct atmel_runtime_data *prtd = substream->runtime->private_data; in atmel_pcm_hw_free()
182 struct atmel_runtime_data *prtd = substream->runtime->private_data; in atmel_pcm_prepare()
195 struct snd_pcm_runtime *rtd = substream->runtime; in atmel_pcm_trigger()
261 struct snd_pcm_runtime *runtime = substream->runtime; in atmel_pcm_pointer() local
[all …]
/linux/sound/pci/au88x0/
H A Dau88x0_pcm.c129 struct snd_pcm_runtime *runtime = substream->runtime; in snd_vortex_pcm_open() local
133 err = snd_pcm_hw_constraint_integer(runtime, in snd_vortex_pcm_open()
138 err = snd_pcm_hw_constraint_pow2(runtime, 0, in snd_vortex_pcm_open()
143 snd_pcm_hw_constraint_step(runtime, 0, in snd_vortex_pcm_open()
149 runtime->hw = snd_vortex_playback_hw_a3d; in snd_vortex_pcm_open()
153 runtime->hw = snd_vortex_playback_hw_spdif; in snd_vortex_pcm_open()
156 runtime->hw.rates = SNDRV_PCM_RATE_32000; in snd_vortex_pcm_open()
159 runtime->hw.rates = SNDRV_PCM_RATE_44100; in snd_vortex_pcm_open()
162 runtime->hw.rates = SNDRV_PCM_RATE_48000; in snd_vortex_pcm_open()
168 runtime->hw = snd_vortex_playback_hw_adb; in snd_vortex_pcm_open()
[all …]
/linux/sound/soc/loongson/
H A Dloongson_dma.c94 struct loongson_runtime_data *prtd = substream->runtime->private_data; in loongson_pcm_trigger()
138 struct snd_pcm_runtime *runtime = substream->runtime; in loongson_pcm_hw_params() local
140 struct loongson_runtime_data *prtd = runtime->private_data; in loongson_pcm_hw_params()
160 runtime->dma_bytes = buf_len; in loongson_pcm_hw_params()
163 mem_addr = runtime->dma_addr; in loongson_pcm_hw_params()
201 struct snd_pcm_runtime *runtime = substream->runtime; in loongson_pcm_pointer() local
202 struct loongson_runtime_data *prtd = runtime->private_data; in loongson_pcm_pointer()
210 x = bytes_to_frames(runtime, addr - runtime->dma_addr); in loongson_pcm_pointer()
211 if (x == runtime->buffer_size) in loongson_pcm_pointer()
227 struct snd_pcm_runtime *runtime = substream->runtime; in loongson_pcm_open() local
[all …]
/linux/drivers/media/usb/cx231xx/
H A Dcx231xx-audio.c89 struct snd_pcm_runtime *runtime; in cx231xx_audio_isocirq() local
113 runtime = substream->runtime; in cx231xx_audio_isocirq()
114 stride = runtime->frame_bits >> 3; in cx231xx_audio_isocirq()
127 if (oldptr + length >= runtime->buffer_size) { in cx231xx_audio_isocirq()
130 cnt = runtime->buffer_size - oldptr; in cx231xx_audio_isocirq()
131 memcpy(runtime->dma_area + oldptr * stride, cp, in cx231xx_audio_isocirq()
133 memcpy(runtime->dma_area, cp + cnt * stride, in cx231xx_audio_isocirq()
136 memcpy(runtime->dma_area + oldptr * stride, cp, in cx231xx_audio_isocirq()
144 runtime->buffer_size) in cx231xx_audio_isocirq()
146 runtime->buffer_size; in cx231xx_audio_isocirq()
[all …]
/linux/sound/soc/sof/amd/
H A Dacp-pcm.c23 struct snd_pcm_runtime *runtime = substream->runtime; in acp_pcm_hw_params() local
24 struct acp_dsp_stream *stream = runtime->private_data; in acp_pcm_hw_params()
29 size = runtime->dma_bytes; in acp_pcm_hw_params()
30 stream->num_pages = PFN_UP(runtime->dma_bytes); in acp_pcm_hw_params()
31 stream->dmab = substream->runtime->dma_buffer_p; in acp_pcm_hw_params()
65 substream->runtime->private_data = stream; in acp_pcm_open()
76 stream = substream->runtime->private_data; in acp_pcm_close()
83 substream->runtime->private_data = NULL; in acp_pcm_close()
116 pos = bytes_to_frames(substream->runtime, pos); in acp_pcm_pointer()

12345678910>>...26