| /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 | pcm_native.c | 37 #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 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() 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 D | pcm.c | 107 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 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_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() 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 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, in snd_pcm_ioctl_sw_params_compat() 128 snd_pcm_ioctl_channel_info_compat(struct snd_pcm_substream * substream,struct snd_pcm_channel_info32 __user * src) snd_pcm_ioctl_channel_info_compat() argument 181 snd_pcm_status_user_compat64(struct snd_pcm_substream * substream,struct compat_snd_pcm_status64 __user * src,bool ext) snd_pcm_status_user_compat64() argument 234 snd_pcm_ioctl_hw_params_compat(struct snd_pcm_substream * substream,int refine,struct snd_pcm_hw_params32 __user * data32) snd_pcm_ioctl_hw_params_compat() argument 285 snd_pcm_ioctl_xferi_compat(struct snd_pcm_substream * substream,int dir,struct snd_xferi32 __user * data32) snd_pcm_ioctl_xferi_compat() argument 329 snd_pcm_ioctl_xfern_compat(struct snd_pcm_substream * substream,int dir,struct snd_xfern32 __user * data32) snd_pcm_ioctl_xfern_compat() argument 405 snd_pcm_ioctl_sync_ptr_x32(struct snd_pcm_substream * substream,struct snd_pcm_sync_ptr_x32 __user * src) snd_pcm_ioctl_sync_ptr_x32() argument 479 snd_pcm_ioctl_sync_ptr_buggy(struct snd_pcm_substream * substream,struct snd_pcm_sync_ptr __user * _sync_ptr) snd_pcm_ioctl_sync_ptr_buggy() argument 554 struct snd_pcm_substream *substream; snd_pcm_ioctl_compat() local [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() 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 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 in chv3_dma_close() 170 struct snd_pcm_substream *substream; chv3_dma_pcm_construct() local 193 chv3_dma_hw_params(struct snd_soc_component * component,struct snd_pcm_substream * substream,struct snd_pcm_hw_params * params) chv3_dma_hw_params() argument 201 chv3_dma_prepare(struct snd_soc_component * component,struct snd_pcm_substream * substream) chv3_dma_prepare() argument 230 chv3_dma_pointer(struct snd_soc_component * component,struct snd_pcm_substream * substream) chv3_dma_pointer() argument 252 chv3_dma_ack(struct snd_soc_component * component,struct snd_pcm_substream * substream) chv3_dma_ack() argument [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 175 bcm63xx_pcm_pointer(struct snd_soc_component * component,struct snd_pcm_substream * substream) bcm63xx_pcm_pointer() argument 190 bcm63xx_pcm_open(struct snd_soc_component * component,struct snd_pcm_substream * substream) bcm63xx_pcm_open() argument 224 bcm63xx_pcm_close(struct snd_soc_component * component,struct snd_pcm_substream * substream) bcm63xx_pcm_close() argument 237 struct snd_pcm_substream *substream; i2s_dma_isr() local [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/core/oss/ |
| H A D | pcm_oss.c | 533 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 in snd_pcm_oss_period_size() 782 choose_rate(struct snd_pcm_substream * substream,struct snd_pcm_hw_params * params,unsigned int best_rate) choose_rate() argument 836 snd_pcm_oss_release_buffers(struct snd_pcm_substream * substream) snd_pcm_oss_release_buffers() argument 848 snd_pcm_oss_change_params_locked(struct snd_pcm_substream * substream) snd_pcm_oss_change_params_locked() argument 1096 snd_pcm_oss_change_params(struct snd_pcm_substream * substream,bool trylock) snd_pcm_oss_change_params() argument 1116 struct snd_pcm_substream *asubstream = NULL, *substream; snd_pcm_oss_get_active_substream() local 1141 snd_pcm_oss_prepare(struct snd_pcm_substream * substream) snd_pcm_oss_prepare() argument 1160 snd_pcm_oss_make_ready(struct snd_pcm_substream * substream) snd_pcm_oss_make_ready() argument 1183 snd_pcm_oss_make_ready_locked(struct snd_pcm_substream * substream) snd_pcm_oss_make_ready_locked() argument 1202 snd_pcm_oss_capture_position_fixup(struct snd_pcm_substream * substream,snd_pcm_sframes_t * delay) snd_pcm_oss_capture_position_fixup() argument 1227 snd_pcm_oss_write3(struct snd_pcm_substream * substream,const char * ptr,snd_pcm_uframes_t frames,int in_kernel) snd_pcm_oss_write3() argument 1258 snd_pcm_oss_read3(struct snd_pcm_substream * substream,char * ptr,snd_pcm_uframes_t frames,int in_kernel) snd_pcm_oss_read3() argument 1302 snd_pcm_oss_writev3(struct snd_pcm_substream * substream,void ** bufs,snd_pcm_uframes_t frames) snd_pcm_oss_writev3() argument 1331 snd_pcm_oss_readv3(struct snd_pcm_substream * substream,void ** bufs,snd_pcm_uframes_t frames) snd_pcm_oss_readv3() argument 1360 snd_pcm_oss_write2(struct snd_pcm_substream * substream,const char * buf,size_t bytes,int in_kernel) snd_pcm_oss_write2() argument 1393 snd_pcm_oss_write1(struct snd_pcm_substream * substream,const char __user * buf,size_t bytes) snd_pcm_oss_write1() argument 1470 snd_pcm_oss_read2(struct snd_pcm_substream * substream,char * buf,size_t bytes,int in_kernel) snd_pcm_oss_read2() argument 1503 snd_pcm_oss_read1(struct snd_pcm_substream * substream,char __user * buf,size_t bytes) snd_pcm_oss_read1() argument 1567 struct snd_pcm_substream *substream; snd_pcm_oss_reset() local 1589 struct snd_pcm_substream *substream; snd_pcm_oss_post() local 1604 snd_pcm_oss_sync1(struct snd_pcm_substream * substream,size_t size) snd_pcm_oss_sync1() argument 1655 struct snd_pcm_substream *substream; snd_pcm_oss_sync() local 1753 struct snd_pcm_substream *substream = pcm_oss_file->streams[idx]; snd_pcm_oss_set_rate() local 1778 struct snd_pcm_substream *substream; snd_pcm_oss_get_rate() local 1795 struct snd_pcm_substream *substream = pcm_oss_file->streams[idx]; snd_pcm_oss_set_channels() local 1816 struct snd_pcm_substream *substream; snd_pcm_oss_get_channels() local 1827 struct snd_pcm_substream *substream; snd_pcm_oss_get_block_size() local 1838 struct snd_pcm_substream *substream; snd_pcm_oss_get_formats() local 1893 struct snd_pcm_substream *substream = pcm_oss_file->streams[idx]; snd_pcm_oss_set_format() local 1913 struct snd_pcm_substream *substream; snd_pcm_oss_get_format() local 1922 snd_pcm_oss_set_subdivide1(struct snd_pcm_substream * substream,int subdivide) snd_pcm_oss_set_subdivide1() argument 1948 struct snd_pcm_substream *substream = pcm_oss_file->streams[idx]; snd_pcm_oss_set_subdivide() local 1965 snd_pcm_oss_set_fragment1(struct snd_pcm_substream * substream,unsigned int val) snd_pcm_oss_set_fragment1() argument 1991 struct snd_pcm_substream *substream = pcm_oss_file->streams[idx]; snd_pcm_oss_set_fragment() local 2015 snd_pcm_oss_get_caps1(struct snd_pcm_substream * substream,int res) snd_pcm_oss_get_caps1() argument 2045 struct snd_pcm_substream *substream = pcm_oss_file->streams[idx]; snd_pcm_oss_get_caps() local 2052 snd_pcm_oss_simulate_fill(struct snd_pcm_substream * substream,snd_pcm_uframes_t hw_ptr) snd_pcm_oss_simulate_fill() argument 2161 struct snd_pcm_substream *substream; snd_pcm_oss_get_odelay() local 2185 struct snd_pcm_substream *substream; snd_pcm_oss_get_ptr() local 2255 struct snd_pcm_substream *substream; snd_pcm_oss_get_space() local 2352 snd_pcm_oss_release_substream(struct snd_pcm_substream * substream) snd_pcm_oss_release_substream() argument 2358 snd_pcm_oss_init_substream(struct snd_pcm_substream * substream,struct snd_pcm_oss_setup * setup,int minor) snd_pcm_oss_init_substream() argument 2399 struct snd_pcm_substream *substream = pcm_oss_file->streams[cidx]; snd_pcm_oss_release_file() local 2415 struct snd_pcm_substream *substream; snd_pcm_oss_open_file() local 2567 struct snd_pcm_substream *substream; snd_pcm_oss_release() local 2601 struct snd_pcm_substream *substream; snd_pcm_oss_ioctl() local 2768 struct snd_pcm_substream *substream; snd_pcm_oss_read() local 2791 struct snd_pcm_substream *substream; snd_pcm_oss_write() local 2807 snd_pcm_oss_playback_ready(struct snd_pcm_substream * substream) snd_pcm_oss_playback_ready() argument 2818 snd_pcm_oss_capture_ready(struct snd_pcm_substream * substream) snd_pcm_oss_capture_ready() argument 2876 struct snd_pcm_substream *substream = NULL; snd_pcm_oss_mmap() local [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 229 imx_rpmsg_pcm_open(struct snd_soc_component * component,struct snd_pcm_substream * substream) imx_rpmsg_pcm_open() argument 285 imx_rpmsg_pcm_close(struct snd_soc_component * component,struct snd_pcm_substream * substream) imx_rpmsg_pcm_close() argument 316 imx_rpmsg_pcm_prepare(struct snd_soc_component * component,struct snd_pcm_substream * substream) imx_rpmsg_pcm_prepare() argument 345 struct snd_pcm_substream *substream = arg; imx_rpmsg_pcm_dma_complete() local 351 imx_rpmsg_prepare_and_submit(struct snd_soc_component * component,struct snd_pcm_substream * substream) imx_rpmsg_prepare_and_submit() argument 380 imx_rpmsg_async_issue_pending(struct snd_soc_component * component,struct snd_pcm_substream * substream) imx_rpmsg_async_issue_pending() argument 397 imx_rpmsg_restart(struct snd_soc_component * component,struct snd_pcm_substream * substream) imx_rpmsg_restart() argument 414 imx_rpmsg_pause(struct snd_soc_component * component,struct snd_pcm_substream * substream) imx_rpmsg_pause() argument 431 imx_rpmsg_terminate_all(struct snd_soc_component * component,struct snd_pcm_substream * substream) imx_rpmsg_terminate_all() argument 461 imx_rpmsg_pcm_trigger(struct snd_soc_component * component,struct snd_pcm_substream * substream,int cmd) imx_rpmsg_pcm_trigger() argument 515 imx_rpmsg_pcm_ack(struct snd_soc_component * component,struct snd_pcm_substream * substream) imx_rpmsg_pcm_ack() argument 600 struct snd_pcm_substream *substream; imx_rpmsg_pcm_new() local [all...] |
| 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 in snd_imx_pcm_prepare() 109 snd_imx_pcm_trigger(struct snd_soc_component * component,struct snd_pcm_substream * substream,int cmd) snd_imx_pcm_trigger() argument 148 snd_imx_pcm_pointer(struct snd_soc_component * component,struct snd_pcm_substream * substream) snd_imx_pcm_pointer() argument 173 snd_imx_open(struct snd_soc_component * component,struct snd_pcm_substream * substream) snd_imx_open() argument 202 snd_imx_close(struct snd_soc_component * component,struct snd_pcm_substream * substream) snd_imx_close() argument 235 struct snd_pcm_substream *substream; snd_imx_pcm_new() local [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/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/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 322 dmaengine_pcm_sync_stop(struct snd_soc_component * component,struct snd_pcm_substream * substream) dmaengine_pcm_sync_stop() argument [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/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 168 idma_hw_free(struct snd_soc_component * component,struct snd_pcm_substream * substream) idma_hw_free() argument 176 idma_prepare(struct snd_soc_component * component,struct snd_pcm_substream * substream) idma_prepare() argument 190 idma_trigger(struct snd_soc_component * component,struct snd_pcm_substream * substream,int cmd) idma_trigger() argument 224 idma_pointer(struct snd_soc_component * component,struct snd_pcm_substream * substream) idma_pointer() argument 242 idma_mmap(struct snd_soc_component * component,struct snd_pcm_substream * substream,struct vm_area_struct * vma) idma_mmap() argument 285 idma_open(struct snd_soc_component * component,struct snd_pcm_substream * substream) idma_open() argument 312 idma_close(struct snd_soc_component * component,struct snd_pcm_substream * substream) idma_close() argument 330 struct snd_pcm_substream *substream; idma_free() local 349 struct snd_pcm_substream *substream = pcm->streams[stream].substream; preallocate_idma_buffer() local [all...] |
| /linux/sound/pci/emu10k1/ |
| H A D | emupcm.c | 28 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 …]
|