/sound/core/ |
D | pcm_memory.c | 51 static int preallocate_pcm_pages(struct snd_pcm_substream *substream, size_t size) in preallocate_pcm_pages() argument 53 struct snd_dma_buffer *dmab = &substream->dma_buffer; in preallocate_pcm_pages() 68 substream->pcm->card->number, substream->pcm->device, in preallocate_pcm_pages() 69 substream->stream ? 'c' : 'p', substream->number, in preallocate_pcm_pages() 70 substream->pcm->name, orig_size); in preallocate_pcm_pages() 77 static void snd_pcm_lib_preallocate_dma_free(struct snd_pcm_substream *substream) in snd_pcm_lib_preallocate_dma_free() argument 79 if (substream->dma_buffer.area == NULL) in snd_pcm_lib_preallocate_dma_free() 81 snd_dma_free_pages(&substream->dma_buffer); in snd_pcm_lib_preallocate_dma_free() 82 substream->dma_buffer.area = NULL; in snd_pcm_lib_preallocate_dma_free() 93 int snd_pcm_lib_preallocate_free(struct snd_pcm_substream *substream) in snd_pcm_lib_preallocate_free() argument [all …]
|
D | pcm_native.c | 63 static int snd_pcm_hw_refine_old_user(struct snd_pcm_substream *substream, 65 static int snd_pcm_hw_params_old_user(struct snd_pcm_substream *substream, 97 void snd_pcm_stream_lock(struct snd_pcm_substream *substream) in snd_pcm_stream_lock() argument 99 if (substream->pcm->nonatomic) { in snd_pcm_stream_lock() 101 mutex_lock(&substream->self_group.mutex); in snd_pcm_stream_lock() 104 spin_lock(&substream->self_group.lock); in snd_pcm_stream_lock() 115 void snd_pcm_stream_unlock(struct snd_pcm_substream *substream) in snd_pcm_stream_unlock() argument 117 if (substream->pcm->nonatomic) { in snd_pcm_stream_unlock() 118 mutex_unlock(&substream->self_group.mutex); in snd_pcm_stream_unlock() 121 spin_unlock(&substream->self_group.lock); in snd_pcm_stream_unlock() [all …]
|
D | pcm.c | 118 struct snd_pcm_substream *substream; in snd_pcm_control_ioctl() local 145 for (substream = pstr->substream; substream; in snd_pcm_control_ioctl() 146 substream = substream->next) in snd_pcm_control_ioctl() 147 if (substream->number == (int)subdevice) in snd_pcm_control_ioctl() 149 if (substream == NULL) { in snd_pcm_control_ioctl() 154 err = snd_pcm_info_user(substream, info); in snd_pcm_control_ioctl() 339 static void snd_pcm_proc_info_read(struct snd_pcm_substream *substream, in snd_pcm_proc_info_read() argument 345 if (! substream) in snd_pcm_proc_info_read() 352 err = snd_pcm_info(substream, info); in snd_pcm_proc_info_read() 375 snd_pcm_proc_info_read(((struct snd_pcm_str *)entry->private_data)->substream, in snd_pcm_stream_proc_info_read() [all …]
|
D | pcm_timer.c | 32 void snd_pcm_timer_resolution_change(struct snd_pcm_substream *substream) in snd_pcm_timer_resolution_change() argument 35 struct snd_pcm_runtime *runtime = substream->runtime; in snd_pcm_timer_resolution_change() 56 pcm_err(substream->pcm, in snd_pcm_timer_resolution_change() 67 struct snd_pcm_substream *substream; in snd_pcm_timer_resolution() local 69 substream = timer->private_data; in snd_pcm_timer_resolution() 70 return substream->runtime ? substream->runtime->timer_resolution : 0; in snd_pcm_timer_resolution() 75 struct snd_pcm_substream *substream; in snd_pcm_timer_start() local 77 substream = snd_timer_chip(timer); in snd_pcm_timer_start() 78 substream->timer_running = 1; in snd_pcm_timer_start() 84 struct snd_pcm_substream *substream; in snd_pcm_timer_stop() local [all …]
|
D | pcm_dmaengine.c | 39 const struct snd_pcm_substream *substream) in substream_to_prtd() argument 41 return substream->runtime->private_data; in substream_to_prtd() 44 struct dma_chan *snd_dmaengine_pcm_get_chan(struct snd_pcm_substream *substream) in snd_dmaengine_pcm_get_chan() argument 46 struct dmaengine_pcm_runtime_data *prtd = substream_to_prtd(substream); in snd_dmaengine_pcm_get_chan() 61 int snd_hwparams_to_dma_slave_config(const struct snd_pcm_substream *substream, in snd_hwparams_to_dma_slave_config() argument 82 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) { in snd_hwparams_to_dma_slave_config() 114 const struct snd_pcm_substream *substream, in snd_dmaengine_pcm_set_config_from_dai_data() argument 118 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) { in snd_dmaengine_pcm_set_config_from_dai_data() 142 struct snd_pcm_substream *substream = arg; in dmaengine_pcm_dma_complete() local 143 struct dmaengine_pcm_runtime_data *prtd = substream_to_prtd(substream); in dmaengine_pcm_dma_complete() [all …]
|
D | rawmidi.c | 88 static inline int snd_rawmidi_ready(struct snd_rawmidi_substream *substream) in snd_rawmidi_ready() argument 90 struct snd_rawmidi_runtime *runtime = substream->runtime; in snd_rawmidi_ready() 94 static inline int snd_rawmidi_ready_append(struct snd_rawmidi_substream *substream, in snd_rawmidi_ready_append() argument 97 struct snd_rawmidi_runtime *runtime = substream->runtime; in snd_rawmidi_ready_append() 99 (!substream->append || runtime->avail >= count); in snd_rawmidi_ready_append() 107 runtime->event(runtime->substream); in snd_rawmidi_input_event_work() 110 static int snd_rawmidi_runtime_create(struct snd_rawmidi_substream *substream) in snd_rawmidi_runtime_create() argument 116 runtime->substream = substream; in snd_rawmidi_runtime_create() 123 if (substream->stream == SNDRV_RAWMIDI_STREAM_INPUT) in snd_rawmidi_runtime_create() 132 substream->runtime = runtime; in snd_rawmidi_runtime_create() [all …]
|
D | pcm_trace.h | 11 TP_PROTO(struct snd_pcm_substream *substream, snd_pcm_uframes_t pos, bool irq), 12 TP_ARGS(substream, pos, irq), 27 __entry->card = (substream)->pcm->card->number; 28 __entry->device = (substream)->pcm->device; 29 __entry->number = (substream)->number; 30 __entry->stream = (substream)->stream; 32 __entry->period_size = (substream)->runtime->period_size; 33 __entry->buffer_size = (substream)->runtime->buffer_size; 34 __entry->old_hw_ptr = (substream)->runtime->status->hw_ptr; 35 __entry->hw_ptr_base = (substream)->runtime->hw_ptr_base; [all …]
|
/sound/arm/ |
D | pxa2xx-pcm-lib.c | 38 int __pxa2xx_pcm_hw_params(struct snd_pcm_substream *substream, in __pxa2xx_pcm_hw_params() argument 41 struct dma_chan *chan = snd_dmaengine_pcm_get_chan(substream); in __pxa2xx_pcm_hw_params() 42 struct snd_soc_pcm_runtime *rtd = substream->private_data; in __pxa2xx_pcm_hw_params() 47 dma_params = snd_soc_dai_get_dma_data(rtd->cpu_dai, substream); in __pxa2xx_pcm_hw_params() 51 ret = snd_hwparams_to_dma_slave_config(substream, params, &config); in __pxa2xx_pcm_hw_params() 55 snd_dmaengine_pcm_set_config_from_dai_data(substream, in __pxa2xx_pcm_hw_params() 56 snd_soc_dai_get_dma_data(rtd->cpu_dai, substream), in __pxa2xx_pcm_hw_params() 63 snd_pcm_set_runtime_buffer(substream, &substream->dma_buffer); in __pxa2xx_pcm_hw_params() 69 int __pxa2xx_pcm_hw_free(struct snd_pcm_substream *substream) in __pxa2xx_pcm_hw_free() argument 71 snd_pcm_set_runtime_buffer(substream, NULL); in __pxa2xx_pcm_hw_free() [all …]
|
/sound/firewire/dice/ |
D | dice-pcm.c | 67 struct snd_pcm_substream *substream) in init_hw_info() argument 69 struct snd_pcm_runtime *runtime = substream->runtime; in init_hw_info() 84 if (substream->stream == SNDRV_PCM_STREAM_CAPTURE) { in init_hw_info() 87 stream = &dice->tx_stream[substream->pcm->device]; in init_hw_info() 93 stream = &dice->rx_stream[substream->pcm->device]; in init_hw_info() 102 if (substream->pcm->device >= count) in init_hw_info() 106 err = limit_channels_and_rates(dice, substream->runtime, dir, in init_hw_info() 107 substream->pcm->device, size); in init_hw_info() 115 static int pcm_open(struct snd_pcm_substream *substream) in pcm_open() argument 117 struct snd_dice *dice = substream->private_data; in pcm_open() [all …]
|
/sound/soc/fsl/ |
D | imx-pcm-fiq.c | 44 struct snd_pcm_substream *substream; member 53 struct snd_pcm_substream *substream = iprtd->substream; in snd_hrtimer_callback() local 61 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) in snd_hrtimer_callback() 66 snd_pcm_period_elapsed(substream); in snd_hrtimer_callback() 77 static int snd_imx_pcm_hw_params(struct snd_pcm_substream *substream, in snd_imx_pcm_hw_params() argument 80 struct snd_pcm_runtime *runtime = substream->runtime; in snd_imx_pcm_hw_params() 88 snd_pcm_set_runtime_buffer(substream, &substream->dma_buffer); in snd_imx_pcm_hw_params() 93 static int snd_imx_pcm_prepare(struct snd_pcm_substream *substream) in snd_imx_pcm_prepare() argument 95 struct snd_pcm_runtime *runtime = substream->runtime; in snd_imx_pcm_prepare() 100 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) in snd_imx_pcm_prepare() [all …]
|
D | fsl_asrc_dma.c | 50 struct snd_pcm_substream *substream = arg; in fsl_asrc_dma_complete() local 51 struct snd_pcm_runtime *runtime = substream->runtime; in fsl_asrc_dma_complete() 54 pair->pos += snd_pcm_lib_period_bytes(substream); in fsl_asrc_dma_complete() 55 if (pair->pos >= snd_pcm_lib_buffer_bytes(substream)) in fsl_asrc_dma_complete() 58 snd_pcm_period_elapsed(substream); in fsl_asrc_dma_complete() 61 static int fsl_asrc_dma_prepare_and_submit(struct snd_pcm_substream *substream) in fsl_asrc_dma_prepare_and_submit() argument 63 u8 dir = substream->stream == SNDRV_PCM_STREAM_PLAYBACK ? OUT : IN; in fsl_asrc_dma_prepare_and_submit() 64 struct snd_soc_pcm_runtime *rtd = substream->private_data; in fsl_asrc_dma_prepare_and_submit() 65 struct snd_pcm_runtime *runtime = substream->runtime; in fsl_asrc_dma_prepare_and_submit() 71 if (!substream->runtime->no_period_wakeup) in fsl_asrc_dma_prepare_and_submit() [all …]
|
/sound/soc/omap/ |
D | omap-pcm.c | 75 static int omap_pcm_hw_params(struct snd_pcm_substream *substream, in omap_pcm_hw_params() argument 78 struct snd_pcm_runtime *runtime = substream->runtime; in omap_pcm_hw_params() 79 struct snd_soc_pcm_runtime *rtd = substream->private_data; in omap_pcm_hw_params() 87 dma_data = snd_soc_dai_get_dma_data(rtd->cpu_dai, substream); in omap_pcm_hw_params() 94 snd_pcm_set_runtime_buffer(substream, &substream->dma_buffer); in omap_pcm_hw_params() 97 chan = snd_dmaengine_pcm_get_chan(substream); in omap_pcm_hw_params() 102 err = snd_hwparams_to_dma_slave_config(substream, params, &config); in omap_pcm_hw_params() 106 snd_dmaengine_pcm_set_config_from_dai_data(substream, in omap_pcm_hw_params() 107 snd_soc_dai_get_dma_data(rtd->cpu_dai, substream), in omap_pcm_hw_params() 113 static int omap_pcm_hw_free(struct snd_pcm_substream *substream) in omap_pcm_hw_free() argument [all …]
|
/sound/firewire/digi00x/ |
D | digi00x-pcm.c | 59 struct snd_pcm_substream *substream) in pcm_init_hw_params() argument 85 substream->runtime->hw = hardware; in pcm_init_hw_params() 87 if (substream->stream == SNDRV_PCM_STREAM_CAPTURE) { in pcm_init_hw_params() 88 substream->runtime->hw.formats = SNDRV_PCM_FMTBIT_S32; in pcm_init_hw_params() 91 substream->runtime->hw.formats = SNDRV_PCM_FMTBIT_S16 | in pcm_init_hw_params() 96 err = snd_pcm_hw_rule_add(substream->runtime, 0, in pcm_init_hw_params() 103 err = snd_pcm_hw_rule_add(substream->runtime, 0, in pcm_init_hw_params() 110 return amdtp_dot_add_pcm_hw_constraints(s, substream->runtime); in pcm_init_hw_params() 113 static int pcm_open(struct snd_pcm_substream *substream) in pcm_open() argument 115 struct snd_dg00x *dg00x = substream->private_data; in pcm_open() [all …]
|
/sound/soc/blackfin/ |
D | bf5xx-i2s-pcm.c | 63 static int bf5xx_pcm_hw_params(struct snd_pcm_substream *substream, in bf5xx_pcm_hw_params() argument 66 struct snd_soc_pcm_runtime *rtd = substream->private_data; in bf5xx_pcm_hw_params() 70 dma_data = snd_soc_dai_get_dma_data(rtd->cpu_dai, substream); in bf5xx_pcm_hw_params() 75 return snd_pcm_lib_malloc_pages(substream, buffer_size); in bf5xx_pcm_hw_params() 78 static int bf5xx_pcm_hw_free(struct snd_pcm_substream *substream) in bf5xx_pcm_hw_free() argument 80 snd_pcm_lib_free_pages(substream); in bf5xx_pcm_hw_free() 85 static int bf5xx_pcm_prepare(struct snd_pcm_substream *substream) in bf5xx_pcm_prepare() argument 87 struct snd_soc_pcm_runtime *rtd = substream->private_data; in bf5xx_pcm_prepare() 88 struct snd_pcm_runtime *runtime = substream->runtime; in bf5xx_pcm_prepare() 93 dma_data = snd_soc_dai_get_dma_data(rtd->cpu_dai, substream); in bf5xx_pcm_prepare() [all …]
|
D | bf5xx-ac97-pcm.c | 55 static void bf5xx_mmap_copy(struct snd_pcm_substream *substream, in bf5xx_mmap_copy() argument 58 struct snd_pcm_runtime *runtime = substream->runtime; in bf5xx_mmap_copy() 61 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) { in bf5xx_mmap_copy() 118 static int bf5xx_pcm_hw_params(struct snd_pcm_substream *substream, in bf5xx_pcm_hw_params() argument 124 snd_pcm_lib_malloc_pages(substream, size); in bf5xx_pcm_hw_params() 129 static int bf5xx_pcm_hw_free(struct snd_pcm_substream *substream) in bf5xx_pcm_hw_free() argument 132 struct snd_pcm_runtime *runtime = substream->runtime; in bf5xx_pcm_hw_free() 135 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) { in bf5xx_pcm_hw_free() 145 snd_pcm_lib_free_pages(substream); in bf5xx_pcm_hw_free() 149 static int bf5xx_pcm_prepare(struct snd_pcm_substream *substream) in bf5xx_pcm_prepare() argument [all …]
|
/sound/soc/nuc900/ |
D | nuc900-pcm.c | 42 static int nuc900_dma_hw_params(struct snd_pcm_substream *substream, in nuc900_dma_hw_params() argument 45 return snd_pcm_lib_malloc_pages(substream, params_buffer_bytes(params)); in nuc900_dma_hw_params() 48 static void nuc900_update_dma_register(struct snd_pcm_substream *substream) in nuc900_update_dma_register() argument 50 struct snd_pcm_runtime *runtime = substream->runtime; in nuc900_update_dma_register() 54 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) { in nuc900_update_dma_register() 66 static void nuc900_dma_start(struct snd_pcm_substream *substream) in nuc900_dma_start() argument 68 struct snd_pcm_runtime *runtime = substream->runtime; in nuc900_dma_start() 77 static void nuc900_dma_stop(struct snd_pcm_substream *substream) in nuc900_dma_stop() argument 79 struct snd_pcm_runtime *runtime = substream->runtime; in nuc900_dma_stop() 90 struct snd_pcm_substream *substream = dev_id; in nuc900_dma_interrupt() local [all …]
|
/sound/firewire/tascam/ |
D | tascam-pcm.c | 22 struct snd_pcm_substream *substream) in pcm_init_hw_params() argument 40 struct snd_pcm_runtime *runtime = substream->runtime; in pcm_init_hw_params() 46 if (substream->stream == SNDRV_PCM_STREAM_CAPTURE) { in pcm_init_hw_params() 68 static int pcm_open(struct snd_pcm_substream *substream) in pcm_open() argument 70 struct snd_tscm *tscm = substream->private_data; in pcm_open() 79 err = pcm_init_hw_params(tscm, substream); in pcm_open() 90 substream->runtime->hw.rate_min = rate; in pcm_open() 91 substream->runtime->hw.rate_max = rate; in pcm_open() 94 snd_pcm_set_sync(substream); in pcm_open() 102 static int pcm_close(struct snd_pcm_substream *substream) in pcm_close() argument [all …]
|
/sound/soc/bcm/ |
D | cygnus-pcm.c | 208 struct snd_pcm_substream *substream) in cygnus_dai_get_dma_data() argument 210 struct snd_soc_pcm_runtime *soc_runtime = substream->private_data; in cygnus_dai_get_dma_data() 212 return snd_soc_dai_get_dma_data(soc_runtime->cpu_dai, substream); in cygnus_dai_get_dma_data() 256 static int configure_ringbuf_regs(struct snd_pcm_substream *substream) in configure_ringbuf_regs() argument 262 aio = cygnus_dai_get_dma_data(substream); in configure_ringbuf_regs() 265 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) { in configure_ringbuf_regs() 305 static struct ringbuf_regs *get_ringbuf(struct snd_pcm_substream *substream) in get_ringbuf() argument 310 aio = cygnus_dai_get_dma_data(substream); in get_ringbuf() 312 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) in get_ringbuf() 320 static void enable_intr(struct snd_pcm_substream *substream) in enable_intr() argument [all …]
|
/sound/pci/au88x0/ |
D | au88x0_pcm.c | 138 static int snd_vortex_pcm_open(struct snd_pcm_substream *substream) in snd_vortex_pcm_open() argument 140 vortex_t *vortex = snd_pcm_substream_chip(substream); in snd_vortex_pcm_open() 141 struct snd_pcm_runtime *runtime = substream->runtime; in snd_vortex_pcm_open() 158 if (VORTEX_PCM_TYPE(substream->pcm) != VORTEX_PCM_WT) { in snd_vortex_pcm_open() 160 if (VORTEX_PCM_TYPE(substream->pcm) == VORTEX_PCM_A3D) { in snd_vortex_pcm_open() 164 if (VORTEX_PCM_TYPE(substream->pcm) == VORTEX_PCM_SPDIF) { in snd_vortex_pcm_open() 178 if (VORTEX_PCM_TYPE(substream->pcm) == VORTEX_PCM_ADB in snd_vortex_pcm_open() 179 || VORTEX_PCM_TYPE(substream->pcm) == VORTEX_PCM_I2S) in snd_vortex_pcm_open() 182 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK && in snd_vortex_pcm_open() 184 VORTEX_PCM_TYPE(substream->pcm) == VORTEX_PCM_ADB) { in snd_vortex_pcm_open() [all …]
|
/sound/drivers/pcsp/ |
D | pcsp_lib.c | 31 struct snd_pcm_substream *substream; in pcsp_call_pcm_elapsed() local 32 substream = pcsp_chip.playback_substream; in pcsp_call_pcm_elapsed() 33 if (substream) in pcsp_call_pcm_elapsed() 34 snd_pcm_period_elapsed(substream); in pcsp_call_pcm_elapsed() 47 struct snd_pcm_substream *substream; in pcsp_timer_update() local 57 substream = chip->playback_substream; in pcsp_timer_update() 58 if (!substream) in pcsp_timer_update() 61 runtime = substream->runtime; in pcsp_timer_update() 89 struct snd_pcm_substream *substream; in pcsp_pointer_update() local 95 substream = chip->playback_substream; in pcsp_pointer_update() [all …]
|
/sound/core/oss/ |
D | pcm_oss.c | 565 static int snd_pcm_oss_plugin_clear(struct snd_pcm_substream *substream) in snd_pcm_oss_plugin_clear() argument 567 struct snd_pcm_runtime *runtime = substream->runtime; in snd_pcm_oss_plugin_clear() 611 static long snd_pcm_oss_bytes(struct snd_pcm_substream *substream, long frames) in snd_pcm_oss_bytes() argument 613 struct snd_pcm_runtime *runtime = substream->runtime; in snd_pcm_oss_bytes() 614 long buffer_size = snd_pcm_lib_buffer_bytes(substream); in snd_pcm_oss_bytes() 628 static long snd_pcm_alsa_frames(struct snd_pcm_substream *substream, long bytes) in snd_pcm_alsa_frames() argument 630 struct snd_pcm_runtime *runtime = substream->runtime; in snd_pcm_alsa_frames() 631 long buffer_size = snd_pcm_lib_buffer_bytes(substream); in snd_pcm_alsa_frames() 707 static int snd_pcm_oss_period_size(struct snd_pcm_substream *substream, in snd_pcm_oss_period_size() argument 714 struct snd_pcm_runtime *runtime = substream->runtime; in snd_pcm_oss_period_size() [all …]
|
/sound/isa/wavefront/ |
D | wavefront_midi.c | 93 get_wavefront_midi (struct snd_rawmidi_substream *substream) in get_wavefront_midi() argument 99 if (substream == NULL || substream->rmidi == NULL) in get_wavefront_midi() 102 card = substream->rmidi->card; in get_wavefront_midi() 232 static int snd_wavefront_midi_input_open(struct snd_rawmidi_substream *substream) in snd_wavefront_midi_input_open() argument 238 if (snd_BUG_ON(!substream || !substream->rmidi)) in snd_wavefront_midi_input_open() 240 if (snd_BUG_ON(!substream->rmidi->private_data)) in snd_wavefront_midi_input_open() 243 mpu = *((snd_wavefront_mpu_id *) substream->rmidi->private_data); in snd_wavefront_midi_input_open() 245 if ((midi = get_wavefront_midi (substream)) == NULL) in snd_wavefront_midi_input_open() 250 midi->substream_input[mpu] = substream; in snd_wavefront_midi_input_open() 256 static int snd_wavefront_midi_output_open(struct snd_rawmidi_substream *substream) in snd_wavefront_midi_output_open() argument [all …]
|
/sound/soc/kirkwood/ |
D | kirkwood-dma.c | 105 static int kirkwood_dma_open(struct snd_pcm_substream *substream) in kirkwood_dma_open() argument 108 struct snd_pcm_runtime *runtime = substream->runtime; in kirkwood_dma_open() 109 struct kirkwood_dma_data *priv = kirkwood_priv(substream); in kirkwood_dma_open() 113 snd_soc_set_runtime_hwparams(substream, &kirkwood_dma_snd_hw); in kirkwood_dma_open() 129 err = snd_pcm_hw_constraint_step(substream->runtime, 0, in kirkwood_dma_open() 149 addr = substream->dma_buffer.addr; in kirkwood_dma_open() 150 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) { in kirkwood_dma_open() 153 priv->substream_play = substream; in kirkwood_dma_open() 159 priv->substream_rec = substream; in kirkwood_dma_open() 167 static int kirkwood_dma_close(struct snd_pcm_substream *substream) in kirkwood_dma_close() argument [all …]
|
/sound/pci/ctxfi/ |
D | ctpcm.c | 101 if (!apcm->substream) in ct_atc_pcm_interrupt() 104 snd_pcm_period_elapsed(apcm->substream); in ct_atc_pcm_interrupt() 110 struct ct_atc *atc = snd_pcm_substream_chip(apcm->substream); in ct_atc_pcm_free_substream() 119 static int ct_pcm_playback_open(struct snd_pcm_substream *substream) in ct_pcm_playback_open() argument 121 struct ct_atc *atc = snd_pcm_substream_chip(substream); in ct_pcm_playback_open() 122 struct snd_pcm_runtime *runtime = substream->runtime; in ct_pcm_playback_open() 130 apcm->substream = substream; in ct_pcm_playback_open() 132 if (IEC958 == substream->pcm->device) { in ct_pcm_playback_open() 137 if (FRONT == substream->pcm->device) in ct_pcm_playback_open() 166 static int ct_pcm_playback_close(struct snd_pcm_substream *substream) in ct_pcm_playback_close() argument [all …]
|
/sound/pci/emu10k1/ |
D | emupcm.c | 44 if (epcm->substream == NULL) in snd_emu10k1_pcm_interrupt() 49 epcm->substream->runtime->hw->pointer(emu, epcm->substream), in snd_emu10k1_pcm_interrupt() 50 snd_pcm_lib_period_bytes(epcm->substream), in snd_emu10k1_pcm_interrupt() 51 snd_pcm_lib_buffer_bytes(epcm->substream)); in snd_emu10k1_pcm_interrupt() 53 snd_pcm_period_elapsed(epcm->substream); in snd_emu10k1_pcm_interrupt() 92 static snd_pcm_uframes_t snd_emu10k1_efx_playback_pointer(struct snd_pcm_substream *substream) in snd_emu10k1_efx_playback_pointer() argument 94 struct snd_emu10k1 *emu = snd_pcm_substream_chip(substream); in snd_emu10k1_efx_playback_pointer() 95 struct snd_pcm_runtime *runtime = substream->runtime; in snd_emu10k1_efx_playback_pointer() 289 struct snd_pcm_substream *substream = evoice->epcm->substream; in snd_emu10k1_pcm_init_voice() local 290 struct snd_pcm_runtime *runtime = substream->runtime; in snd_emu10k1_pcm_init_voice() [all …]
|