Home
last modified time | relevance | path

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

12345678910>>...25

/linux/sound/core/
H A Dpcm_memory.c98 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 Dpcm_native.c37 #define trace_hw_mask_param(substream, type, index, prev, curr) argument
38 #define trace_hw_interval_param(substream, type, index, prev, curr) argument
65 static int snd_pcm_hw_refine_old_user(struct snd_pcm_substream *substream,
67 static int snd_pcm_hw_params_old_user(struct snd_pcm_substream *substream,
114 void snd_pcm_stream_lock(struct snd_pcm_substream *substream) in snd_pcm_stream_lock() argument
116 snd_pcm_group_lock(&substream->self_group, substream->pcm->nonatomic); in snd_pcm_stream_lock()
126 void snd_pcm_stream_unlock(struct snd_pcm_substream *substream) in snd_pcm_stream_unlock() argument
128 snd_pcm_group_unlock(&substream->self_group, substream->pcm->nonatomic); in snd_pcm_stream_unlock()
140 void snd_pcm_stream_lock_irq(struct snd_pcm_substream *substream) in snd_pcm_stream_lock_irq() argument
142 snd_pcm_group_lock_irq(&substream->self_group, in snd_pcm_stream_lock_irq()
[all …]
H A Drawmidi.c106 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()
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->lock); in snd_rawmidi_buffer_ref_sync()
146 while (substream->runtime->buffer_ref) { in snd_rawmidi_buffer_ref_sync()
[all …]
H A Dpcm.c107 struct snd_pcm_substream *substream; in snd_pcm_control_ioctl() local
128 for (substream = pstr->substream; substream; in snd_pcm_control_ioctl()
129 substream = substream->next) in snd_pcm_control_ioctl()
130 if (substream->number == (int)subdevice) in snd_pcm_control_ioctl()
132 if (substream == NULL) in snd_pcm_control_ioctl()
135 return snd_pcm_info_user(substream, info); in snd_pcm_control_ioctl()
328 static void snd_pcm_proc_info_read(struct snd_pcm_substream *substream, in snd_pcm_proc_info_read() argument
333 if (! substream) in snd_pcm_proc_info_read()
341 err = snd_pcm_info(substream, info); in snd_pcm_proc_info_read()
362 snd_pcm_proc_info_read(((struct snd_pcm_str *)entry->private_data)->substream, in snd_pcm_stream_proc_info_read()
[all …]
H A Dpcm_timer.c19 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 Dpcm_trace.h12 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 Dpcm_dmaengine.c30 const struct snd_pcm_substream *substream) in substream_to_prtd() argument
32 return substream->runtime->private_data; in substream_to_prtd()
35 struct dma_chan *snd_dmaengine_pcm_get_chan(struct snd_pcm_substream *substream) in snd_dmaengine_pcm_get_chan() argument
37 struct dmaengine_pcm_runtime_data *prtd = substream_to_prtd(substream); in snd_dmaengine_pcm_get_chan()
54 int snd_hwparams_to_dma_slave_config(const struct snd_pcm_substream *substream, in snd_hwparams_to_dma_slave_config() argument
75 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) { in snd_hwparams_to_dma_slave_config()
107 const struct snd_pcm_substream *substream, in snd_dmaengine_pcm_set_config_from_dai_data() argument
111 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) { in snd_dmaengine_pcm_set_config_from_dai_data()
139 struct snd_pcm_substream *substream = arg; in dmaengine_pcm_dma_complete() local
140 struct dmaengine_pcm_runtime_data *prtd = substream_to_prtd(substream); in dmaengine_pcm_dma_complete()
[all …]
H A Dpcm_local.h26 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 Dpcm_compat.c12 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, &params); in snd_pcm_ioctl_sw_params_compat()
[all …]
/linux/sound/soc/sof/
H A Dpcm.c32 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()
117 struct snd_pcm_substream *substream, in sof_pcm_hw_params()
121 struct snd_soc_pcm_runtime *rtd = snd_soc_substream_to_rtd(substream); in sof_pcm_hw_params()
125 struct snd_pcm_runtime *runtime = substream->runtime; in sof_pcm_hw_params()
138 spcm_dbg(spcm, substream->stream, "Entry: hw_params\n"); in sof_pcm_hw_params()
154 if (spcm->prepared[substream->stream] && pcm_ops && pcm_ops->hw_free) { in sof_pcm_hw_params()
155 ret = pcm_ops->hw_free(component, substream); in sof_pcm_hw_params()
104 sof_pcm_hw_params(struct snd_soc_component * component,struct snd_pcm_substream * substream,struct snd_pcm_hw_params * params) sof_pcm_hw_params() argument
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 Dpxa2xx-pcm-lib.c32 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 Dchv3-i2s.c132 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 Dbcm63xx-pcm-whistler.c45 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 Dpcm.h21 #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/core/oss/
H A Dpcm_oss.c533 static int snd_pcm_oss_plugin_clear(struct snd_pcm_substream *substream) in snd_pcm_oss_plugin_clear() argument
535 struct snd_pcm_runtime *runtime = substream->runtime; in snd_pcm_oss_plugin_clear()
579 static long snd_pcm_oss_bytes(struct snd_pcm_substream *substream, long frames) in snd_pcm_oss_bytes() argument
581 struct snd_pcm_runtime *runtime = substream->runtime; in snd_pcm_oss_bytes()
582 long buffer_size = snd_pcm_lib_buffer_bytes(substream); in snd_pcm_oss_bytes()
596 static long snd_pcm_alsa_frames(struct snd_pcm_substream *substream, long bytes) in snd_pcm_alsa_frames() argument
598 struct snd_pcm_runtime *runtime = substream->runtime; in snd_pcm_alsa_frames()
599 long buffer_size = snd_pcm_lib_buffer_bytes(substream); in snd_pcm_alsa_frames()
675 static int snd_pcm_oss_period_size(struct snd_pcm_substream *substream, in snd_pcm_oss_period_size() argument
683 struct snd_pcm_runtime *runtime = substream->runtime; in snd_pcm_oss_period_size()
[all …]
/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()
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 Dau88x0_pcm.c126 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 Dimx-pcm-rpmsg.c108 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 …]
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
56 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) in snd_hrtimer_callback()
61 snd_pcm_period_elapsed(substream); in snd_hrtimer_callback()
73 struct snd_pcm_substream *substream, in snd_imx_pcm_hw_params() argument
76 struct snd_pcm_runtime *runtime = substream->runtime; in snd_imx_pcm_hw_params()
89 struct snd_pcm_substream *substream) in snd_imx_pcm_prepare() argument
91 struct snd_pcm_runtime *runtime = substream->runtime; in snd_imx_pcm_prepare()
96 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) in snd_imx_pcm_prepare()
109 struct snd_pcm_substream *substream, int cmd) in snd_imx_pcm_trigger() argument
[all …]
/linux/sound/drivers/pcsp/
H A Dpcsp_lib.c33 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/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()
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/soc/
H A Dsoc-generic-dmaengine-pcm.c29 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()
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_data, in snd_dmaengine_pcm_prepare_slave_config()
77 struct snd_pcm_substream *substream, in dmaengine_pcm_hw_params() argument
81 struct dma_chan *chan = snd_dmaengine_pcm_get_chan(substream); in dmaengine_pcm_hw_params()
[all …]
/linux/sound/soc/sof/intel/
H A Dhda-pcm.c102 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/samsung/
H A Didma.c64 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/pci/emu10k1/
H A Demupcm.c28 if (epcm->substream == NULL) in snd_emu10k1_pcm_interrupt()
33 epcm->substream->runtime->hw->pointer(emu, epcm->substream), in snd_emu10k1_pcm_interrupt()
34 snd_pcm_lib_period_bytes(epcm->substream), in snd_emu10k1_pcm_interrupt()
35 snd_pcm_lib_buffer_bytes(epcm->substream)); in snd_emu10k1_pcm_interrupt()
37 snd_pcm_period_elapsed(epcm->substream); in snd_emu10k1_pcm_interrupt()
348 static int snd_emu10k1_playback_hw_params(struct snd_pcm_substream *substream, in snd_emu10k1_playback_hw_params() argument
351 struct snd_emu10k1 *emu = snd_pcm_substream_chip(substream); in snd_emu10k1_playback_hw_params()
352 struct snd_pcm_runtime *runtime = substream->runtime; in snd_emu10k1_playback_hw_params()
374 err = snd_pcm_lib_malloc_pages(substream, alloc_size); in snd_emu10k1_playback_hw_params()
383 epcm->memblk = snd_emu10k1_alloc_pages(emu, substream); in snd_emu10k1_playback_hw_params()
[all …]

12345678910>>...25