/linux-master/sound/soc/loongson/ |
H A D | loongson_dma.c | 92 struct snd_pcm_substream *substream, int cmd) 94 struct loongson_runtime_data *prtd = substream->runtime->private_data; 95 struct device *dev = substream->pcm->card->dev; 136 struct snd_pcm_substream *substream, 139 struct snd_pcm_runtime *runtime = substream->runtime; 140 struct device *dev = substream->pcm->card->dev; 160 snd_pcm_set_runtime_buffer(substream, &substream->dma_buffer); 179 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) 200 struct snd_pcm_substream *substream) 91 loongson_pcm_trigger(struct snd_soc_component *component, struct snd_pcm_substream *substream, int cmd) argument 135 loongson_pcm_hw_params(struct snd_soc_component *component, struct snd_pcm_substream *substream, struct snd_pcm_hw_params *params) argument 199 loongson_pcm_pointer(struct snd_soc_component *component, struct snd_pcm_substream *substream) argument 219 struct snd_pcm_substream *substream = devid; local 225 loongson_pcm_open(struct snd_soc_component *component, struct snd_pcm_substream *substream) argument 285 loongson_pcm_close(struct snd_soc_component *component, struct snd_pcm_substream *substream) argument 301 loongson_pcm_mmap(struct snd_soc_component *component, struct snd_pcm_substream *substream, struct vm_area_struct *vma) argument 314 struct snd_pcm_substream *substream; local [all...] |
/linux-master/sound/usb/line6/ |
H A D | pcm.h | 35 Get substream from Line 6 PCM data structure 38 (line6pcm->pcm->streams[stream].substream) 184 extern int snd_line6_trigger(struct snd_pcm_substream *substream, int cmd); 185 extern int snd_line6_prepare(struct snd_pcm_substream *substream); 186 extern int snd_line6_hw_params(struct snd_pcm_substream *substream, 188 extern int snd_line6_hw_free(struct snd_pcm_substream *substream); 189 extern snd_pcm_uframes_t snd_line6_pointer(struct snd_pcm_substream *substream);
|
/linux-master/sound/soc/dwc/ |
H A D | dwc-pcm.c | 97 struct snd_pcm_substream *substream; local 102 substream = rcu_dereference(dev->tx_substream); 104 substream = rcu_dereference(dev->rx_substream); 105 active = substream && snd_pcm_running(substream); 112 new_ptr = dev->tx_fn(dev, substream->runtime, ptr, 117 new_ptr = dev->rx_fn(dev, substream->runtime, ptr, 123 snd_pcm_period_elapsed(substream); 139 struct snd_pcm_substream *substream) 141 struct snd_pcm_runtime *runtime = substream 138 dw_pcm_open(struct snd_soc_component *component, struct snd_pcm_substream *substream) argument 152 dw_pcm_close(struct snd_soc_component *component, struct snd_pcm_substream *substream) argument 159 dw_pcm_hw_params(struct snd_soc_component *component, struct snd_pcm_substream *substream, struct snd_pcm_hw_params *hw_params) argument 192 dw_pcm_trigger(struct snd_soc_component *component, struct snd_pcm_substream *substream, int cmd) argument 227 dw_pcm_pointer(struct snd_soc_component *component, struct snd_pcm_substream *substream) argument [all...] |
/linux-master/sound/pci/oxygen/ |
H A D | oxygen_pcm.c | 115 oxygen_substream_channel(struct snd_pcm_substream *substream) argument 117 return (unsigned int)(uintptr_t)substream->runtime->private_data; 120 static int oxygen_open(struct snd_pcm_substream *substream, argument 123 struct oxygen *chip = snd_pcm_substream_chip(substream); 124 struct snd_pcm_runtime *runtime = substream->runtime; 171 snd_pcm_set_sync(substream); 172 chip->streams[channel] = substream; 189 static int oxygen_rec_a_open(struct snd_pcm_substream *substream) argument 191 return oxygen_open(substream, PCM_A); 194 static int oxygen_rec_b_open(struct snd_pcm_substream *substream) argument 199 oxygen_rec_c_open(struct snd_pcm_substream *substream) argument 204 oxygen_spdif_open(struct snd_pcm_substream *substream) argument 209 oxygen_multich_open(struct snd_pcm_substream *substream) argument 214 oxygen_ac97_open(struct snd_pcm_substream *substream) argument 219 oxygen_close(struct snd_pcm_substream *substream) argument 302 oxygen_hw_params(struct snd_pcm_substream *substream, struct snd_pcm_hw_params *hw_params) argument 344 oxygen_rec_a_hw_params(struct snd_pcm_substream *substream, struct snd_pcm_hw_params *hw_params) argument 375 oxygen_rec_b_hw_params(struct snd_pcm_substream *substream, struct snd_pcm_hw_params *hw_params) argument 413 oxygen_rec_c_hw_params(struct snd_pcm_substream *substream, struct snd_pcm_hw_params *hw_params) argument 450 oxygen_spdif_hw_params(struct snd_pcm_substream *substream, struct snd_pcm_hw_params *hw_params) argument 476 oxygen_multich_hw_params(struct snd_pcm_substream *substream, struct snd_pcm_hw_params *hw_params) argument 512 oxygen_hw_free(struct snd_pcm_substream *substream) argument 529 oxygen_spdif_hw_free(struct snd_pcm_substream *substream) argument 540 oxygen_prepare(struct snd_pcm_substream *substream) argument 559 oxygen_trigger(struct snd_pcm_substream *substream, int cmd) argument 604 oxygen_pointer(struct snd_pcm_substream *substream) argument [all...] |
/linux-master/sound/pci/aw2/ |
H A D | aw2-alsa.c | 105 static int snd_aw2_pcm_playback_open(struct snd_pcm_substream *substream); 106 static int snd_aw2_pcm_playback_close(struct snd_pcm_substream *substream); 107 static int snd_aw2_pcm_capture_open(struct snd_pcm_substream *substream); 108 static int snd_aw2_pcm_capture_close(struct snd_pcm_substream *substream); 109 static int snd_aw2_pcm_prepare_playback(struct snd_pcm_substream *substream); 110 static int snd_aw2_pcm_prepare_capture(struct snd_pcm_substream *substream); 111 static int snd_aw2_pcm_trigger_playback(struct snd_pcm_substream *substream, 113 static int snd_aw2_pcm_trigger_capture(struct snd_pcm_substream *substream, 116 *substream); 118 *substream); 311 snd_aw2_pcm_playback_open(struct snd_pcm_substream *substream) argument 321 snd_aw2_pcm_playback_close(struct snd_pcm_substream *substream) argument 327 snd_aw2_pcm_capture_open(struct snd_pcm_substream *substream) argument 337 snd_aw2_pcm_capture_close(struct snd_pcm_substream *substream) argument 344 snd_aw2_pcm_prepare_playback(struct snd_pcm_substream *substream) argument 373 snd_aw2_pcm_prepare_capture(struct snd_pcm_substream *substream) argument 402 snd_aw2_pcm_trigger_playback(struct snd_pcm_substream *substream, int cmd) argument 428 snd_aw2_pcm_trigger_capture(struct snd_pcm_substream *substream, int cmd) argument 454 snd_aw2_pcm_pointer_playback(struct snd_pcm_substream *substream) argument 473 snd_aw2_pcm_pointer_capture(struct snd_pcm_substream *substream) argument [all...] |
/linux-master/include/sound/ |
H A D | pcm.h | 21 #define snd_pcm_substream_chip(substream) ((substream)->private_data) 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); 228 struct snd_pcm_substream *substream; member in struct:snd_pcm_file 506 struct snd_pcm_substream *substream; member in struct:snd_pcm_str 603 snd_pcm_debug_name(struct snd_pcm_substream *substream, char *buf, size_t size) argument 619 snd_pcm_stream_linked(struct snd_pcm_substream *substream) argument 698 snd_pcm_running(struct snd_pcm_substream *substream) argument 785 snd_pcm_lib_buffer_bytes(struct snd_pcm_substream *substream) argument 797 snd_pcm_lib_period_bytes(struct snd_pcm_substream *substream) argument 867 snd_pcm_playback_ready(struct snd_pcm_substream *substream) argument 881 snd_pcm_capture_ready(struct snd_pcm_substream *substream) argument 896 snd_pcm_playback_data(struct snd_pcm_substream *substream) argument 913 snd_pcm_playback_empty(struct snd_pcm_substream *substream) argument 927 snd_pcm_capture_empty(struct snd_pcm_substream *substream) argument 947 snd_pcm_trigger_done(struct snd_pcm_substream *substream, struct snd_pcm_substream *master) argument 1163 snd_pcm_lib_write(struct snd_pcm_substream *substream, const void __user *buf, snd_pcm_uframes_t frames) argument 1170 snd_pcm_lib_read(struct snd_pcm_substream *substream, void __user *buf, snd_pcm_uframes_t frames) argument 1177 snd_pcm_lib_writev(struct snd_pcm_substream *substream, void __user **bufs, snd_pcm_uframes_t frames) argument 1184 snd_pcm_lib_readv(struct snd_pcm_substream *substream, void __user **bufs, snd_pcm_uframes_t frames) argument 1191 snd_pcm_kernel_write(struct snd_pcm_substream *substream, const void *buf, snd_pcm_uframes_t frames) argument 1198 snd_pcm_kernel_read(struct snd_pcm_substream *substream, void *buf, snd_pcm_uframes_t frames) argument 1205 snd_pcm_kernel_writev(struct snd_pcm_substream *substream, void **bufs, snd_pcm_uframes_t frames) argument 1212 snd_pcm_kernel_readv(struct snd_pcm_substream *substream, void **bufs, snd_pcm_uframes_t frames) argument 1241 snd_pcm_set_runtime_buffer(struct snd_pcm_substream *substream, struct snd_dma_buffer *bufp) argument 1315 snd_pcm_set_fixed_buffer(struct snd_pcm_substream *substream, int type, struct device *data, size_t size) argument 1358 snd_pcm_lib_alloc_vmalloc_buffer(struct snd_pcm_substream *substream, size_t size) argument 1376 snd_pcm_lib_alloc_vmalloc_32_buffer(struct snd_pcm_substream *substream, size_t size) argument 1393 snd_pcm_sgbuf_get_addr(struct snd_pcm_substream *substream, unsigned int ofs) argument 1408 snd_pcm_sgbuf_get_chunk_size(struct snd_pcm_substream *substream, unsigned int ofs, unsigned int size) argument 1422 struct snd_pcm_substream *substream = (struct snd_pcm_substream *)area->vm_private_data; local 1434 struct snd_pcm_substream *substream = (struct snd_pcm_substream *)area->vm_private_data; local [all...] |
/linux-master/drivers/media/pci/cobalt/ |
H A D | cobalt-alsa-pcm.c | 101 struct snd_pcm_substream *substream; local 113 substream = cobsc->capture_pcm_substream; 114 if (substream == NULL) { 115 dprintk("substream was NULL\n"); 119 runtime = substream->runtime; 162 snd_pcm_stream_lock_irqsave(substream, flags); 178 snd_pcm_stream_unlock_irqrestore(substream, flags); 181 snd_pcm_period_elapsed(substream); 206 static int snd_cobalt_pcm_capture_open(struct snd_pcm_substream *substream) argument 208 struct snd_pcm_runtime *runtime = substream 229 snd_cobalt_pcm_capture_close(struct snd_pcm_substream *substream) argument 240 snd_cobalt_pcm_prepare(struct snd_pcm_substream *substream) argument 250 snd_cobalt_pcm_trigger(struct snd_pcm_substream *substream, int cmd) argument 263 snd_cobalt_pcm_pointer(struct snd_pcm_substream *substream) argument 301 struct snd_pcm_substream *substream; local 367 snd_cobalt_pcm_playback_open(struct snd_pcm_substream *substream) argument 391 snd_cobalt_pcm_playback_close(struct snd_pcm_substream *substream) argument 402 snd_cobalt_pcm_pb_prepare(struct snd_pcm_substream *substream) argument 413 snd_cobalt_pcm_pb_trigger(struct snd_pcm_substream *substream, int cmd) argument 433 snd_cobalt_pcm_pb_pointer(struct snd_pcm_substream *substream) argument [all...] |
/linux-master/sound/soc/samsung/ |
H A D | idma.c | 64 static int idma_enqueue(struct snd_pcm_substream *substream) argument 66 struct snd_pcm_runtime *runtime = substream->runtime; 67 struct idma_ctrl *prtd = substream->runtime->private_data; 71 prtd->token = (void *) substream; 99 static void idma_setcallbk(struct snd_pcm_substream *substream, argument 102 struct idma_ctrl *prtd = substream->runtime->private_data; 133 struct snd_pcm_substream *substream = id; local 134 struct idma_ctrl *prtd = substream->runtime->private_data; 137 snd_pcm_period_elapsed(substream); 141 struct snd_pcm_substream *substream, 140 idma_hw_params(struct snd_soc_component *component, struct snd_pcm_substream *substream, struct snd_pcm_hw_params *params) argument 167 idma_hw_free(struct snd_soc_component *component, struct snd_pcm_substream *substream) argument 175 idma_prepare(struct snd_soc_component *component, struct snd_pcm_substream *substream) argument 189 idma_trigger(struct snd_soc_component *component, struct snd_pcm_substream *substream, int cmd) argument 223 idma_pointer(struct snd_soc_component *component, struct snd_pcm_substream *substream) argument 241 idma_mmap(struct snd_soc_component *component, struct snd_pcm_substream *substream, struct vm_area_struct *vma) argument 284 idma_open(struct snd_soc_component *component, struct snd_pcm_substream *substream) argument 311 idma_close(struct snd_soc_component *component, struct snd_pcm_substream *substream) argument 330 struct snd_pcm_substream *substream; local 349 struct snd_pcm_substream *substream = pcm->streams[stream].substream; local [all...] |
/linux-master/sound/soc/sh/ |
H A D | dma-sh7760.c | 119 struct snd_pcm_substream *substream) 121 struct snd_soc_pcm_runtime *rtd = snd_soc_substream_to_rtd(substream); 123 int recv = substream->stream == SNDRV_PCM_STREAM_PLAYBACK ? 0:1; 126 snd_soc_set_runtime_hwparams(substream, &camelot_pcm_hardware); 131 cam->rx_ss = substream; 140 cam->tx_ss = substream; 153 struct snd_pcm_substream *substream) 155 struct snd_soc_pcm_runtime *rtd = snd_soc_substream_to_rtd(substream); 157 int recv = substream->stream == SNDRV_PCM_STREAM_PLAYBACK ? 0:1; 174 struct snd_pcm_substream *substream, 118 camelot_pcm_open(struct snd_soc_component *component, struct snd_pcm_substream *substream) argument 152 camelot_pcm_close(struct snd_soc_component *component, struct snd_pcm_substream *substream) argument 173 camelot_hw_params(struct snd_soc_component *component, struct snd_pcm_substream *substream, struct snd_pcm_hw_params *hw_params) argument 191 camelot_prepare(struct snd_soc_component *component, struct snd_pcm_substream *substream) argument 240 camelot_trigger(struct snd_soc_component *component, struct snd_pcm_substream *substream, int cmd) argument 267 camelot_pos(struct snd_soc_component *component, struct snd_pcm_substream *substream) argument [all...] |
/linux-master/sound/pci/cs5535audio/ |
H A D | cs5535audio_pcm.c | 79 static int snd_cs5535audio_playback_open(struct snd_pcm_substream *substream) argument 82 struct cs5535audio *cs5535au = snd_pcm_substream_chip(substream); 83 struct snd_pcm_runtime *runtime = substream->runtime; 88 cs5535au->playback_substream = substream; 98 static int snd_cs5535audio_playback_close(struct snd_pcm_substream *substream) argument 108 struct snd_pcm_substream *substream, 133 addr = (u32) substream->runtime->dma_addr; 150 dma->substream = substream; 224 struct snd_pcm_substream *substream) 106 cs5535audio_build_dma_packets(struct cs5535audio *cs5535au, struct cs5535audio_dma *dma, struct snd_pcm_substream *substream, unsigned int periods, unsigned int period_bytes) argument 222 cs5535audio_clear_dma_packets(struct cs5535audio *cs5535au, struct cs5535audio_dma *dma, struct snd_pcm_substream *substream) argument 231 snd_cs5535audio_hw_params(struct snd_pcm_substream *substream, struct snd_pcm_hw_params *hw_params) argument 250 snd_cs5535audio_hw_free(struct snd_pcm_substream *substream) argument 268 snd_cs5535audio_playback_prepare(struct snd_pcm_substream *substream) argument 275 snd_cs5535audio_trigger(struct snd_pcm_substream *substream, int cmd) argument 310 snd_cs5535audio_pcm_pointer(struct snd_pcm_substream *substream) argument 333 snd_cs5535audio_capture_open(struct snd_pcm_substream *substream) argument 352 snd_cs5535audio_capture_close(struct snd_pcm_substream *substream) argument 359 snd_cs5535audio_capture_prepare(struct snd_pcm_substream *substream) argument [all...] |
/linux-master/sound/soc/atmel/ |
H A D | atmel-pcm-dma.c | 53 struct snd_pcm_substream *substream) 55 struct snd_soc_pcm_runtime *rtd = snd_soc_substream_to_rtd(substream); 58 prtd = snd_soc_dai_get_dma_data(snd_soc_rtd_to_cpu(rtd, 0), substream); 61 if (snd_pcm_running(substream)) 63 substream->stream == SNDRV_PCM_STREAM_PLAYBACK 69 snd_pcm_stop_xrun(substream); 77 static int atmel_pcm_configure_dma(struct snd_pcm_substream *substream, argument 80 struct snd_soc_pcm_runtime *rtd = snd_soc_substream_to_rtd(substream); 85 prtd = snd_soc_dai_get_dma_data(snd_soc_rtd_to_cpu(rtd, 0), substream); 88 ret = snd_hwparams_to_dma_slave_config(substream, param 52 atmel_pcm_dma_irq(u32 ssc_sr, struct snd_pcm_substream *substream) argument [all...] |
/linux-master/sound/soc/qcom/ |
H A D | sdw.c | 12 * @substream: The PCM substream from audio, as passed to snd_soc_ops->startup() 22 int qcom_snd_sdw_startup(struct snd_pcm_substream *substream) argument 24 struct snd_soc_pcm_runtime *rtd = substream->private_data; 36 substream->stream); 53 int qcom_snd_sdw_prepare(struct snd_pcm_substream *substream, argument 57 struct snd_soc_pcm_runtime *rtd = substream->private_data; 104 int qcom_snd_sdw_hw_params(struct snd_pcm_substream *substream, argument 108 struct snd_soc_pcm_runtime *rtd = substream->private_data; 123 sruntime = snd_soc_dai_get_stream(codec_dai, substream 135 qcom_snd_sdw_hw_free(struct snd_pcm_substream *substream, struct sdw_stream_runtime *sruntime, bool *stream_prepared) argument [all...] |
/linux-master/drivers/media/usb/go7007/ |
H A D | snd-go7007.c | 38 struct snd_pcm_substream *substream; member in struct:go7007_snd 67 struct snd_pcm_runtime *runtime = gosnd->substream->runtime; 95 snd_pcm_period_elapsed(gosnd->substream); 98 static int go7007_snd_hw_params(struct snd_pcm_substream *substream, argument 101 struct go7007 *go = snd_pcm_substream_chip(substream); 107 static int go7007_snd_hw_free(struct snd_pcm_substream *substream) argument 109 struct go7007 *go = snd_pcm_substream_chip(substream); 115 static int go7007_snd_capture_open(struct snd_pcm_substream *substream) argument 117 struct go7007 *go = snd_pcm_substream_chip(substream); 123 if (gosnd->substream 133 go7007_snd_capture_close(struct snd_pcm_substream *substream) argument 142 go7007_snd_pcm_prepare(struct snd_pcm_substream *substream) argument 147 go7007_snd_pcm_trigger(struct snd_pcm_substream *substream, int cmd) argument 167 go7007_snd_pcm_pointer(struct snd_pcm_substream *substream) argument [all...] |
/linux-master/sound/soc/fsl/ |
H A D | fsl_asrc_dma.c | 44 struct snd_pcm_substream *substream = arg; local 45 struct snd_pcm_runtime *runtime = substream->runtime; 48 pair->pos += snd_pcm_lib_period_bytes(substream); 49 if (pair->pos >= snd_pcm_lib_buffer_bytes(substream)) 52 snd_pcm_period_elapsed(substream); 55 static int fsl_asrc_dma_prepare_and_submit(struct snd_pcm_substream *substream, argument 58 u8 dir = substream->stream == SNDRV_PCM_STREAM_PLAYBACK ? OUT : IN; 59 struct snd_pcm_runtime *runtime = substream->runtime; 65 if (!substream->runtime->no_period_wakeup) 71 snd_pcm_lib_buffer_bytes(substream), 97 fsl_asrc_dma_trigger(struct snd_soc_component *component, struct snd_pcm_substream *substream, int cmd) argument 127 fsl_asrc_dma_hw_params(struct snd_soc_component *component, struct snd_pcm_substream *substream, struct snd_pcm_hw_params *params) argument 308 fsl_asrc_dma_hw_free(struct snd_soc_component *component, struct snd_pcm_substream *substream) argument 329 fsl_asrc_dma_startup(struct snd_soc_component *component, struct snd_pcm_substream *substream) argument 406 fsl_asrc_dma_shutdown(struct snd_soc_component *component, struct snd_pcm_substream *substream) argument 427 fsl_asrc_dma_pcm_pointer(struct snd_soc_component *component, struct snd_pcm_substream *substream) argument [all...] |
H A D | imx-pcm-rpmsg.c | 108 static int imx_rpmsg_insert_workqueue(struct snd_pcm_substream *substream, argument 130 info->msg_drop_count[substream->stream]++; 139 struct snd_pcm_substream *substream, 145 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) { 191 struct snd_pcm_substream *substream) 198 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) 204 pos = buffer_tail * snd_pcm_lib_period_bytes(substream); 206 return bytes_to_frames(substream->runtime, pos); 213 struct snd_pcm_substream *substream = stream_timer->substream; local 138 imx_rpmsg_pcm_hw_params(struct snd_soc_component *component, struct snd_pcm_substream *substream, struct snd_pcm_hw_params *params) argument 190 imx_rpmsg_pcm_pointer(struct snd_soc_component *component, struct snd_pcm_substream *substream) argument 228 imx_rpmsg_pcm_open(struct snd_soc_component *component, struct snd_pcm_substream *substream) argument 284 imx_rpmsg_pcm_close(struct snd_soc_component *component, struct snd_pcm_substream *substream) argument 315 imx_rpmsg_pcm_prepare(struct snd_soc_component *component, struct snd_pcm_substream *substream) argument 345 struct snd_pcm_substream *substream = arg; local 350 imx_rpmsg_prepare_and_submit(struct snd_soc_component *component, struct snd_pcm_substream *substream) argument 379 imx_rpmsg_async_issue_pending(struct snd_soc_component *component, struct snd_pcm_substream *substream) argument 396 imx_rpmsg_restart(struct snd_soc_component *component, struct snd_pcm_substream *substream) argument 413 imx_rpmsg_pause(struct snd_soc_component *component, struct snd_pcm_substream *substream) argument 430 imx_rpmsg_terminate_all(struct snd_soc_component *component, struct snd_pcm_substream *substream) argument 460 imx_rpmsg_pcm_trigger(struct snd_soc_component *component, struct snd_pcm_substream *substream, int cmd) argument 514 imx_rpmsg_pcm_ack(struct snd_soc_component *component, struct snd_pcm_substream *substream) argument [all...] |
/linux-master/sound/firewire/digi00x/ |
H A D | digi00x-midi.c | 10 static int midi_open(struct snd_rawmidi_substream *substream) argument 12 struct snd_dg00x *dg00x = substream->rmidi->private_data; 34 static int midi_close(struct snd_rawmidi_substream *substream) argument 36 struct snd_dg00x *dg00x = substream->rmidi->private_data; 47 static void midi_capture_trigger(struct snd_rawmidi_substream *substream, argument 50 struct snd_dg00x *dg00x = substream->rmidi->private_data; 54 if (substream->rmidi->device == 0) 55 port = substream->number; 62 amdtp_dot_midi_trigger(&dg00x->tx_stream, port, substream); 69 static void midi_playback_trigger(struct snd_rawmidi_substream *substream, argument [all...] |
/linux-master/sound/pci/emu10k1/ |
H A D | p16v.c | 153 static int snd_p16v_pcm_open_playback_channel(struct snd_pcm_substream *substream, int channel_id) argument 155 struct snd_pcm_runtime *runtime = substream->runtime; 160 substream->pcm->device, channel_id); 177 runtime->sync.id32[0] = substream->pcm->card->number; 186 static int snd_p16v_pcm_open_capture_channel(struct snd_pcm_substream *substream, int channel_id) argument 188 struct snd_pcm_runtime *runtime = substream->runtime; 193 substream->pcm->device, channel_id); 207 static int snd_p16v_pcm_close_playback(struct snd_pcm_substream *substream) argument 213 static int snd_p16v_pcm_close_capture(struct snd_pcm_substream *substream) argument 218 static int snd_p16v_pcm_open_playback_front(struct snd_pcm_substream *substream) argument 223 snd_p16v_pcm_open_capture(struct snd_pcm_substream *substream) argument 230 snd_p16v_pcm_prepare_playback(struct snd_pcm_substream *substream) argument 297 snd_p16v_pcm_prepare_capture(struct snd_pcm_substream *substream) argument 368 struct snd_pcm_substream *substream = local 381 struct snd_pcm_substream *substream = local 396 snd_p16v_pcm_trigger_playback(struct snd_pcm_substream *substream, int cmd) argument 448 snd_p16v_pcm_trigger_capture(struct snd_pcm_substream *substream, int cmd) argument 478 snd_p16v_pcm_pointer_playback(struct snd_pcm_substream *substream) argument 503 snd_p16v_pcm_pointer_capture(struct snd_pcm_substream *substream) argument 550 struct snd_pcm_substream *substream; local [all...] |
H A D | emupcm.c | 28 if (epcm->substream == NULL) 33 epcm->substream->runtime->hw->pointer(emu, epcm->substream), 34 snd_pcm_lib_period_bytes(epcm->substream), 35 snd_pcm_lib_buffer_bytes(epcm->substream)); 37 snd_pcm_period_elapsed(epcm->substream); 370 static int snd_emu10k1_playback_hw_params(struct snd_pcm_substream *substream, argument 373 struct snd_emu10k1 *emu = snd_pcm_substream_chip(substream); 374 struct snd_pcm_runtime *runtime = substream->runtime; 396 err = snd_pcm_lib_malloc_pages(substream, alloc_siz 417 snd_emu10k1_playback_hw_free(struct snd_pcm_substream *substream) argument 440 snd_emu10k1_playback_prepare(struct snd_pcm_substream *substream) argument 470 snd_emu10k1_efx_playback_prepare(struct snd_pcm_substream *substream) argument 519 snd_emu10k1_capture_prepare(struct snd_pcm_substream *substream) argument 607 struct snd_pcm_substream *substream = epcm->substream; local 741 snd_emu10k1_playback_trigger(struct snd_pcm_substream *substream, int cmd) argument 786 snd_emu10k1_capture_trigger(struct snd_pcm_substream *substream, int cmd) argument 859 snd_emu10k1_playback_pointer(struct snd_pcm_substream *substream) argument 938 snd_emu10k1_efx_playback_trigger(struct snd_pcm_substream *substream, int cmd) argument 1005 snd_emu10k1_capture_pointer(struct snd_pcm_substream *substream) argument 1127 snd_emu10k1_efx_playback_close(struct snd_pcm_substream *substream) argument 1157 snd_emu10k1_efx_playback_open(struct snd_pcm_substream *substream) argument 1196 snd_emu10k1_playback_open(struct snd_pcm_substream *substream) argument 1239 snd_emu10k1_playback_close(struct snd_pcm_substream *substream) argument 1249 snd_emu10k1_capture_open(struct snd_pcm_substream *substream) argument 1277 snd_emu10k1_capture_close(struct snd_pcm_substream *substream) argument 1286 snd_emu10k1_capture_mic_open(struct snd_pcm_substream *substream) argument 1315 snd_emu10k1_capture_mic_close(struct snd_pcm_substream *substream) argument 1324 snd_emu10k1_capture_efx_open(struct snd_pcm_substream *substream) argument 1394 snd_emu10k1_capture_efx_close(struct snd_pcm_substream *substream) argument 1435 struct snd_pcm_substream *substream; local 1468 struct snd_pcm_substream *substream; local 1596 struct snd_pcm_substream *substream = private_data; local 1625 fx8010_pb_trans_copy(struct snd_pcm_substream *substream, struct snd_pcm_indirect *rec, size_t bytes) argument 1654 snd_emu10k1_fx8010_playback_transfer(struct snd_pcm_substream *substream) argument 1663 snd_emu10k1_fx8010_playback_hw_free(struct snd_pcm_substream *substream) argument 1674 snd_emu10k1_fx8010_playback_prepare(struct snd_pcm_substream *substream) argument 1705 snd_emu10k1_fx8010_playback_trigger(struct snd_pcm_substream *substream, int cmd) argument 1752 snd_emu10k1_fx8010_playback_pointer(struct snd_pcm_substream *substream) argument 1784 snd_emu10k1_fx8010_playback_open(struct snd_pcm_substream *substream) argument 1803 snd_emu10k1_fx8010_playback_close(struct snd_pcm_substream *substream) argument [all...] |
/linux-master/sound/isa/sb/ |
H A D | sb8_midi.c | 50 static int snd_sb8dsp_midi_input_open(struct snd_rawmidi_substream *substream) argument 56 chip = substream->rmidi->private_data; 65 chip->midi_substream_input = substream; 77 static int snd_sb8dsp_midi_output_open(struct snd_rawmidi_substream *substream) argument 83 chip = substream->rmidi->private_data; 92 chip->midi_substream_output = substream; 104 static int snd_sb8dsp_midi_input_close(struct snd_rawmidi_substream *substream) argument 109 chip = substream->rmidi->private_data; 122 static int snd_sb8dsp_midi_output_close(struct snd_rawmidi_substream *substream) argument 127 chip = substream 141 snd_sb8dsp_midi_input_trigger(struct snd_rawmidi_substream *substream, int up) argument 164 snd_sb8dsp_midi_output_write(struct snd_rawmidi_substream *substream) argument 203 struct snd_rawmidi_substream *substream = chip->midi_substream_output; local 212 snd_sb8dsp_midi_output_trigger(struct snd_rawmidi_substream *substream, int up) argument [all...] |
/linux-master/sound/firewire/tascam/ |
H A D | tascam-midi.c | 10 static int midi_capture_open(struct snd_rawmidi_substream *substream) argument 16 static int midi_playback_open(struct snd_rawmidi_substream *substream) argument 18 struct snd_tscm *tscm = substream->rmidi->private_data; 20 snd_fw_async_midi_port_init(&tscm->out_ports[substream->number]); 25 static int midi_capture_close(struct snd_rawmidi_substream *substream) argument 31 static int midi_playback_close(struct snd_rawmidi_substream *substream) argument 36 static void midi_playback_drain(struct snd_rawmidi_substream *substream) argument 38 struct snd_tscm *tscm = substream->rmidi->private_data; 40 snd_fw_async_midi_port_finish(&tscm->out_ports[substream->number]);
|
/linux-master/sound/soc/intel/boards/ |
H A D | sof_sdw_maxim.c | 65 static int mx8373_enable_spk_pin(struct snd_pcm_substream *substream, bool enable) argument 67 struct snd_soc_pcm_runtime *rtd = snd_soc_substream_to_rtd(substream); 74 if (substream->stream == SNDRV_PCM_STREAM_CAPTURE) 98 static int mx8373_sdw_prepare(struct snd_pcm_substream *substream) argument 103 ret = sdw_prepare(substream); 107 return mx8373_enable_spk_pin(substream, true); 110 static int mx8373_sdw_hw_free(struct snd_pcm_substream *substream) argument 115 ret = sdw_hw_free(substream); 119 return mx8373_enable_spk_pin(substream, false);
|
/linux-master/sound/soc/ux500/ |
H A D | ux500_pcm.c | 31 static int ux500_pcm_prepare_slave_config(struct snd_pcm_substream *substream, argument 35 struct snd_soc_pcm_runtime *rtd = snd_soc_substream_to_rtd(substream); 40 snd_dma_params = snd_soc_dai_get_dma_data(snd_soc_rtd_to_cpu(rtd, 0), substream); 43 ret = snd_hwparams_to_dma_slave_config(substream, params, slave_config); 53 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
|
/linux-master/sound/drivers/ |
H A D | mtpav.c | 272 struct snd_rawmidi_substream *substream) 278 if (snd_rawmidi_transmit(substream, &outbyte, 1) != 1) 303 } while (snd_rawmidi_transmit(substream, &outbyte, 1) == 1); 306 static void snd_mtpav_output_write(struct snd_rawmidi_substream *substream) argument 308 struct mtpav *mtp_card = substream->rmidi->private_data; 309 struct mtpav_port *portp = &mtp_card->ports[substream->number]; 313 snd_mtpav_output_port_write(mtp_card, portp, substream); 336 static int snd_mtpav_input_open(struct snd_rawmidi_substream *substream) argument 338 struct mtpav *mtp_card = substream->rmidi->private_data; 339 struct mtpav_port *portp = &mtp_card->ports[substream 270 snd_mtpav_output_port_write(struct mtpav *mtp_card, struct mtpav_port *portp, struct snd_rawmidi_substream *substream) argument 354 snd_mtpav_input_close(struct snd_rawmidi_substream *substream) argument 372 snd_mtpav_input_trigger(struct snd_rawmidi_substream *substream, int up) argument 425 snd_mtpav_output_open(struct snd_rawmidi_substream *substream) argument 441 snd_mtpav_output_close(struct snd_rawmidi_substream *substream) argument 457 snd_mtpav_output_trigger(struct snd_rawmidi_substream *substream, int up) argument 606 snd_mtpav_set_name(struct mtpav *chip, struct snd_rawmidi_substream *substream) argument 625 struct snd_rawmidi_substream *substream; local [all...] |
/linux-master/sound/soc/stm/ |
H A D | stm32_adfsdm.c | 30 struct snd_pcm_substream *substream; member in struct:stm32_adfsdm_priv 60 static void stm32_adfsdm_shutdown(struct snd_pcm_substream *substream, argument 73 static int stm32_adfsdm_dai_prepare(struct snd_pcm_substream *substream, argument 86 substream->runtime->rate, 0, 90 __func__, substream->runtime->rate); 170 struct snd_soc_pcm_runtime *rtd = snd_soc_substream_to_rtd(priv->substream); 174 size_t buff_size = snd_pcm_lib_buffer_bytes(priv->substream); 175 size_t period_size = snd_pcm_lib_period_bytes(priv->substream); 177 snd_pcm_format_t format = priv->substream->runtime->format; 207 snd_pcm_period_elapsed(priv->substream); 212 stm32_adfsdm_trigger(struct snd_soc_component *component, struct snd_pcm_substream *substream, int cmd) argument 233 stm32_adfsdm_pcm_open(struct snd_soc_component *component, struct snd_pcm_substream *substream) argument 247 stm32_adfsdm_pcm_close(struct snd_soc_component *component, struct snd_pcm_substream *substream) argument 259 stm32_adfsdm_pcm_pointer( struct snd_soc_component *component, struct snd_pcm_substream *substream) argument 270 stm32_adfsdm_pcm_hw_params(struct snd_soc_component *component, struct snd_pcm_substream *substream, struct snd_pcm_hw_params *params) argument [all...] |
/linux-master/sound/soc/bcm/ |
H A D | cygnus-pcm.c | 198 struct snd_pcm_substream *substream) 200 struct snd_soc_pcm_runtime *soc_runtime = snd_soc_substream_to_rtd(substream); 202 return snd_soc_dai_get_dma_data(snd_soc_rtd_to_cpu(soc_runtime, 0), substream); 246 static int configure_ringbuf_regs(struct snd_pcm_substream *substream) argument 252 aio = cygnus_dai_get_dma_data(substream); 255 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) { 295 static struct ringbuf_regs *get_ringbuf(struct snd_pcm_substream *substream) argument 300 aio = cygnus_dai_get_dma_data(substream); 302 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) 310 static void enable_intr(struct snd_pcm_substream *substream) argument 197 cygnus_dai_get_dma_data( struct snd_pcm_substream *substream) argument 344 disable_intr(struct snd_pcm_substream *substream) argument 369 cygnus_pcm_trigger(struct snd_soc_component *component, struct snd_pcm_substream *substream, int cmd) argument 391 cygnus_pcm_period_elapsed(struct snd_pcm_substream *substream) argument 571 cygnus_pcm_open(struct snd_soc_component *component, struct snd_pcm_substream *substream) argument 608 cygnus_pcm_close(struct snd_soc_component *component, struct snd_pcm_substream *substream) argument 629 cygnus_pcm_prepare(struct snd_soc_component *component, struct snd_pcm_substream *substream) argument 663 cygnus_pcm_pointer(struct snd_soc_component *component, struct snd_pcm_substream *substream) argument [all...] |