Home
last modified time | relevance | path

Searched refs:substream (Results 1 – 25 of 946) sorted by relevance

12345678910>>...38

/openbmc/linux/sound/core/
H A Dpcm_memory.c122 substream->pcm->card->number, substream->pcm->device, in preallocate_pcm_pages()
123 substream->stream ? 'c' : 'p', substream->number, in preallocate_pcm_pages()
136 do_free_pages(substream->pcm->card, &substream->dma_buffer); in snd_pcm_lib_preallocate_free()
195 if (substream->runtime) { in snd_pcm_lib_preallocate_proc_write()
214 substream->stream, in snd_pcm_lib_preallocate_proc_write()
218 substream->pcm->card->number, substream->pcm->device, in snd_pcm_lib_preallocate_proc_write()
219 substream->stream ? 'c' : 'p', substream->number, in snd_pcm_lib_preallocate_proc_write()
292 substream->buffer_bytes_max = substream->dma_buffer.bytes; in preallocate_pages()
453 if (substream->dma_buffer.area && !substream->dma_max) in snd_pcm_lib_malloc_pages()
466 substream->pcm->card->number, substream->pcm->device, in snd_pcm_lib_malloc_pages()
[all …]
H A Dpcm_native.c1623 substream->ops->trigger(substream, in snd_pcm_undo_pause()
2712 substream->ops->close(substream); in snd_pcm_release_substream()
2791 pcm_file->substream = substream; in snd_pcm_open_file()
2891 substream = pcm_file->substream; in snd_pcm_release()
3472 substream = pcm_file->substream; in snd_pcm_read()
3497 substream = pcm_file->substream; in snd_pcm_write()
3525 substream = pcm_file->substream; in snd_pcm_readv()
3565 substream = pcm_file->substream; in snd_pcm_writev()
3602 substream = pcm_file->substream; in snd_pcm_poll()
3926 substream = pcm_file->substream; in snd_pcm_mmap()
[all …]
H A Drawmidi.c170 runtime->substream = substream; in snd_rawmidi_runtime_create()
218 substream->ops->trigger(substream, up); in snd_rawmidi_output_trigger()
225 substream->ops->trigger(substream, up); in snd_rawmidi_input_trigger()
244 if (substream->opened && substream->runtime) in reset_runtime_ptrs()
294 substream->ops->drain(substream); in snd_rawmidi_drain_output()
361 err = substream->ops->open(substream); in open_substream()
575 substream->ops->close(substream); in close_substream()
577 substream->runtime->private_free(substream); in close_substream()
771 if (substream->append && substream->use_count > 1) in snd_rawmidi_output_params()
1456 if (!substream->opened || !substream->runtime) in snd_rawmidi_transmit_peek()
[all …]
H A Dpcm_timer.c43 pcm_err(substream->pcm, in snd_pcm_timer_resolution_change()
56 substream = timer->private_data; in snd_pcm_timer_resolution()
57 return substream->runtime ? substream->runtime->timer_resolution : 0; in snd_pcm_timer_resolution()
65 substream->timer_running = 1; in snd_pcm_timer_start()
74 substream->timer_running = 0; in snd_pcm_timer_stop()
95 substream->timer = NULL; in snd_pcm_timer_free()
107 tid.subdevice = (substream->number << 1) | (substream->stream & 1); in snd_pcm_timer_init()
121 substream->timer = timer; in snd_pcm_timer_init()
126 if (substream->timer) { in snd_pcm_timer_done()
127 snd_device_free(substream->pcm->card, substream->timer); in snd_pcm_timer_done()
[all …]
H A Dpcm_local.h28 int snd_pcm_update_state(struct snd_pcm_substream *substream,
36 snd_pcm_avail(struct snd_pcm_substream *substream) in snd_pcm_avail() argument
38 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) in snd_pcm_avail()
39 return snd_pcm_playback_avail(substream->runtime); in snd_pcm_avail()
41 return snd_pcm_capture_avail(substream->runtime); in snd_pcm_avail()
45 snd_pcm_hw_avail(struct snd_pcm_substream *substream) in snd_pcm_hw_avail() argument
47 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) in snd_pcm_hw_avail()
48 return snd_pcm_playback_hw_avail(substream->runtime); in snd_pcm_hw_avail()
50 return snd_pcm_capture_hw_avail(substream->runtime); in snd_pcm_hw_avail()
64 void __snd_pcm_xrun(struct snd_pcm_substream *substream);
[all …]
H A Dpcm_trace.h13 TP_ARGS(substream, pos, irq),
30 __entry->number = (substream)->number;
31 __entry->stream = (substream)->stream;
52 TP_ARGS(substream),
66 __entry->number = (substream)->number;
67 __entry->stream = (substream)->stream;
85 TP_ARGS(substream, why),
96 __entry->number = (substream)->number;
97 __entry->stream = (substream)->stream;
108 TP_ARGS(substream, prev, curr),
[all …]
H A Dpcm.c136 for (substream = pstr->substream; substream; in snd_pcm_control_ioctl()
137 substream = substream->next) in snd_pcm_control_ioctl()
682 pstr->substream = substream; in snd_pcm_new_stream()
836 substream = pstr->substream; in snd_pcm_free_stream()
914 for (substream = pcm->streams[opposite].substream; substream; in snd_pcm_attach_substream()
915 substream = substream->next) { in snd_pcm_attach_substream()
925 substream = pstr->substream; in snd_pcm_attach_substream()
927 for (substream = pstr->substream; substream; in snd_pcm_attach_substream()
928 substream = substream->next) in snd_pcm_attach_substream()
941 for (substream = pstr->substream; substream; substream = substream->next) { in snd_pcm_attach_substream()
[all …]
H A Dpcm_dmaengine.c30 const struct snd_pcm_substream *substream) in substream_to_prtd() argument
32 return substream->runtime->private_data; in substream_to_prtd()
107 const struct snd_pcm_substream *substream, in snd_dmaengine_pcm_set_config_from_dai_data() argument
137 struct snd_pcm_substream *substream = arg; in dmaengine_pcm_dma_complete() local
145 snd_pcm_period_elapsed(substream); in dmaengine_pcm_dma_complete()
163 substream->runtime->dma_addr, in dmaengine_pcm_prepare_and_submit()
164 snd_pcm_lib_buffer_bytes(substream), in dmaengine_pcm_prepare_and_submit()
171 desc->callback_param = substream; in dmaengine_pcm_prepare_and_submit()
325 substream->runtime->private_data = prtd; in snd_dmaengine_pcm_open()
347 return snd_dmaengine_pcm_open(substream, in snd_dmaengine_pcm_open_request_chan()
[all …]
/openbmc/linux/sound/arm/
H A Dpxa2xx-pcm-lib.c70 return snd_dmaengine_pcm_pointer(substream); in pxa2xx_pcm_pointer()
150 struct snd_pcm_substream *substream) in pxa2xx_soc_pcm_open() argument
152 return pxa2xx_pcm_open(substream); in pxa2xx_soc_pcm_open()
157 struct snd_pcm_substream *substream) in pxa2xx_soc_pcm_close() argument
159 return pxa2xx_pcm_close(substream); in pxa2xx_soc_pcm_close()
164 struct snd_pcm_substream *substream, in pxa2xx_soc_pcm_hw_params() argument
172 struct snd_pcm_substream *substream) in pxa2xx_soc_pcm_prepare() argument
174 return pxa2xx_pcm_prepare(substream); in pxa2xx_soc_pcm_prepare()
181 return pxa2xx_pcm_trigger(substream, cmd); in pxa2xx_soc_pcm_trigger()
187 struct snd_pcm_substream *substream) in pxa2xx_soc_pcm_pointer() argument
[all …]
/openbmc/linux/sound/soc/sof/
H A Dpcm.c25 struct snd_pcm_substream *substream, in create_page_table() argument
31 int stream = substream->stream; in create_page_table()
50 snd_pcm_period_elapsed(sps->substream); in snd_sof_pcm_period_elapsed_work()
155 spcm->pcm.pcm_id, substream->stream); in sof_pcm_hw_params()
166 substream->stream); in sof_pcm_hw_params()
212 spcm->pcm.pcm_id, substream->stream); in sof_pcm_hw_free()
261 if (spcm->prepared[substream->stream]) in sof_pcm_prepare()
269 substream, &spcm->params[substream->stream]); in sof_pcm_prepare()
380 ret = sof_pcm_stream_free(sdev, substream, spcm, substream->stream, false); in sof_pcm_trigger()
467 substream->wait_time = 500; in sof_pcm_open()
[all …]
/openbmc/linux/sound/firewire/fireface/
H A Dff-midi.c18 struct snd_ff *ff = substream->rmidi->private_data; in midi_playback_open()
21 ff->on_sysex[substream->number] = 0; in midi_playback_open()
22 ff->rx_midi_error[substream->number] = false; in midi_playback_open()
24 WRITE_ONCE(ff->rx_midi_substreams[substream->number], substream); in midi_playback_open()
37 struct snd_ff *ff = substream->rmidi->private_data; in midi_playback_close()
48 struct snd_ff *ff = substream->rmidi->private_data; in midi_capture_trigger()
55 substream); in midi_capture_trigger()
70 if (up || !ff->rx_midi_error[substream->number]) in midi_playback_trigger()
79 struct snd_rawmidi_substream *substream; in set_midi_substream_names() local
82 scnprintf(substream->name, sizeof(substream->name), in set_midi_substream_names()
[all …]
/openbmc/linux/sound/soc/
H A Dsoc-link.c37 #define soc_link_mark_push(rtd, substream, tgt) ((rtd)->mark_##tgt = substream) argument
39 #define soc_link_mark_match(rtd, substream, tgt) ((rtd)->mark_##tgt == substream) argument
75 ret = rtd->dai_link->ops->startup(substream); in snd_soc_link_startup()
79 soc_link_mark_push(rtd, substream, startup); in snd_soc_link_startup()
94 rtd->dai_link->ops->shutdown(substream); in snd_soc_link_shutdown()
97 soc_link_mark_pop(rtd, substream, startup); in snd_soc_link_shutdown()
138 rtd->dai_link->ops->hw_free(substream); in snd_soc_link_hw_free()
141 soc_link_mark_pop(rtd, substream, hw_params); in snd_soc_link_hw_free()
166 ret = soc_link_trigger(substream, cmd); in snd_soc_link_trigger()
177 ret = soc_link_trigger(substream, cmd); in snd_soc_link_trigger()
[all …]
/openbmc/linux/sound/firewire/dice/
H A Ddice-pcm.c15 struct snd_dice *dice = substream->private_data; in dice_rate_constraint()
16 unsigned int index = substream->pcm->device; in dice_rate_constraint()
54 unsigned int index = substream->pcm->device; in dice_channels_constraint()
126 struct snd_pcm_substream *substream) in init_hw_info() argument
130 unsigned int index = substream->pcm->device; in init_hw_info()
151 dice_rate_constraint, substream, in init_hw_info()
156 dice_channels_constraint, substream, in init_hw_info()
176 err = init_hw_info(dice, substream); in pcm_open()
216 substream->runtime->hw.rate_min = rate; in pcm_open()
217 substream->runtime->hw.rate_max = rate; in pcm_open()
[all …]
/openbmc/linux/sound/soc/google/
H A Dchv3-i2s.c132 struct snd_pcm_substream *substream) in chv3_dma_open() argument
146 i2s->rx_substream = substream; in chv3_dma_open()
148 i2s->tx_substream = substream; in chv3_dma_open()
153 struct snd_pcm_substream *substream) in chv3_dma_close() argument
170 struct snd_pcm_substream *substream; in chv3_dma_pcm_construct() local
173 substream = rtd->pcm->streams[SNDRV_PCM_STREAM_PLAYBACK].substream; in chv3_dma_pcm_construct()
174 if (substream) { in chv3_dma_pcm_construct()
181 substream = rtd->pcm->streams[SNDRV_PCM_STREAM_CAPTURE].substream; in chv3_dma_pcm_construct()
182 if (substream) { in chv3_dma_pcm_construct()
196 snd_pcm_set_runtime_buffer(substream, &substream->dma_buffer); in chv3_dma_hw_params()
[all …]
/openbmc/linux/sound/soc/bcm/
H A Dbcm63xx-pcm-whistler.c45 struct snd_pcm_substream *substream, in bcm63xx_pcm_hw_params() argument
61 struct snd_pcm_substream *substream) in bcm63xx_pcm_hw_free() argument
80 rtd = asoc_substream_to_rtd(substream); in bcm63xx_pcm_trigger()
142 struct snd_pcm_substream *substream) in bcm63xx_pcm_prepare() argument
175 struct snd_pcm_substream *substream) in bcm63xx_pcm_pointer() argument
190 struct snd_pcm_substream *substream) in bcm63xx_pcm_open() argument
237 struct snd_pcm_substream *substream; in i2s_dma_isr() local
252 runtime = substream->runtime; in i2s_dma_isr()
288 snd_pcm_period_elapsed(substream); in i2s_dma_isr()
300 runtime = substream->runtime; in i2s_dma_isr()
[all …]
/openbmc/linux/include/sound/
H A Dpcm.h21 #define snd_pcm_substream_chip(substream) ((substream)->private_data) argument
55 int (*open)(struct snd_pcm_substream *substream);
56 int (*close)(struct snd_pcm_substream *substream);
77 int (*ack)(struct snd_pcm_substream *substream);
221 struct snd_pcm_substream *substream; member
490 #define SUBSTREAM_BUSY(substream) ((substream)->ref_count > 0) argument
499 struct snd_pcm_substream *substream; member
614 return substream->group != &substream->self_group; in snd_pcm_stream_linked()
1364 #define snd_pcm_get_dma_buf(substream) ((substream)->runtime->dma_buffer_p) argument
1404 atomic_inc(&substream->mmap_count); in snd_pcm_mmap_data_open()
[all …]
H A Ddmaengine_pcm.h22 snd_pcm_substream_to_dma_direction(const struct snd_pcm_substream *substream) in snd_pcm_substream_to_dma_direction() argument
24 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) in snd_pcm_substream_to_dma_direction()
32 int snd_dmaengine_pcm_trigger(struct snd_pcm_substream *substream, int cmd);
36 int snd_dmaengine_pcm_open(struct snd_pcm_substream *substream,
38 int snd_dmaengine_pcm_close(struct snd_pcm_substream *substream);
39 int snd_dmaengine_pcm_sync_stop(struct snd_pcm_substream *substream);
88 const struct snd_pcm_substream *substream,
93 struct snd_pcm_substream *substream,
138 int (*prepare_slave_config)(struct snd_pcm_substream *substream,
143 struct snd_pcm_substream *substream);
[all …]
/openbmc/linux/sound/drivers/pcsp/
H A Dpcsp_lib.c32 struct snd_pcm_substream *substream; in pcsp_call_pcm_elapsed() local
34 if (substream) in pcsp_call_pcm_elapsed()
35 snd_pcm_period_elapsed(substream); in pcsp_call_pcm_elapsed()
48 struct snd_pcm_substream *substream; in pcsp_timer_update() local
58 substream = chip->playback_substream; in pcsp_timer_update()
59 if (!substream) in pcsp_timer_update()
62 runtime = substream->runtime; in pcsp_timer_update()
90 struct snd_pcm_substream *substream; in pcsp_pointer_update() local
97 if (!substream) in pcsp_pointer_update()
245 substream->runtime->periods, in snd_pcsp_playback_prepare()
[all …]
/openbmc/linux/sound/pci/ctxfi/
H A Dctpcm.c97 if (!apcm->substream) in ct_atc_pcm_interrupt()
100 snd_pcm_period_elapsed(apcm->substream); in ct_atc_pcm_interrupt()
118 struct snd_pcm_runtime *runtime = substream->runtime; in ct_pcm_playback_open()
126 apcm->substream = substream; in ct_pcm_playback_open()
128 if (IEC958 == substream->pcm->device) { in ct_pcm_playback_open()
133 if (FRONT == substream->pcm->device) in ct_pcm_playback_open()
168 if (IEC958 == substream->pcm->device) in ct_pcm_playback_close()
202 struct snd_pcm_runtime *runtime = substream->runtime; in ct_pcm_playback_prepare()
205 if (IEC958 == substream->pcm->device) in ct_pcm_playback_prepare()
223 struct snd_pcm_runtime *runtime = substream->runtime; in ct_pcm_playback_trigger()
[all …]
/openbmc/linux/sound/firewire/tascam/
H A Dtascam-pcm.c11 struct snd_pcm_substream *substream) in pcm_init_hw_params() argument
13 struct snd_pcm_runtime *runtime = substream->runtime; in pcm_init_hw_params()
18 if (substream->stream == SNDRV_PCM_STREAM_CAPTURE) { in pcm_init_hw_params()
45 struct snd_tscm *tscm = substream->private_data; in pcm_open()
54 err = pcm_init_hw_params(tscm, substream); in pcm_open()
77 substream->runtime->hw.rate_min = rate; in pcm_open()
78 substream->runtime->hw.rate_max = rate; in pcm_open()
99 snd_pcm_set_sync(substream); in pcm_open()
109 struct snd_tscm *tscm = substream->private_data; in pcm_close()
119 struct snd_tscm *tscm = substream->private_data; in pcm_hw_params()
[all …]
/openbmc/linux/sound/soc/fsl/
H A Dimx-pcm-fiq.c39 struct snd_pcm_substream *substream; member
48 struct snd_pcm_substream *substream = iprtd->substream; in snd_hrtimer_callback() local
61 snd_pcm_period_elapsed(substream); in snd_hrtimer_callback()
73 struct snd_pcm_substream *substream, in snd_imx_pcm_hw_params() argument
173 struct snd_pcm_substream *substream) in snd_imx_open() argument
184 iprtd->substream = substream; in snd_imx_open()
236 struct snd_pcm_substream *substream; in snd_imx_pcm_new() local
243 substream = pcm->streams[SNDRV_PCM_STREAM_PLAYBACK].substream; in snd_imx_pcm_new()
244 if (substream) { in snd_imx_pcm_new()
250 substream = pcm->streams[SNDRV_PCM_STREAM_CAPTURE].substream; in snd_imx_pcm_new()
[all …]
/openbmc/linux/sound/pci/au88x0/
H A Dau88x0_pcm.c198 stream->substream = NULL; in snd_vortex_pcm_close()
201 substream->runtime->private_data = NULL; in snd_vortex_pcm_close()
226 substream->number); in snd_vortex_pcm_hw_params()
231 substream->stream, type, in snd_vortex_pcm_hw_params()
232 substream->number); in snd_vortex_pcm_hw_params()
238 stream->substream = substream; in snd_vortex_pcm_hw_params()
256 &chip->dma_wt[substream->number]; in snd_vortex_pcm_hw_params()
257 stream->dma = substream->number; in snd_vortex_pcm_hw_params()
258 stream->substream = substream; in snd_vortex_pcm_hw_params()
287 substream->number); in snd_vortex_pcm_hw_free()
[all …]
/openbmc/linux/sound/isa/wavefront/
H A Dwavefront_midi.c96 if (substream == NULL || substream->rmidi == NULL) in get_wavefront_midi()
99 card = substream->rmidi->card; in get_wavefront_midi()
235 if (snd_BUG_ON(!substream || !substream->rmidi)) in snd_wavefront_midi_input_open()
242 midi = get_wavefront_midi(substream); in snd_wavefront_midi_input_open()
260 if (snd_BUG_ON(!substream || !substream->rmidi)) in snd_wavefront_midi_output_open()
267 midi = get_wavefront_midi(substream); in snd_wavefront_midi_output_open()
285 if (snd_BUG_ON(!substream || !substream->rmidi)) in snd_wavefront_midi_input_close()
309 if (snd_BUG_ON(!substream || !substream->rmidi)) in snd_wavefront_midi_output_close()
332 if (substream == NULL || substream->rmidi == NULL) in snd_wavefront_midi_input_trigger()
371 if (substream == NULL || substream->rmidi == NULL) in snd_wavefront_midi_output_trigger()
[all …]
/openbmc/linux/drivers/staging/vc04_services/bcm2835-audio/
H A Dbcm2835-pcm.c55 struct snd_pcm_substream *substream = alsa_stream->substream; in bcm2835_playback_fifo() local
62 snd_pcm_stream_lock(substream); in bcm2835_playback_fifo()
63 snd_pcm_stop(substream, in bcm2835_playback_fifo()
67 snd_pcm_stream_unlock(substream); in bcm2835_playback_fifo()
80 snd_pcm_period_elapsed(substream); in bcm2835_playback_fifo()
94 idx = substream->number; in snd_bcm2835_playback_open_generic()
119 alsa_stream->substream = substream; in snd_bcm2835_playback_open_generic()
173 chip = snd_pcm_substream_chip(substream); in snd_bcm2835_playback_close()
175 runtime = substream->runtime; in snd_bcm2835_playback_close()
188 chip->opened &= ~(1 << substream->number); in snd_bcm2835_playback_close()
[all …]
/openbmc/linux/sound/firewire/digi00x/
H A Ddigi00x-pcm.c58 struct snd_pcm_substream *substream) in pcm_init_hw_params() argument
66 if (substream->stream == SNDRV_PCM_STREAM_CAPTURE) { in pcm_init_hw_params()
83 err = snd_pcm_hw_rule_add(substream->runtime, 0, in pcm_init_hw_params()
90 err = snd_pcm_hw_rule_add(substream->runtime, 0, in pcm_init_hw_params()
102 struct snd_dg00x *dg00x = substream->private_data; in pcm_open()
112 err = pcm_init_hw_params(dg00x, substream); in pcm_open()
146 substream->runtime->hw.rate_min = rate; in pcm_open()
147 substream->runtime->hw.rate_max = rate; in pcm_open()
170 snd_pcm_set_sync(substream); in pcm_open()
180 struct snd_dg00x *dg00x = substream->private_data; in pcm_close()
[all …]

12345678910>>...38