/linux-6.3-rc2/sound/core/ |
A D | pcm_memory.c | 94 substream->pcm->card->number, substream->pcm->device, in preallocate_pcm_pages() 95 substream->stream ? 'c' : 'p', substream->number, in preallocate_pcm_pages() 108 do_free_pages(substream->pcm->card, &substream->dma_buffer); in snd_pcm_lib_preallocate_free() 167 if (substream->runtime) { in snd_pcm_lib_preallocate_proc_write() 186 substream->stream, in snd_pcm_lib_preallocate_proc_write() 190 substream->pcm->card->number, substream->pcm->device, in snd_pcm_lib_preallocate_proc_write() 191 substream->stream ? 'c' : 'p', substream->number, in snd_pcm_lib_preallocate_proc_write() 264 substream->buffer_bytes_max = substream->dma_buffer.bytes; in preallocate_pages() 425 if (substream->dma_buffer.area && !substream->dma_max) in snd_pcm_lib_malloc_pages() 438 substream->pcm->card->number, substream->pcm->device, in snd_pcm_lib_malloc_pages() [all …]
|
A D | pcm_native.c | 1627 substream->ops->trigger(substream, in snd_pcm_undo_pause() 2714 substream->ops->close(substream); in snd_pcm_release_substream() 2793 pcm_file->substream = substream; in snd_pcm_open_file() 2893 substream = pcm_file->substream; in snd_pcm_release() 3474 substream = pcm_file->substream; in snd_pcm_read() 3499 substream = pcm_file->substream; in snd_pcm_write() 3526 substream = pcm_file->substream; in snd_pcm_readv() 3563 substream = pcm_file->substream; in snd_pcm_writev() 3598 substream = pcm_file->substream; in snd_pcm_poll() 3922 substream = pcm_file->substream; in snd_pcm_mmap() [all …]
|
A D | rawmidi.c | 167 runtime->substream = substream; in snd_rawmidi_runtime_create() 201 substream->ops->trigger(substream, up); in snd_rawmidi_output_trigger() 208 substream->ops->trigger(substream, up); in snd_rawmidi_input_trigger() 227 if (substream->opened && substream->runtime) in reset_runtime_ptrs() 277 substream->ops->drain(substream); in snd_rawmidi_drain_output() 344 err = substream->ops->open(substream); in open_substream() 567 substream->ops->close(substream); in close_substream() 569 substream->runtime->private_free(substream); in close_substream() 761 if (substream->append && substream->use_count > 1) in snd_rawmidi_output_params() 1386 if (!substream->opened || !substream->runtime) in snd_rawmidi_transmit_peek() [all …]
|
A D | pcm_timer.c | 43 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 …]
|
A D | pcm.c | 136 for (substream = pstr->substream; substream; in snd_pcm_control_ioctl() 137 substream = substream->next) in snd_pcm_control_ioctl() 678 pstr->substream = substream; in snd_pcm_new_stream() 834 substream = pstr->substream; in snd_pcm_free_stream() 912 for (substream = pcm->streams[opposite].substream; substream; in snd_pcm_attach_substream() 913 substream = substream->next) { in snd_pcm_attach_substream() 923 substream = pstr->substream; in snd_pcm_attach_substream() 925 for (substream = pstr->substream; substream; in snd_pcm_attach_substream() 926 substream = substream->next) in snd_pcm_attach_substream() 939 for (substream = pstr->substream; substream; substream = substream->next) { in snd_pcm_attach_substream() [all …]
|
A D | pcm_local.h | 28 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 …]
|
A D | pcm_trace.h | 13 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 …]
|
A D | pcm_dmaengine.c | 30 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 …]
|
/linux-6.3-rc2/sound/arm/ |
A D | pxa2xx-pcm-lib.c | 70 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 …]
|
/linux-6.3-rc2/sound/soc/sof/ |
A D | pcm.c | 25 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() 255 if (spcm->prepared[substream->stream]) in sof_pcm_prepare() 263 substream, &spcm->params[substream->stream]); in sof_pcm_prepare() 354 ret = sof_pcm_stream_free(sdev, substream, spcm, substream->stream, false); in sof_pcm_trigger() 441 substream->wait_time = 500; in sof_pcm_open() [all …]
|
/linux-6.3-rc2/sound/firewire/fireface/ |
A D | ff-midi.c | 18 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 snprintf(substream->name, sizeof(substream->name), in set_midi_substream_names() [all …]
|
/linux-6.3-rc2/sound/soc/ |
A D | soc-link.c | 37 #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 …]
|
/linux-6.3-rc2/sound/firewire/dice/ |
A D | dice-pcm.c | 15 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 …]
|
/linux-6.3-rc2/include/sound/ |
A D | pcm.h | 20 #define snd_pcm_substream_chip(substream) ((substream)->private_data) argument 54 int (*open)(struct snd_pcm_substream *substream); 55 int (*close)(struct snd_pcm_substream *substream); 79 int (*ack)(struct snd_pcm_substream *substream); 223 struct snd_pcm_substream *substream; member 492 #define SUBSTREAM_BUSY(substream) ((substream)->ref_count > 0) argument 501 struct snd_pcm_substream *substream; member 616 return substream->group != &substream->self_group; in snd_pcm_stream_linked() 1366 #define snd_pcm_get_dma_buf(substream) ((substream)->runtime->dma_buffer_p) argument 1406 atomic_inc(&substream->mmap_count); in snd_pcm_mmap_data_open() [all …]
|
/linux-6.3-rc2/sound/soc/bcm/ |
A D | bcm63xx-pcm-whistler.c | 45 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 …]
|
/linux-6.3-rc2/sound/pci/ctxfi/ |
A D | ctpcm.c | 97 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 …]
|
/linux-6.3-rc2/sound/drivers/pcsp/ |
A D | pcsp_lib.c | 32 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 …]
|
/linux-6.3-rc2/sound/firewire/tascam/ |
A D | tascam-pcm.c | 11 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 …]
|
/linux-6.3-rc2/sound/soc/sof/intel/ |
A D | hda-dai.c | 64 struct snd_pcm_substream *substream) in hda_link_stream_assign() argument 73 int stream_dir = substream->stream; in hda_link_stream_assign() 84 if (hstream->direction != substream->stream) in hda_link_stream_assign() 130 res->link_substream = substream; in hda_link_stream_assign() 251 int stream = substream->stream; in hda_link_dma_prepare() 380 int stream = substream->stream; in hda_dai_prepare() 388 ret = hda_link_dma_prepare(substream); in hda_dai_prepare() 413 dai->name, substream->stream); in ipc3_hda_dai_trigger() 463 dai->name, substream->stream); in ipc4_hda_dai_trigger() 465 rtd = asoc_substream_to_rtd(substream); in ipc4_hda_dai_trigger() [all …]
|
/linux-6.3-rc2/sound/pci/au88x0/ |
A D | au88x0_pcm.c | 198 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 …]
|
/linux-6.3-rc2/sound/isa/wavefront/ |
A D | wavefront_midi.c | 96 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 …]
|
/linux-6.3-rc2/sound/core/oss/ |
A D | pcm_oss.c | 1128 if (substream == NULL) in snd_pcm_oss_get_active_substream() 1581 if (!substream) in snd_pcm_oss_reset() 2178 if (substream == NULL) in snd_pcm_oss_get_odelay() 2206 if (substream == NULL) in snd_pcm_oss_get_ptr() 2276 if (substream == NULL) in snd_pcm_oss_get_space() 2412 if (substream) in snd_pcm_oss_release_file() 2584 if (substream == NULL) in snd_pcm_oss_release() 2588 pcm = substream->pcm; in snd_pcm_oss_release() 2784 if (substream == NULL) in snd_pcm_oss_read() 2808 if (substream == NULL) in snd_pcm_oss_write() [all …]
|
/linux-6.3-rc2/sound/soc/fsl/ |
A D | imx-pcm-fiq.c | 39 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 …]
|
/linux-6.3-rc2/drivers/staging/vc04_services/bcm2835-audio/ |
A D | bcm2835-pcm.c | 55 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 …]
|
/linux-6.3-rc2/sound/firewire/digi00x/ |
A D | digi00x-pcm.c | 58 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 …]
|