/linux/sound/core/ |
A D | pcm_native.c | 796 substream->ops->hw_free(substream); in snd_pcm_hw_params() 1560 substream->ops->trigger(substream, in snd_pcm_undo_pause() 2721 pcm_file->substream = substream; in snd_pcm_open_file() 2821 substream = pcm_file->substream; in snd_pcm_release() 3400 substream = pcm_file->substream; in snd_pcm_read() 3425 substream = pcm_file->substream; in snd_pcm_write() 3452 substream = pcm_file->substream; in snd_pcm_readv() 3489 substream = pcm_file->substream; in snd_pcm_writev() 3524 substream = pcm_file->substream; in snd_pcm_poll() 3842 substream = pcm_file->substream; in snd_pcm_mmap() [all …]
|
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() 166 if (substream->runtime) { in snd_pcm_lib_preallocate_proc_write() 185 substream->stream, in snd_pcm_lib_preallocate_proc_write() 189 substream->pcm->card->number, substream->pcm->device, in snd_pcm_lib_preallocate_proc_write() 190 substream->stream ? 'c' : 'p', substream->number, in snd_pcm_lib_preallocate_proc_write() 261 substream->buffer_bytes_max = substream->dma_buffer.bytes; in preallocate_pages() 418 if (substream->dma_buffer.area && !substream->dma_max) in snd_pcm_lib_malloc_pages() 431 substream->pcm->card->number, substream->pcm->device, in snd_pcm_lib_malloc_pages() [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() 676 pstr->substream = substream; in snd_pcm_new_stream() 828 substream = pstr->substream; in snd_pcm_free_stream() 906 for (substream = pcm->streams[opposite].substream; substream; in snd_pcm_attach_substream() 907 substream = substream->next) { in snd_pcm_attach_substream() 917 substream = pstr->substream; in snd_pcm_attach_substream() 919 for (substream = pstr->substream; substream; in snd_pcm_attach_substream() 920 substream = substream->next) in snd_pcm_attach_substream() 933 for (substream = pstr->substream; substream; substream = substream->next) { in snd_pcm_attach_substream() [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_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() 105 const struct snd_pcm_substream *substream, in snd_dmaengine_pcm_set_config_from_dai_data() argument 135 struct snd_pcm_substream *substream = arg; in dmaengine_pcm_dma_complete() local 142 snd_pcm_period_elapsed(substream); in dmaengine_pcm_dma_complete() 160 substream->runtime->dma_addr, in dmaengine_pcm_prepare_and_submit() 161 snd_pcm_lib_buffer_bytes(substream), in dmaengine_pcm_prepare_and_submit() 168 desc->callback_param = substream; in dmaengine_pcm_prepare_and_submit() 318 substream->runtime->private_data = prtd; in snd_dmaengine_pcm_open() 340 return snd_dmaengine_pcm_open(substream, in snd_dmaengine_pcm_open_request_chan() [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 | rawmidi.c | 151 runtime->substream = substream; in snd_rawmidi_runtime_create() 186 substream->ops->trigger(substream, up); in snd_rawmidi_output_trigger() 193 substream->ops->trigger(substream, up); in snd_rawmidi_input_trigger() 247 substream->ops->drain(substream); in snd_rawmidi_drain_output() 309 err = substream->ops->open(substream); in open_substream() 525 substream->ops->close(substream); in close_substream() 527 substream->runtime->private_free(substream); in close_substream() 716 if (substream->append && substream->use_count > 1) in snd_rawmidi_output_params() 1729 substream = kzalloc(sizeof(*substream), GFP_KERNEL); in snd_rawmidi_alloc_substreams() 1730 if (!substream) in snd_rawmidi_alloc_substreams() [all …]
|
A D | pcm_compat.c | 18 err = snd_pcm_delay(substream, &delay); in snd_pcm_ioctl_delay_compat() 242 runtime = substream->runtime; in snd_pcm_ioctl_hw_params_compat() 294 if (! substream->runtime) in snd_pcm_ioctl_xferi_compat() 296 if (substream->stream != dir) in snd_pcm_ioctl_xferi_compat() 340 if (! substream->runtime) in snd_pcm_ioctl_xfern_compat() 342 if (substream->stream != dir) in snd_pcm_ioctl_xfern_compat() 347 ch = substream->runtime->channels; in snd_pcm_ioctl_xfern_compat() 431 err = snd_pcm_hwsync(substream); in snd_pcm_ioctl_sync_ptr_x32() 514 err = snd_pcm_hwsync(substream); in snd_pcm_ioctl_sync_ptr_buggy() 578 substream = pcm_file->substream; in snd_pcm_ioctl_compat() [all …]
|
/linux/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/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/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); 79 int (*ack)(struct snd_pcm_substream *substream); 220 struct snd_pcm_substream *substream; member 485 #define SUBSTREAM_BUSY(substream) ((substream)->ref_count > 0) argument 494 struct snd_pcm_substream *substream; member 609 return substream->group != &substream->self_group; in snd_pcm_stream_linked() 875 substream->runtime->trigger_master = master; in snd_pcm_trigger_done() 1292 #define snd_pcm_get_dma_buf(substream) ((substream)->runtime->dma_buffer_p) argument 1328 atomic_inc(&substream->mmap_count); in snd_pcm_mmap_data_open() [all …]
|
/linux/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/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/sound/soc/bcm/ |
A D | bcm63xx-pcm-whistler.c | 44 struct snd_pcm_substream *substream, in bcm63xx_pcm_hw_params() argument 60 struct snd_pcm_substream *substream) in bcm63xx_pcm_hw_free() argument 79 rtd = asoc_substream_to_rtd(substream); in bcm63xx_pcm_trigger() 141 struct snd_pcm_substream *substream) in bcm63xx_pcm_prepare() argument 174 struct snd_pcm_substream *substream) in bcm63xx_pcm_pointer() argument 189 struct snd_pcm_substream *substream) in bcm63xx_pcm_open() argument 236 struct snd_pcm_substream *substream; in i2s_dma_isr() local 251 runtime = substream->runtime; in i2s_dma_isr() 287 snd_pcm_period_elapsed(substream); in i2s_dma_isr() 299 runtime = substream->runtime; in i2s_dma_isr() [all …]
|
/linux/sound/core/oss/ |
A D | pcm_oss.c | 1116 if (substream == NULL) in snd_pcm_oss_get_active_substream() 1569 if (!substream) in snd_pcm_oss_reset() 2166 if (substream == NULL) in snd_pcm_oss_get_odelay() 2194 if (substream == NULL) in snd_pcm_oss_get_ptr() 2264 if (substream == NULL) in snd_pcm_oss_get_space() 2406 if (substream) in snd_pcm_oss_release_file() 2578 if (substream == NULL) in snd_pcm_oss_release() 2582 pcm = substream->pcm; in snd_pcm_oss_release() 2778 if (substream == NULL) in snd_pcm_oss_read() 2802 if (substream == NULL) in snd_pcm_oss_write() [all …]
|
/linux/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() 66 snd_pcm_period_elapsed(sps->substream); in snd_sof_pcm_period_elapsed_work() 189 spcm->pcm.pcm_id, substream->stream); in sof_pcm_hw_params() 245 substream, in sof_pcm_hw_params() 300 spcm->pcm.pcm_id, substream->stream); in sof_pcm_hw_free() 338 if (spcm->prepared[substream->stream]) in sof_pcm_prepare() 342 spcm->pcm.pcm_id, substream->stream); in sof_pcm_prepare() 346 substream, &spcm->params[substream->stream]); in sof_pcm_prepare() 566 substream->wait_time = 500; in sof_pcm_open() [all …]
|
/linux/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/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/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/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/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/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() 95 idx = substream->number; in snd_bcm2835_playback_open_generic() 120 alsa_stream->substream = substream; in snd_bcm2835_playback_open_generic() 174 chip = snd_pcm_substream_chip(substream); in snd_bcm2835_playback_close() 176 runtime = substream->runtime; in snd_bcm2835_playback_close() 189 chip->opened &= ~(1 << substream->number); in snd_bcm2835_playback_close() [all …]
|
/linux/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/sound/soc/pxa/ |
A D | mmp-pcm.c | 76 snd_pcm_set_runtime_buffer(substream, &substream->dma_buffer); in mmp_pcm_hw_params() 111 struct snd_pcm_substream *substream) in mmp_pcm_open() argument 123 snd_soc_set_runtime_hwparams(substream, in mmp_pcm_open() 134 struct snd_pcm_substream *substream) in mmp_pcm_close() argument 140 struct snd_pcm_substream *substream, in mmp_pcm_mmap() argument 155 struct snd_pcm_substream *substream; in mmp_pcm_free_dma_buffers() local 167 substream = pcm->streams[stream].substream; in mmp_pcm_free_dma_buffers() 168 if (!substream) in mmp_pcm_free_dma_buffers() 171 buf = &substream->dma_buffer; in mmp_pcm_free_dma_buffers() 205 struct snd_pcm_substream *substream; in mmp_pcm_new() local [all …]
|