| /linux/sound/core/ |
| H A D | pcm_memory.c | 98 static int preallocate_pcm_pages(struct snd_pcm_substream *substream, in preallocate_pcm_pages() argument 101 struct snd_dma_buffer *dmab = &substream->dma_buffer; in preallocate_pcm_pages() 102 struct snd_card *card = substream->pcm->card; in preallocate_pcm_pages() 108 substream->stream, size, dmab); in preallocate_pcm_pages() 117 substream->pcm->card->number, substream->pcm->device, in preallocate_pcm_pages() 118 substream->stream ? 'c' : 'p', substream->number, in preallocate_pcm_pages() 119 substream->pcm->name, orig_size); in preallocate_pcm_pages() 129 void snd_pcm_lib_preallocate_free(struct snd_pcm_substream *substream) in snd_pcm_lib_preallocate_free() argument 131 do_free_pages(substream->pcm->card, &substream->dma_buffer); in snd_pcm_lib_preallocate_free() 142 struct snd_pcm_substream *substream; in snd_pcm_lib_preallocate_free_for_all() local [all …]
|
| H A D | rawmidi.c | 106 static bool snd_rawmidi_ready(struct snd_rawmidi_substream *substream) in snd_rawmidi_ready() argument 108 guard(spinlock_irqsave)(&substream->lock); in snd_rawmidi_ready() 109 return __snd_rawmidi_ready(substream->runtime); in snd_rawmidi_ready() 112 static inline int snd_rawmidi_ready_append(struct snd_rawmidi_substream *substream, in snd_rawmidi_ready_append() argument 115 struct snd_rawmidi_runtime *runtime = substream->runtime; in snd_rawmidi_ready_append() 118 (!substream->append || runtime->avail >= count); in snd_rawmidi_ready_append() 127 runtime->event(runtime->substream); in snd_rawmidi_input_event_work() 130 /* buffer refcount management: call with substream->lock held */ 141 static void snd_rawmidi_buffer_ref_sync(struct snd_rawmidi_substream *substream) in snd_rawmidi_buffer_ref_sync() argument 145 spin_lock_irq(&substream in snd_rawmidi_buffer_ref_sync() 158 snd_rawmidi_runtime_create(struct snd_rawmidi_substream * substream) snd_rawmidi_runtime_create() argument 199 snd_rawmidi_runtime_free(struct snd_rawmidi_substream * substream) snd_rawmidi_runtime_free() argument 209 snd_rawmidi_output_trigger(struct snd_rawmidi_substream * substream,int up) snd_rawmidi_output_trigger() argument 216 snd_rawmidi_input_trigger(struct snd_rawmidi_substream * substream,int up) snd_rawmidi_input_trigger() argument 233 reset_runtime_ptrs(struct snd_rawmidi_substream * substream,bool is_input) reset_runtime_ptrs() argument 241 snd_rawmidi_drop_output(struct snd_rawmidi_substream * substream) snd_rawmidi_drop_output() argument 249 snd_rawmidi_drain_output(struct snd_rawmidi_substream * substream) snd_rawmidi_drain_output() argument 295 snd_rawmidi_drain_input(struct snd_rawmidi_substream * substream) snd_rawmidi_drain_input() argument 310 struct snd_rawmidi_substream *substream; assign_substream() local 339 open_substream(struct snd_rawmidi * rmidi,struct snd_rawmidi_substream * substream,int mode) open_substream() argument 534 close_substream(struct snd_rawmidi * rmidi,struct snd_rawmidi_substream * substream,int cleanup) close_substream() argument 618 snd_rawmidi_info(struct snd_rawmidi_substream * substream,struct snd_rawmidi_info * info) snd_rawmidi_info() argument 644 snd_rawmidi_info_user(struct snd_rawmidi_substream * substream,struct snd_rawmidi_info __user * _info) snd_rawmidi_info_user() argument 663 struct snd_rawmidi_substream *substream; __snd_rawmidi_info_select() local 710 resize_runtime_buffer(struct snd_rawmidi_substream * substream,struct snd_rawmidi_params * params,bool is_input) resize_runtime_buffer() argument 747 snd_rawmidi_output_params(struct snd_rawmidi_substream * substream,struct snd_rawmidi_params * params) snd_rawmidi_output_params() argument 763 snd_rawmidi_input_params(struct snd_rawmidi_substream * substream,struct snd_rawmidi_params * params) snd_rawmidi_input_params() argument 789 snd_rawmidi_output_status(struct snd_rawmidi_substream * substream,struct snd_rawmidi_status64 * status) snd_rawmidi_output_status() argument 801 snd_rawmidi_input_status(struct snd_rawmidi_substream * substream,struct snd_rawmidi_status64 * status) snd_rawmidi_input_status() argument 1076 receive_with_tstamp_framing(struct snd_rawmidi_substream * substream,const unsigned char * buffer,int src_count,const struct timespec64 * tstamp) receive_with_tstamp_framing() argument 1115 get_framing_tstamp(struct snd_rawmidi_substream * substream) get_framing_tstamp() argument 1143 snd_rawmidi_receive(struct snd_rawmidi_substream * substream,const unsigned char * buffer,int count) snd_rawmidi_receive() argument 1217 snd_rawmidi_kernel_read1(struct snd_rawmidi_substream * substream,unsigned char __user * userbuf,unsigned char * kernelbuf,long count) snd_rawmidi_kernel_read1() argument 1262 snd_rawmidi_kernel_read(struct snd_rawmidi_substream * substream,unsigned char * buf,long count) snd_rawmidi_kernel_read() argument 1276 struct snd_rawmidi_substream *substream; snd_rawmidi_read() local 1331 snd_rawmidi_transmit_empty(struct snd_rawmidi_substream * substream) snd_rawmidi_transmit_empty() argument 1354 __snd_rawmidi_transmit_peek(struct snd_rawmidi_substream * substream,unsigned char * buffer,int count) __snd_rawmidi_transmit_peek() argument 1413 snd_rawmidi_transmit_peek(struct snd_rawmidi_substream * substream,unsigned char * buffer,int count) snd_rawmidi_transmit_peek() argument 1430 __snd_rawmidi_transmit_ack(struct snd_rawmidi_substream * substream,int count) __snd_rawmidi_transmit_ack() argument 1464 snd_rawmidi_transmit_ack(struct snd_rawmidi_substream * substream,int count) snd_rawmidi_transmit_ack() argument 1483 snd_rawmidi_transmit(struct snd_rawmidi_substream * substream,unsigned char * buffer,int count) snd_rawmidi_transmit() argument 1502 snd_rawmidi_proceed(struct snd_rawmidi_substream * substream) snd_rawmidi_proceed() argument 1518 snd_rawmidi_kernel_write1(struct snd_rawmidi_substream * substream,const unsigned char __user * userbuf,const unsigned char * kernelbuf,long count) snd_rawmidi_kernel_write1() argument 1580 snd_rawmidi_kernel_write(struct snd_rawmidi_substream * substream,const unsigned char * buf,long count) snd_rawmidi_kernel_write() argument 1594 struct snd_rawmidi_substream *substream; snd_rawmidi_write() local 1704 struct snd_rawmidi_substream *substream; snd_rawmidi_proc_info_read() local 1802 struct snd_rawmidi_substream *substream; snd_rawmidi_alloc_substreams() local 1911 struct snd_rawmidi_substream *substream; snd_rawmidi_free_substreams() local 2096 struct snd_rawmidi_substream *substream; snd_rawmidi_set_ops() local [all...] |
| H A D | pcm_timer.c | 19 void snd_pcm_timer_resolution_change(struct snd_pcm_substream *substream) in snd_pcm_timer_resolution_change() argument 22 struct snd_pcm_runtime *runtime = substream->runtime; in snd_pcm_timer_resolution_change() 43 pcm_err(substream->pcm, in snd_pcm_timer_resolution_change() 54 struct snd_pcm_substream *substream; in snd_pcm_timer_resolution() local 56 substream = timer->private_data; in snd_pcm_timer_resolution() 57 return substream->runtime ? substream->runtime->timer_resolution : 0; in snd_pcm_timer_resolution() 62 struct snd_pcm_substream *substream; in snd_pcm_timer_start() local 64 substream = snd_timer_chip(timer); in snd_pcm_timer_start() 65 substream->timer_running = 1; in snd_pcm_timer_start() 71 struct snd_pcm_substream *substream; in snd_pcm_timer_stop() local [all …]
|
| H A D | pcm_trace.h | 12 TP_PROTO(struct snd_pcm_substream *substream, snd_pcm_uframes_t pos, bool irq), 13 TP_ARGS(substream, pos, irq), 28 __entry->card = (substream)->pcm->card->number; 29 __entry->device = (substream)->pcm->device; 30 __entry->number = (substream)->number; 31 __entry->stream = (substream)->stream; 33 __entry->period_size = (substream)->runtime->period_size; 34 __entry->buffer_size = (substream)->runtime->buffer_size; 35 __entry->old_hw_ptr = (substream)->runtime->status->hw_ptr; 36 __entry->hw_ptr_base = (substream) [all...] |
| H A D | pcm_local.h | 26 int pcm_lib_apply_appl_ptr(struct snd_pcm_substream *substream, 28 int snd_pcm_update_state(struct snd_pcm_substream *substream, 30 int snd_pcm_update_hw_ptr(struct snd_pcm_substream *substream); 32 void snd_pcm_playback_silence(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() [all …]
|
| H A D | pcm_compat.c | 12 static int snd_pcm_ioctl_delay_compat(struct snd_pcm_substream *substream, in snd_pcm_ioctl_delay_compat() argument 18 err = snd_pcm_delay(substream, &delay); in snd_pcm_ioctl_delay_compat() 26 static int snd_pcm_ioctl_rewind_compat(struct snd_pcm_substream *substream, in snd_pcm_ioctl_rewind_compat() argument 34 err = snd_pcm_rewind(substream, frames); in snd_pcm_ioctl_rewind_compat() 40 static int snd_pcm_ioctl_forward_compat(struct snd_pcm_substream *substream, in snd_pcm_ioctl_forward_compat() argument 48 err = snd_pcm_forward(substream, frames); in snd_pcm_ioctl_forward_compat() 86 static int snd_pcm_ioctl_sw_params_compat(struct snd_pcm_substream *substream, in snd_pcm_ioctl_sw_params_compat() argument 110 boundary = recalculate_boundary(substream->runtime); in snd_pcm_ioctl_sw_params_compat() 112 params.silence_size = substream->runtime->boundary; in snd_pcm_ioctl_sw_params_compat() 113 err = snd_pcm_sw_params(substream, ¶ms); in snd_pcm_ioctl_sw_params_compat() [all …]
|
| H A D | pcm_lib.c | 27 #define trace_hwptr(substream, pos, in_interrupt) argument 28 #define trace_xrun(substream) argument 29 #define trace_hw_ptr_error(substream, reason) argument 30 #define trace_applptr(substream, prev, curr) argument 33 static int fill_silence_frames(struct snd_pcm_substream *substream, 64 void snd_pcm_playback_silence(struct snd_pcm_substream *substream, snd_pcm_uframes_t new_hw_ptr) in snd_pcm_playback_silence() argument 66 struct snd_pcm_runtime *runtime = substream->runtime; in snd_pcm_playback_silence() 128 err = fill_silence_frames(substream, ofs, transfer); in snd_pcm_playback_silence() 134 snd_pcm_dma_buffer_sync(substream, SNDRV_DMA_SYNC_DEVICE); in snd_pcm_playback_silence() 138 void snd_pcm_debug_name(struct snd_pcm_substream *substream, in snd_pcm_debug_name() argument [all …]
|
| /linux/sound/soc/sof/ |
| H A D | pcm.c | 32 snd_pcm_period_elapsed(sps->substream); in snd_sof_pcm_period_elapsed_work() 43 void snd_sof_pcm_period_elapsed(struct snd_pcm_substream *substream) in snd_sof_pcm_period_elapsed() argument 45 struct snd_soc_pcm_runtime *rtd = snd_soc_substream_to_rtd(substream); in snd_sof_pcm_period_elapsed() 65 schedule_work(&spcm->stream[substream->stream].period_elapsed_work); in snd_sof_pcm_period_elapsed() 104 struct snd_pcm_substream *substream, in sof_pcm_hw_params() argument 108 struct snd_soc_pcm_runtime *rtd = snd_soc_substream_to_rtd(substream); in sof_pcm_hw_params() 111 struct snd_pcm_runtime *runtime = substream->runtime; in sof_pcm_hw_params() 123 spcm_dbg(spcm, substream->stream, "Entry: hw_params\n"); in sof_pcm_hw_params() 129 if (spcm->prepared[substream->stream] && pcm_ops && pcm_ops->hw_free) { in sof_pcm_hw_params() 130 ret = pcm_ops->hw_free(component, substream); in sof_pcm_hw_params() 177 sof_pcm_stream_free(struct snd_sof_dev * sdev,struct snd_pcm_substream * substream,struct snd_sof_pcm * spcm,int dir,bool free_widget_list) sof_pcm_stream_free() argument 230 struct snd_pcm_substream *substream; sof_pcm_free_all_streams() local 255 sof_pcm_hw_free(struct snd_soc_component * component,struct snd_pcm_substream * substream) sof_pcm_hw_free() argument 280 sof_pcm_prepare(struct snd_soc_component * component,struct snd_pcm_substream * substream) sof_pcm_prepare() argument 327 sof_pcm_trigger(struct snd_soc_component * component,struct snd_pcm_substream * substream,int cmd) sof_pcm_trigger() argument 439 sof_pcm_pointer(struct snd_soc_component * component,struct snd_pcm_substream * substream) sof_pcm_pointer() argument 478 sof_pcm_open(struct snd_soc_component * component,struct snd_pcm_substream * substream) sof_pcm_open() argument 541 sof_pcm_close(struct snd_soc_component * component,struct snd_pcm_substream * substream) sof_pcm_close() argument 727 sof_pcm_ack(struct snd_soc_component * component,struct snd_pcm_substream * substream) sof_pcm_ack() argument 735 sof_pcm_delay(struct snd_soc_component * component,struct snd_pcm_substream * substream) sof_pcm_delay() argument [all...] |
| /linux/sound/arm/ |
| H A D | pxa2xx-pcm-lib.c | 32 int pxa2xx_pcm_hw_params(struct snd_pcm_substream *substream, in pxa2xx_pcm_hw_params() argument 35 struct dma_chan *chan = snd_dmaengine_pcm_get_chan(substream); in pxa2xx_pcm_hw_params() 36 struct snd_soc_pcm_runtime *rtd = snd_soc_substream_to_rtd(substream); in pxa2xx_pcm_hw_params() 41 dma_params = snd_soc_dai_get_dma_data(snd_soc_rtd_to_cpu(rtd, 0), substream); in pxa2xx_pcm_hw_params() 45 ret = snd_hwparams_to_dma_slave_config(substream, params, &config); in pxa2xx_pcm_hw_params() 49 snd_dmaengine_pcm_set_config_from_dai_data(substream, in pxa2xx_pcm_hw_params() 50 snd_soc_dai_get_dma_data(snd_soc_rtd_to_cpu(rtd, 0), substream), in pxa2xx_pcm_hw_params() 61 int pxa2xx_pcm_trigger(struct snd_pcm_substream *substream, int cmd) in pxa2xx_pcm_trigger() argument 63 return snd_dmaengine_pcm_trigger(substream, cmd); in pxa2xx_pcm_trigger() 68 pxa2xx_pcm_pointer(struct snd_pcm_substream *substream) in pxa2xx_pcm_pointer() argument [all …]
|
| /linux/sound/soc/google/ |
| H A D | chv3-i2s.c | 132 struct snd_pcm_substream *substream) in chv3_dma_open() argument 134 struct snd_soc_pcm_runtime *rtd = snd_soc_substream_to_rtd(substream); in chv3_dma_open() 138 snd_soc_set_runtime_hwparams(substream, &chv3_dma_hw); in chv3_dma_open() 140 res = snd_pcm_hw_constraint_pow2(substream->runtime, 0, in chv3_dma_open() 145 if (substream->stream == SNDRV_PCM_STREAM_CAPTURE) in chv3_dma_open() 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 155 struct snd_soc_pcm_runtime *rtd = snd_soc_substream_to_rtd(substream); in chv3_dma_close() 158 if (substream->pstr->stream == SNDRV_PCM_STREAM_CAPTURE) in chv3_dma_close() [all …]
|
| /linux/sound/soc/bcm/ |
| H A D | bcm63xx-pcm-whistler.c | 45 struct snd_pcm_substream *substream, in bcm63xx_pcm_hw_params() argument 49 struct snd_soc_pcm_runtime *rtd = snd_soc_substream_to_rtd(substream); in bcm63xx_pcm_hw_params() 55 snd_soc_dai_set_dma_data(snd_soc_rtd_to_cpu(rtd, 0), substream, dma_desc); in bcm63xx_pcm_hw_params() 61 struct snd_pcm_substream *substream) in bcm63xx_pcm_hw_free() argument 64 struct snd_soc_pcm_runtime *rtd = snd_soc_substream_to_rtd(substream); in bcm63xx_pcm_hw_free() 66 dma_desc = snd_soc_dai_get_dma_data(snd_soc_rtd_to_cpu(rtd, 0), substream); in bcm63xx_pcm_hw_free() 73 struct snd_pcm_substream *substream, int cmd) in bcm63xx_pcm_trigger() argument 80 rtd = snd_soc_substream_to_rtd(substream); in bcm63xx_pcm_trigger() 84 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) { in bcm63xx_pcm_trigger() 142 struct snd_pcm_substream *substream) in bcm63xx_pcm_prepare() argument [all …]
|
| /linux/include/sound/ |
| H A D | pcm.h | 21 #define snd_pcm_substream_chip(substream) ((substream)->private_data) argument 56 int (*open)(struct snd_pcm_substream *substream); 57 int (*close)(struct snd_pcm_substream *substream); 58 int (*ioctl)(struct snd_pcm_substream * substream, 60 int (*hw_params)(struct snd_pcm_substream *substream, 62 int (*hw_free)(struct snd_pcm_substream *substream); 63 int (*prepare)(struct snd_pcm_substream *substream); 64 int (*trigger)(struct snd_pcm_substream *substream, int cmd); 65 int (*sync_stop)(struct snd_pcm_substream *substream); 66 snd_pcm_uframes_t (*pointer)(struct snd_pcm_substream *substream); [all …]
|
| /linux/sound/pci/ctxfi/ |
| H 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() 106 struct ct_atc *atc = snd_pcm_substream_chip(apcm->substream); in ct_atc_pcm_free_substream() 115 static int ct_pcm_playback_open(struct snd_pcm_substream *substream) in ct_pcm_playback_open() argument 117 struct ct_atc *atc = snd_pcm_substream_chip(substream); in ct_pcm_playback_open() 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() 163 static int ct_pcm_playback_close(struct snd_pcm_substream *substream) in ct_pcm_playback_close() argument [all …]
|
| /linux/sound/pci/au88x0/ |
| H A D | au88x0_pcm.c | 126 static int snd_vortex_pcm_open(struct snd_pcm_substream *substream) in snd_vortex_pcm_open() argument 128 vortex_t *vortex = snd_pcm_substream_chip(substream); in snd_vortex_pcm_open() 129 struct snd_pcm_runtime *runtime = substream->runtime; in snd_vortex_pcm_open() 146 if (VORTEX_PCM_TYPE(substream->pcm) != VORTEX_PCM_WT) { in snd_vortex_pcm_open() 148 if (VORTEX_PCM_TYPE(substream->pcm) == VORTEX_PCM_A3D) { in snd_vortex_pcm_open() 152 if (VORTEX_PCM_TYPE(substream->pcm) == VORTEX_PCM_SPDIF) { in snd_vortex_pcm_open() 166 if (VORTEX_PCM_TYPE(substream->pcm) == VORTEX_PCM_ADB in snd_vortex_pcm_open() 167 || VORTEX_PCM_TYPE(substream->pcm) == VORTEX_PCM_I2S) in snd_vortex_pcm_open() 170 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK && in snd_vortex_pcm_open() 172 VORTEX_PCM_TYPE(substream->pcm) == VORTEX_PCM_ADB) { in snd_vortex_pcm_open() [all …]
|
| /linux/sound/soc/fsl/ |
| H A D | imx-pcm-rpmsg.c | 108 static int imx_rpmsg_insert_workqueue(struct snd_pcm_substream *substream, in imx_rpmsg_insert_workqueue() argument 130 info->msg_drop_count[substream->stream]++; in imx_rpmsg_insert_workqueue() 139 struct snd_pcm_substream *substream, in imx_rpmsg_pcm_hw_params() argument 145 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) { in imx_rpmsg_pcm_hw_params() 191 struct snd_pcm_substream *substream) in imx_rpmsg_pcm_pointer() argument 198 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) in imx_rpmsg_pcm_pointer() 204 pos = buffer_tail * snd_pcm_lib_period_bytes(substream); in imx_rpmsg_pcm_pointer() 206 return bytes_to_frames(substream->runtime, pos); in imx_rpmsg_pcm_pointer() 213 struct snd_pcm_substream *substream = stream_timer->substream; in imx_rpmsg_timer_callback() local 217 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) { in imx_rpmsg_timer_callback() [all …]
|
| /linux/drivers/staging/vc04_services/bcm2835-audio/ |
| H 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() 85 static int snd_bcm2835_playback_open_generic(struct snd_pcm_substream *substream, int spdif) in snd_bcm2835_playback_open_generic() argument 87 struct bcm2835_chip *chip = snd_pcm_substream_chip(substream); in snd_bcm2835_playback_open_generic() 88 struct snd_pcm_runtime *runtime = substream->runtime; in snd_bcm2835_playback_open_generic() 94 idx = substream->number; in snd_bcm2835_playback_open_generic() 119 alsa_stream->substream = substream; in snd_bcm2835_playback_open_generic() [all …]
|
| /linux/sound/drivers/pcsp/ |
| H A D | pcsp_lib.c | 33 struct snd_pcm_substream *substream; in pcsp_call_pcm_elapsed() local 34 substream = pcsp_chip.playback_substream; in pcsp_call_pcm_elapsed() 35 if (substream) in pcsp_call_pcm_elapsed() 36 snd_pcm_period_elapsed(substream); in pcsp_call_pcm_elapsed() 49 struct snd_pcm_substream *substream; in pcsp_timer_update() local 59 substream = chip->playback_substream; in pcsp_timer_update() 60 if (!substream) in pcsp_timer_update() 63 runtime = substream->runtime; in pcsp_timer_update() 91 struct snd_pcm_substream *substream; in pcsp_pointer_update() local 97 substream = chip->playback_substream; in pcsp_pointer_update() [all …]
|
| /linux/sound/soc/sof/intel/ |
| H A D | hda-pcm.c | 102 struct snd_pcm_substream *substream, in hda_dsp_pcm_hw_params() argument 106 struct hdac_stream *hstream = substream->runtime->private_data; in hda_dsp_pcm_hw_params() 112 hstream->substream = substream; in hda_dsp_pcm_hw_params() 114 dmab = substream->runtime->dma_buffer_p; in hda_dsp_pcm_hw_params() 155 int hda_dsp_pcm_ack(struct snd_sof_dev *sdev, struct snd_pcm_substream *substream) in hda_dsp_pcm_ack() argument 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() 178 struct snd_pcm_substream *substream, int cmd) in hda_dsp_pcm_trigger() argument 180 struct hdac_stream *hstream = substream->runtime->private_data; in hda_dsp_pcm_trigger() 188 struct snd_pcm_substream *substream) in hda_dsp_pcm_pointer() argument [all …]
|
| /linux/sound/soc/ |
| H A D | soc-generic-dmaengine-pcm.c | 29 struct snd_pcm_substream *substream) in dmaengine_dma_dev() argument 31 if (!pcm->chan[substream->stream]) in dmaengine_dma_dev() 34 return pcm->chan[substream->stream]->device->dev; in dmaengine_dma_dev() 39 * @substream: PCM substream 50 int snd_dmaengine_pcm_prepare_slave_config(struct snd_pcm_substream *substream, in snd_dmaengine_pcm_prepare_slave_config() argument 53 struct snd_soc_pcm_runtime *rtd = snd_soc_substream_to_rtd(substream); in snd_dmaengine_pcm_prepare_slave_config() 63 dma_data = snd_soc_dai_get_dma_data(snd_soc_rtd_to_cpu(rtd, 0), substream); in snd_dmaengine_pcm_prepare_slave_config() 65 ret = snd_hwparams_to_dma_slave_config(substream, params, slave_config); in snd_dmaengine_pcm_prepare_slave_config() 69 snd_dmaengine_pcm_set_config_from_dai_data(substream, dma_dat in snd_dmaengine_pcm_prepare_slave_config() 77 dmaengine_pcm_hw_params(struct snd_soc_component * component,struct snd_pcm_substream * substream,struct snd_pcm_hw_params * params) dmaengine_pcm_hw_params() argument 99 dmaengine_pcm_set_runtime_hwparams(struct snd_soc_component * component,struct snd_pcm_substream * substream) dmaengine_pcm_set_runtime_hwparams() argument 149 dmaengine_pcm_open(struct snd_soc_component * component,struct snd_pcm_substream * substream) dmaengine_pcm_open() argument 163 dmaengine_pcm_close(struct snd_soc_component * component,struct snd_pcm_substream * substream) dmaengine_pcm_close() argument 169 dmaengine_pcm_trigger(struct snd_soc_component * component,struct snd_pcm_substream * substream,int cmd) dmaengine_pcm_trigger() argument 177 dmaengine_pcm_compat_request_channel(struct snd_soc_component * component,struct snd_soc_pcm_runtime * rtd,struct snd_pcm_substream * substream) dmaengine_pcm_compat_request_channel() argument 240 struct snd_pcm_substream *substream = rtd->pcm->streams[i].substream; dmaengine_pcm_new() local 280 dmaengine_pcm_pointer(struct snd_soc_component * component,struct snd_pcm_substream * substream) dmaengine_pcm_pointer() argument 291 dmaengine_copy(struct snd_soc_component * component,struct snd_pcm_substream * substream,int channel,unsigned long hwoff,struct iov_iter * iter,unsigned long bytes) dmaengine_copy() argument [all...] |
| /linux/sound/soc/samsung/ |
| H A D | idma.c | 64 static int idma_enqueue(struct snd_pcm_substream *substream) in idma_enqueue() argument 66 struct snd_pcm_runtime *runtime = substream->runtime; in idma_enqueue() 67 struct idma_ctrl *prtd = substream->runtime->private_data; in idma_enqueue() 71 prtd->token = (void *) substream; in idma_enqueue() 99 static void idma_setcallbk(struct snd_pcm_substream *substream, in idma_setcallbk() argument 102 struct idma_ctrl *prtd = substream->runtime->private_data; in idma_setcallbk() 133 struct snd_pcm_substream *substream = id; in idma_done() local 134 struct idma_ctrl *prtd = substream->runtime->private_data; in idma_done() 137 snd_pcm_period_elapsed(substream); in idma_done() 141 struct snd_pcm_substream *substream, in idma_hw_params() argument [all …]
|
| /linux/sound/soc/intel/avs/ |
| H A D | pcm.c | 41 struct snd_pcm_substream *substream; member 71 snd_pcm_period_elapsed(data->substream); in avs_period_elapsed_work() 74 void avs_period_elapsed(struct snd_pcm_substream *substream) in avs_period_elapsed() argument 76 struct snd_soc_pcm_runtime *rtd = snd_soc_substream_to_rtd(substream); in avs_period_elapsed() 78 struct avs_dma_data *data = snd_soc_dai_get_dma_data(dai, substream); in avs_period_elapsed() 84 static int avs_hw_constraints_init(struct snd_pcm_substream *substream, struct snd_soc_dai *dai) in avs_hw_constraints_init() argument 86 struct snd_pcm_runtime *runtime = substream->runtime; in avs_hw_constraints_init() 95 data = snd_soc_dai_get_dma_data(dai, substream); in avs_hw_constraints_init() 119 static int avs_dai_startup(struct snd_pcm_substream *substream, struct snd_soc_dai *dai) in avs_dai_startup() argument 121 struct snd_soc_pcm_runtime *rtd = snd_soc_substream_to_rtd(substream); in avs_dai_startup() [all …]
|
| /linux/drivers/media/pci/cobalt/ |
| H A D | cobalt-alsa-pcm.c | 101 struct snd_pcm_substream *substream; in cobalt_alsa_announce_pcm_data() local 113 substream = cobsc->capture_pcm_substream; in cobalt_alsa_announce_pcm_data() 114 if (substream == NULL) { in cobalt_alsa_announce_pcm_data() 119 runtime = substream->runtime; in cobalt_alsa_announce_pcm_data() 162 snd_pcm_stream_lock_irqsave(substream, flags); in cobalt_alsa_announce_pcm_data() 178 snd_pcm_stream_unlock_irqrestore(substream, flags); in cobalt_alsa_announce_pcm_data() 181 snd_pcm_period_elapsed(substream); in cobalt_alsa_announce_pcm_data() 206 static int snd_cobalt_pcm_capture_open(struct snd_pcm_substream *substream) in snd_cobalt_pcm_capture_open() argument 208 struct snd_pcm_runtime *runtime = substream->runtime; in snd_cobalt_pcm_capture_open() 209 struct snd_cobalt_card *cobsc = snd_pcm_substream_chip(substream); in snd_cobalt_pcm_capture_open() [all …]
|
| /linux/sound/soc/codecs/ |
| H A D | hda-dai.c | 12 static int hda_codec_dai_startup(struct snd_pcm_substream *substream, struct snd_soc_dai *dai) in hda_codec_dai_startup() argument 20 stream_info = snd_soc_dai_get_dma_data(dai, substream); in hda_codec_dai_startup() 21 pcm = container_of(stream_info, struct hda_pcm, stream[substream->stream]); in hda_codec_dai_startup() 24 codec->core.vendor_id, stream_info, pcm, pcm->name, substream); in hda_codec_dai_startup() 28 ret = stream_info->ops.open(stream_info, codec, substream); in hda_codec_dai_startup() 38 static void hda_codec_dai_shutdown(struct snd_pcm_substream *substream, struct snd_soc_dai *dai) in hda_codec_dai_shutdown() argument 46 stream_info = snd_soc_dai_get_dma_data(dai, substream); in hda_codec_dai_shutdown() 47 pcm = container_of(stream_info, struct hda_pcm, stream[substream->stream]); in hda_codec_dai_shutdown() 50 codec->core.vendor_id, stream_info, pcm, pcm->name, substream); in hda_codec_dai_shutdown() 52 ret = stream_info->ops.close(stream_info, codec, substream); in hda_codec_dai_shutdown() [all …]
|
| /linux/sound/soc/loongson/ |
| H A D | loongson_dma.c | 92 struct snd_pcm_substream *substream, int cmd) in loongson_pcm_trigger() argument 94 struct loongson_runtime_data *prtd = substream->runtime->private_data; in loongson_pcm_trigger() 95 struct device *dev = substream->pcm->card->dev; in loongson_pcm_trigger() 135 struct snd_pcm_substream *substream, in loongson_pcm_hw_params() argument 138 struct snd_pcm_runtime *runtime = substream->runtime; in loongson_pcm_hw_params() 139 struct device *dev = substream->pcm->card->dev; in loongson_pcm_hw_params() 159 snd_pcm_set_runtime_buffer(substream, &substream->dma_buffer); in loongson_pcm_hw_params() 178 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) in loongson_pcm_hw_params() 199 struct snd_pcm_substream *substream) in loongson_pcm_pointer() argument 201 struct snd_pcm_runtime *runtime = substream->runtime; in loongson_pcm_pointer() [all …]
|
| /linux/sound/soc/intel/atom/ |
| H A D | sst-mfld-platform-pcm.c | 123 static void sst_fill_alloc_params(struct snd_pcm_substream *substream, in sst_fill_alloc_params() argument 129 ssize_t buffer_bytes = snd_pcm_lib_buffer_bytes(substream); in sst_fill_alloc_params() 130 u32 buffer_addr = substream->runtime->dma_addr; in sst_fill_alloc_params() 132 channels = substream->runtime->channels; in sst_fill_alloc_params() 133 period_size = substream->runtime->period_size; in sst_fill_alloc_params() 134 periodbytes = samples_to_bytes(substream->runtime, period_size); in sst_fill_alloc_params() 142 static void sst_fill_pcm_params(struct snd_pcm_substream *substream, in sst_fill_pcm_params() argument 145 param->uc.pcm_params.num_chan = (u8) substream->runtime->channels; in sst_fill_pcm_params() 146 param->uc.pcm_params.pcm_wd_sz = substream->runtime->sample_bits; in sst_fill_pcm_params() 147 param->uc.pcm_params.sfreq = substream->runtime->rate; in sst_fill_pcm_params() [all …]
|