/openbmc/linux/sound/core/ |
H A D | pcm_memory.c | 103 static int preallocate_pcm_pages(struct snd_pcm_substream *substream, in preallocate_pcm_pages() argument 106 struct snd_dma_buffer *dmab = &substream->dma_buffer; in preallocate_pcm_pages() 107 struct snd_card *card = substream->pcm->card; in preallocate_pcm_pages() 113 substream->stream, size, dmab); in preallocate_pcm_pages() 122 substream->pcm->card->number, substream->pcm->device, in preallocate_pcm_pages() 123 substream->stream ? 'c' : 'p', substream->number, in preallocate_pcm_pages() 124 substream->pcm->name, orig_size); in preallocate_pcm_pages() 134 void snd_pcm_lib_preallocate_free(struct snd_pcm_substream *substream) in snd_pcm_lib_preallocate_free() argument 136 do_free_pages(substream->pcm->card, &substream->dma_buffer); in snd_pcm_lib_preallocate_free() 147 struct snd_pcm_substream *substream; in snd_pcm_lib_preallocate_free_for_all() local [all …]
|
H A D | pcm_native.c | 36 #define trace_hw_mask_param(substream, type, index, prev, curr) argument 37 #define trace_hw_interval_param(substream, type, index, prev, curr) argument 64 static int snd_pcm_hw_refine_old_user(struct snd_pcm_substream *substream, 66 static int snd_pcm_hw_params_old_user(struct snd_pcm_substream *substream, 108 void snd_pcm_stream_lock(struct snd_pcm_substream *substream) in snd_pcm_stream_lock() argument 110 snd_pcm_group_lock(&substream->self_group, substream->pcm->nonatomic); in snd_pcm_stream_lock() 120 void snd_pcm_stream_unlock(struct snd_pcm_substream *substream) in snd_pcm_stream_unlock() argument 122 snd_pcm_group_unlock(&substream->self_group, substream->pcm->nonatomic); in snd_pcm_stream_unlock() 134 void snd_pcm_stream_lock_irq(struct snd_pcm_substream *substream) in snd_pcm_stream_lock_irq() argument 136 snd_pcm_group_lock_irq(&substream->self_group, in snd_pcm_stream_lock_irq() [all …]
|
H A D | rawmidi.c | 106 static bool snd_rawmidi_ready(struct snd_rawmidi_substream *substream) in snd_rawmidi_ready() argument 111 spin_lock_irqsave(&substream->lock, flags); in snd_rawmidi_ready() 112 ready = __snd_rawmidi_ready(substream->runtime); in snd_rawmidi_ready() 113 spin_unlock_irqrestore(&substream->lock, flags); in snd_rawmidi_ready() 117 static inline int snd_rawmidi_ready_append(struct snd_rawmidi_substream *substream, in snd_rawmidi_ready_append() argument 120 struct snd_rawmidi_runtime *runtime = substream->runtime; in snd_rawmidi_ready_append() 123 (!substream->append || runtime->avail >= count); in snd_rawmidi_ready_append() 132 runtime->event(runtime->substream); in snd_rawmidi_input_event_work() 146 static void snd_rawmidi_buffer_ref_sync(struct snd_rawmidi_substream *substream) in snd_rawmidi_buffer_ref_sync() argument 150 spin_lock_irq(&substream->lock); in snd_rawmidi_buffer_ref_sync() [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.c | 108 struct snd_pcm_substream *substream; in snd_pcm_control_ioctl() local 136 for (substream = pstr->substream; substream; in snd_pcm_control_ioctl() 137 substream = substream->next) in snd_pcm_control_ioctl() 138 if (substream->number == (int)subdevice) in snd_pcm_control_ioctl() 140 if (substream == NULL) { in snd_pcm_control_ioctl() 145 err = snd_pcm_info_user(substream, info); in snd_pcm_control_ioctl() 333 static void snd_pcm_proc_info_read(struct snd_pcm_substream *substream, in snd_pcm_proc_info_read() argument 339 if (! substream) in snd_pcm_proc_info_read() 346 err = snd_pcm_info(substream, info); in snd_pcm_proc_info_read() 369 snd_pcm_proc_info_read(((struct snd_pcm_str *)entry->private_data)->substream, in snd_pcm_stream_proc_info_read() [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)->runtime->hw_ptr_base; [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_dmaengine.c | 30 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() 137 struct snd_pcm_substream *substream = arg; in dmaengine_pcm_dma_complete() local 138 struct dmaengine_pcm_runtime_data *prtd = substream_to_prtd(substream); in dmaengine_pcm_dma_complete() [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 …]
|
/openbmc/linux/sound/soc/sof/ |
H A D | pcm.c | 25 struct snd_pcm_substream *substream, in create_page_table() argument 28 struct snd_soc_pcm_runtime *rtd = asoc_substream_to_rtd(substream); in create_page_table() 30 struct snd_dma_buffer *dmab = snd_pcm_get_dma_buf(substream); in create_page_table() 31 int stream = substream->stream; in create_page_table() 50 snd_pcm_period_elapsed(sps->substream); in snd_sof_pcm_period_elapsed_work() 61 void snd_sof_pcm_period_elapsed(struct snd_pcm_substream *substream) in snd_sof_pcm_period_elapsed() argument 63 struct snd_soc_pcm_runtime *rtd = asoc_substream_to_rtd(substream); in snd_sof_pcm_period_elapsed() 83 schedule_work(&spcm->stream[substream->stream].period_elapsed_work); in snd_sof_pcm_period_elapsed() 123 struct snd_pcm_substream *substream, in sof_pcm_hw_params() argument 127 struct snd_soc_pcm_runtime *rtd = asoc_substream_to_rtd(substream); in sof_pcm_hw_params() [all …]
|
/openbmc/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 = substream->private_data; in pxa2xx_pcm_hw_params() 41 dma_params = snd_soc_dai_get_dma_data(asoc_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(asoc_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 …]
|
/openbmc/linux/sound/firewire/fireface/ |
H A D | ff-midi.c | 10 static int midi_capture_open(struct snd_rawmidi_substream *substream) in midi_capture_open() argument 16 static int midi_playback_open(struct snd_rawmidi_substream *substream) in midi_playback_open() argument 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() 29 static int midi_capture_close(struct snd_rawmidi_substream *substream) in midi_capture_close() argument 35 static int midi_playback_close(struct snd_rawmidi_substream *substream) in midi_playback_close() argument 37 struct snd_ff *ff = substream->rmidi->private_data; in midi_playback_close() 39 cancel_work_sync(&ff->rx_midi_work[substream->number]); in midi_playback_close() [all …]
|
/openbmc/linux/sound/firewire/dice/ |
H A D | dice-pcm.c | 14 struct snd_pcm_substream *substream = rule->private; in dice_rate_constraint() local 15 struct snd_dice *dice = substream->private_data; in dice_rate_constraint() 16 unsigned int index = substream->pcm->device; in dice_rate_constraint() 29 if (substream->stream == SNDRV_PCM_STREAM_CAPTURE) in dice_rate_constraint() 52 struct snd_pcm_substream *substream = rule->private; in dice_channels_constraint() local 53 struct snd_dice *dice = substream->private_data; in dice_channels_constraint() 54 unsigned int index = substream->pcm->device; in dice_channels_constraint() 67 if (substream->stream == SNDRV_PCM_STREAM_CAPTURE) in dice_channels_constraint() 126 struct snd_pcm_substream *substream) in init_hw_info() argument 128 struct snd_pcm_runtime *runtime = substream->runtime; in init_hw_info() [all …]
|
/openbmc/linux/sound/soc/ |
H A D | soc-link.c | 37 #define soc_link_mark_push(rtd, substream, tgt) ((rtd)->mark_##tgt = substream) argument 38 #define soc_link_mark_pop(rtd, substream, tgt) ((rtd)->mark_##tgt = NULL) argument 39 #define soc_link_mark_match(rtd, substream, tgt) ((rtd)->mark_##tgt == substream) argument 68 int snd_soc_link_startup(struct snd_pcm_substream *substream) in snd_soc_link_startup() argument 70 struct snd_soc_pcm_runtime *rtd = asoc_substream_to_rtd(substream); in snd_soc_link_startup() 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() 84 void snd_soc_link_shutdown(struct snd_pcm_substream *substream, in snd_soc_link_shutdown() argument 87 struct snd_soc_pcm_runtime *rtd = asoc_substream_to_rtd(substream); in snd_soc_link_shutdown() 89 if (rollback && !soc_link_mark_match(rtd, substream, startup)) in snd_soc_link_shutdown() [all …]
|
/openbmc/linux/include/sound/ |
H A D | pcm.h | 21 #define snd_pcm_substream_chip(substream) ((substream)->private_data) argument 55 int (*open)(struct snd_pcm_substream *substream); 56 int (*close)(struct snd_pcm_substream *substream); 57 int (*ioctl)(struct snd_pcm_substream * substream, 59 int (*hw_params)(struct snd_pcm_substream *substream, 61 int (*hw_free)(struct snd_pcm_substream *substream); 62 int (*prepare)(struct snd_pcm_substream *substream); 63 int (*trigger)(struct snd_pcm_substream *substream, int cmd); 64 int (*sync_stop)(struct snd_pcm_substream *substream); 65 snd_pcm_uframes_t (*pointer)(struct snd_pcm_substream *substream); [all …]
|
/openbmc/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 = asoc_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 = asoc_substream_to_rtd(substream); in chv3_dma_close() 158 if (substream->pstr->stream == SNDRV_PCM_STREAM_CAPTURE) in chv3_dma_close() [all …]
|
/openbmc/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 = asoc_substream_to_rtd(substream); in bcm63xx_pcm_hw_params() 55 snd_soc_dai_set_dma_data(asoc_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 = asoc_substream_to_rtd(substream); in bcm63xx_pcm_hw_free() 66 dma_desc = snd_soc_dai_get_dma_data(asoc_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 = asoc_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 …]
|
/openbmc/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 …]
|
/openbmc/linux/sound/drivers/pcsp/ |
H A D | pcsp_lib.c | 32 struct snd_pcm_substream *substream; in pcsp_call_pcm_elapsed() local 33 substream = pcsp_chip.playback_substream; in pcsp_call_pcm_elapsed() 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 96 substream = chip->playback_substream; in pcsp_pointer_update() [all …]
|
/openbmc/linux/sound/firewire/tascam/ |
H 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() 43 static int pcm_open(struct snd_pcm_substream *substream) in pcm_open() argument 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() 80 err = snd_pcm_hw_constraint_minmax(substream->runtime, in pcm_open() 88 err = snd_pcm_hw_constraint_minmax(substream->runtime, in pcm_open() [all …]
|
/openbmc/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 …]
|
/openbmc/linux/sound/core/oss/ |
H A D | pcm_oss.c | 539 static int snd_pcm_oss_plugin_clear(struct snd_pcm_substream *substream) in snd_pcm_oss_plugin_clear() argument 541 struct snd_pcm_runtime *runtime = substream->runtime; in snd_pcm_oss_plugin_clear() 585 static long snd_pcm_oss_bytes(struct snd_pcm_substream *substream, long frames) in snd_pcm_oss_bytes() argument 587 struct snd_pcm_runtime *runtime = substream->runtime; in snd_pcm_oss_bytes() 588 long buffer_size = snd_pcm_lib_buffer_bytes(substream); in snd_pcm_oss_bytes() 602 static long snd_pcm_alsa_frames(struct snd_pcm_substream *substream, long bytes) in snd_pcm_alsa_frames() argument 604 struct snd_pcm_runtime *runtime = substream->runtime; in snd_pcm_alsa_frames() 605 long buffer_size = snd_pcm_lib_buffer_bytes(substream); in snd_pcm_alsa_frames() 681 static int snd_pcm_oss_period_size(struct snd_pcm_substream *substream, in snd_pcm_oss_period_size() argument 689 struct snd_pcm_runtime *runtime = substream->runtime; in snd_pcm_oss_period_size() [all …]
|
/openbmc/linux/sound/isa/wavefront/ |
H A D | wavefront_midi.c | 90 get_wavefront_midi (struct snd_rawmidi_substream *substream) in get_wavefront_midi() argument 96 if (substream == NULL || substream->rmidi == NULL) in get_wavefront_midi() 99 card = substream->rmidi->card; in get_wavefront_midi() 229 static int snd_wavefront_midi_input_open(struct snd_rawmidi_substream *substream) in snd_wavefront_midi_input_open() argument 235 if (snd_BUG_ON(!substream || !substream->rmidi)) in snd_wavefront_midi_input_open() 237 if (snd_BUG_ON(!substream->rmidi->private_data)) in snd_wavefront_midi_input_open() 240 mpu = *((snd_wavefront_mpu_id *) substream->rmidi->private_data); in snd_wavefront_midi_input_open() 242 midi = get_wavefront_midi(substream); in snd_wavefront_midi_input_open() 248 midi->substream_input[mpu] = substream; in snd_wavefront_midi_input_open() 254 static int snd_wavefront_midi_output_open(struct snd_rawmidi_substream *substream) in snd_wavefront_midi_output_open() argument [all …]
|
/openbmc/linux/sound/soc/fsl/ |
H 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 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 …]
|
/openbmc/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 …]
|