/linux-master/sound/soc/ |
H A D | soc-pcm.c | 256 static int dpcm_fe_dai_do_trigger(struct snd_pcm_substream *substream, int cmd); 260 struct snd_pcm_substream *substream = local 265 dpcm_fe_dai_do_trigger(substream, 339 * @substream: the pcm substream 342 * Sets the substream runtime hardware parameters. 344 int snd_soc_set_runtime_hwparams(struct snd_pcm_substream *substream, argument 347 substream->runtime->hw = *hw; 394 static int soc_pcm_apply_symmetry(struct snd_pcm_substream *substream, argument 397 struct snd_soc_pcm_runtime *rtd = snd_soc_substream_to_rtd(substream); 427 soc_pcm_params_symmetry(struct snd_pcm_substream *substream, struct snd_pcm_hw_params *params) argument 461 soc_pcm_update_symmetry(struct snd_pcm_substream *substream) argument 482 soc_pcm_set_msb(struct snd_pcm_substream *substream, int bits) argument 496 soc_pcm_apply_msb(struct snd_pcm_substream *substream) argument 652 soc_pcm_init_runtime_hw(struct snd_pcm_substream *substream) argument 669 soc_pcm_components_open(struct snd_pcm_substream *substream) argument 688 soc_pcm_components_close(struct snd_pcm_substream *substream, int rollback) argument 706 soc_pcm_clean(struct snd_soc_pcm_runtime *rtd, struct snd_pcm_substream *substream, int rollback) argument 747 __soc_pcm_close(struct snd_soc_pcm_runtime *rtd, struct snd_pcm_substream *substream) argument 754 soc_pcm_close(struct snd_pcm_substream *substream) argument 764 soc_hw_sanity_check(struct snd_pcm_substream *substream) argument 807 __soc_pcm_open(struct snd_soc_pcm_runtime *rtd, struct snd_pcm_substream *substream) argument 870 soc_pcm_open(struct snd_pcm_substream *substream) argument 886 __soc_pcm_prepare(struct snd_soc_pcm_runtime *rtd, struct snd_pcm_substream *substream) argument 926 soc_pcm_prepare(struct snd_pcm_substream *substream) argument 948 soc_pcm_hw_clean(struct snd_soc_pcm_runtime *rtd, struct snd_pcm_substream *substream, int rollback) argument 987 __soc_pcm_hw_free(struct snd_soc_pcm_runtime *rtd, struct snd_pcm_substream *substream) argument 994 soc_pcm_hw_free(struct snd_pcm_substream *substream) argument 1010 __soc_pcm_hw_params(struct snd_soc_pcm_runtime *rtd, struct snd_pcm_substream *substream, struct snd_pcm_hw_params *params) argument 1112 soc_pcm_hw_params(struct snd_pcm_substream *substream, struct snd_pcm_hw_params *params) argument 1138 soc_pcm_trigger(struct snd_pcm_substream *substream, int cmd) argument 1220 soc_pcm_pointer(struct snd_pcm_substream *substream) argument 1698 dpcm_runtime_setup_fe(struct snd_pcm_substream *substream) argument 1733 dpcm_runtime_setup_be_format(struct snd_pcm_substream *substream) argument 1771 dpcm_runtime_setup_be_chan(struct snd_pcm_substream *substream) argument 1819 dpcm_runtime_setup_be_rate(struct snd_pcm_substream *substream) argument 1941 dpcm_fe_dai_shutdown(struct snd_pcm_substream *substream) argument 2007 dpcm_fe_dai_hw_free(struct snd_pcm_substream *substream) argument 2109 dpcm_fe_dai_hw_params(struct snd_pcm_substream *substream, struct snd_pcm_hw_params *params) argument 2312 dpcm_dai_trigger_fe_be(struct snd_pcm_substream *substream, int cmd, bool fe_first) argument 2344 dpcm_fe_dai_do_trigger(struct snd_pcm_substream *substream, int cmd) argument 2431 dpcm_fe_dai_trigger(struct snd_pcm_substream *substream, int cmd) argument 2485 dpcm_fe_dai_prepare(struct snd_pcm_substream *substream) argument 2527 struct snd_pcm_substream *substream = local 2560 struct snd_pcm_substream *substream = local [all...] |
H A D | soc-component.c | 57 * We might want to check substream by using list. 60 #define soc_component_mark_push(component, substream, tgt) ((component)->mark_##tgt = substream) 61 #define soc_component_mark_pop(component, substream, tgt) ((component)->mark_##tgt = NULL) 62 #define soc_component_mark_match(component, substream, tgt) ((component)->mark_##tgt == substream) 332 struct snd_pcm_substream *substream) 337 ret = component->driver->open(component, substream); 339 /* mark substream if succeeded */ 341 soc_component_mark_push(component, substream, ope 331 snd_soc_component_open(struct snd_soc_component *component, struct snd_pcm_substream *substream) argument 346 snd_soc_component_close(struct snd_soc_component *component, struct snd_pcm_substream *substream, int rollback) argument 964 snd_soc_pcm_component_pointer(struct snd_pcm_substream *substream) argument 992 snd_soc_pcm_component_delay(struct snd_pcm_substream *substream, snd_pcm_sframes_t *cpu_delay, snd_pcm_sframes_t *codec_delay) argument 1020 snd_soc_pcm_component_ioctl(struct snd_pcm_substream *substream, unsigned int cmd, void *arg) argument 1038 snd_soc_pcm_component_sync_stop(struct snd_pcm_substream *substream) argument 1056 snd_soc_pcm_component_copy(struct snd_pcm_substream *substream, int channel, unsigned long pos, struct iov_iter *iter, unsigned long bytes) argument 1074 snd_soc_pcm_component_page(struct snd_pcm_substream *substream, unsigned long offset) argument 1095 snd_soc_pcm_component_mmap(struct snd_pcm_substream *substream, struct vm_area_struct *vma) argument 1143 snd_soc_pcm_component_prepare(struct snd_pcm_substream *substream) argument 1160 snd_soc_pcm_component_hw_params(struct snd_pcm_substream *substream, struct snd_pcm_hw_params *params) argument 1181 snd_soc_pcm_component_hw_free(struct snd_pcm_substream *substream, int rollback) argument 1203 soc_component_trigger(struct snd_soc_component *component, struct snd_pcm_substream *substream, int cmd) argument 1215 snd_soc_pcm_component_trigger(struct snd_pcm_substream *substream, int cmd, int rollback) argument 1287 snd_soc_pcm_component_ack(struct snd_pcm_substream *substream) argument [all...] |
/linux-master/sound/soc/qcom/ |
H A D | lpass-platform.c | 193 struct snd_pcm_substream *substream) 195 struct snd_pcm_runtime *runtime = substream->runtime; 196 struct snd_soc_pcm_runtime *soc_runtime = snd_soc_substream_to_rtd(substream); 200 int ret, dma_ch, dir = substream->stream; 226 drvdata->substream[dma_ch] = substream; 230 drvdata->hdmi_substream[dma_ch] = substream; 235 drvdata->rxtx_substream[dma_ch] = substream; 239 drvdata->va_substream[dma_ch] = substream; 255 snd_soc_set_runtime_hwparams(substream, 192 lpass_platform_pcmops_open(struct snd_soc_component *component, struct snd_pcm_substream *substream) argument 284 lpass_platform_pcmops_close(struct snd_soc_component *component, struct snd_pcm_substream *substream) argument 322 __lpass_get_dmactl_handle(const struct snd_pcm_substream *substream, struct snd_soc_component *component) argument 354 __lpass_get_id(const struct snd_pcm_substream *substream, struct snd_soc_component *component) argument 389 __lpass_get_regmap_handle(const struct snd_pcm_substream *substream, struct snd_soc_component *component) argument 416 lpass_platform_pcmops_hw_params(struct snd_soc_component *component, struct snd_pcm_substream *substream, struct snd_pcm_hw_params *params) argument 570 lpass_platform_pcmops_hw_free(struct snd_soc_component *component, struct snd_pcm_substream *substream) argument 597 lpass_platform_pcmops_prepare(struct snd_soc_component *component, struct snd_pcm_substream *substream) argument 660 lpass_platform_pcmops_trigger(struct snd_soc_component *component, struct snd_pcm_substream *substream, int cmd) argument 859 lpass_platform_pcmops_pointer( struct snd_soc_component *component, struct snd_pcm_substream *substream) argument 896 lpass_platform_cdc_dma_mmap(struct snd_pcm_substream *substream, struct vm_area_struct *vma) argument 911 lpass_platform_pcmops_mmap(struct snd_soc_component *component, struct snd_pcm_substream *substream, struct vm_area_struct *vma) argument 925 lpass_dma_interrupt_handler( struct snd_pcm_substream *substream, struct lpass_data *drvdata, int chan, u32 interrupts) argument 1132 struct snd_pcm_substream *substream; local 1221 lpass_platform_copy(struct snd_soc_component *component, struct snd_pcm_substream *substream, int channel, unsigned long pos, struct iov_iter *buf, unsigned long bytes) argument [all...] |
H A D | sm8250.c | 49 static int sm8250_snd_startup(struct snd_pcm_substream *substream) argument 53 struct snd_soc_pcm_runtime *rtd = substream->private_data; 70 return qcom_snd_sdw_startup(substream); 73 static void sm2450_snd_shutdown(struct snd_pcm_substream *substream) argument 75 struct snd_soc_pcm_runtime *rtd = substream->private_data; 84 static int sm8250_snd_hw_params(struct snd_pcm_substream *substream, argument 87 struct snd_soc_pcm_runtime *rtd = substream->private_data; 91 return qcom_snd_sdw_hw_params(substream, params, &pdata->sruntime[cpu_dai->id]); 94 static int sm8250_snd_prepare(struct snd_pcm_substream *substream) argument 96 struct snd_soc_pcm_runtime *rtd = substream 105 sm8250_snd_hw_free(struct snd_pcm_substream *substream) argument [all...] |
/linux-master/sound/soc/atmel/ |
H A D | atmel-pcm-pdc.c | 89 struct snd_pcm_substream *substream) 91 struct atmel_runtime_data *prtd = substream->runtime->private_data; 99 substream->stream == SNDRV_PCM_STREAM_PLAYBACK 130 snd_pcm_period_elapsed(substream); 138 struct snd_pcm_substream *substream, 141 struct snd_pcm_runtime *runtime = substream->runtime; 143 struct snd_soc_pcm_runtime *rtd = snd_soc_substream_to_rtd(substream); 148 prtd->params = snd_soc_dai_get_dma_data(snd_soc_rtd_to_cpu(rtd, 0), substream); 165 struct snd_pcm_substream *substream) 167 struct atmel_runtime_data *prtd = substream 88 atmel_pcm_dma_irq(u32 ssc_sr, struct snd_pcm_substream *substream) argument 137 atmel_pcm_hw_params(struct snd_soc_component *component, struct snd_pcm_substream *substream, struct snd_pcm_hw_params *params) argument 164 atmel_pcm_hw_free(struct snd_soc_component *component, struct snd_pcm_substream *substream) argument 179 atmel_pcm_prepare(struct snd_soc_component *component, struct snd_pcm_substream *substream) argument 192 atmel_pcm_trigger(struct snd_soc_component *component, struct snd_pcm_substream *substream, int cmd) argument 258 atmel_pcm_pointer(struct snd_soc_component *component, struct snd_pcm_substream *substream) argument 276 atmel_pcm_open(struct snd_soc_component *component, struct snd_pcm_substream *substream) argument 302 atmel_pcm_close(struct snd_soc_component *component, struct snd_pcm_substream *substream) argument [all...] |
/linux-master/sound/soc/mediatek/common/ |
H A D | mtk-afe-platform-driver.h | 21 struct snd_pcm_substream *substream);
|
H A D | mtk-afe-fe-dai.c | 37 int mtk_afe_fe_startup(struct snd_pcm_substream *substream, argument 40 struct snd_soc_pcm_runtime *rtd = snd_soc_substream_to_rtd(substream); 42 struct snd_pcm_runtime *runtime = substream->runtime; 48 memif->substream = substream; 50 snd_pcm_hw_constraint_step(substream->runtime, 0, 56 snd_soc_set_runtime_hwparams(substream, mtk_afe_hardware); 64 if (substream->stream == SNDRV_PCM_STREAM_CAPTURE) { 98 void mtk_afe_fe_shutdown(struct snd_pcm_substream *substream, argument 101 struct snd_soc_pcm_runtime *rtd = snd_soc_substream_to_rtd(substream); 119 mtk_afe_fe_hw_params(struct snd_pcm_substream *substream, struct snd_pcm_hw_params *params, struct snd_soc_dai *dai) argument 184 mtk_afe_fe_hw_free(struct snd_pcm_substream *substream, struct snd_soc_dai *dai) argument 196 mtk_afe_fe_trigger(struct snd_pcm_substream *substream, int cmd, struct snd_soc_dai *dai) argument 263 mtk_afe_fe_prepare(struct snd_pcm_substream *substream, struct snd_soc_dai *dai) argument 523 mtk_memif_set_rate_substream(struct snd_pcm_substream *substream, int id, unsigned int rate) argument [all...] |
/linux-master/sound/soc/amd/acp/ |
H A D | acp-platform.c | 118 snd_pcm_period_elapsed(stream->substream); 125 snd_pcm_period_elapsed(stream->substream); 157 struct snd_pcm_substream *substream = stream->substream; local 159 dma_addr_t addr = substream->dma_buffer.addr; 181 static int acp_dma_open(struct snd_soc_component *component, struct snd_pcm_substream *substream) argument 183 struct snd_pcm_runtime *runtime = substream->runtime; 193 stream->substream = substream; 195 if (substream 217 acp_dma_hw_params(struct snd_soc_component *component, struct snd_pcm_substream *substream, struct snd_pcm_hw_params *params) argument 232 acp_dma_pointer(struct snd_soc_component *component, struct snd_pcm_substream *substream) argument 264 acp_dma_close(struct snd_soc_component *component, struct snd_pcm_substream *substream) argument [all...] |
/linux-master/sound/soc/uniphier/ |
H A D | aio-dma.c | 30 struct snd_pcm_runtime *runtime = sub->substream->runtime; 45 snd_pcm_period_elapsed(sub->substream); 84 if (sub->substream) 97 struct snd_pcm_substream *substream) 99 struct snd_pcm_runtime *runtime = substream->runtime; 101 snd_soc_set_runtime_hwparams(substream, &uniphier_aiodma_hw); 108 struct snd_pcm_substream *substream) 110 struct snd_pcm_runtime *runtime = substream->runtime; 111 struct snd_soc_pcm_runtime *rtd = snd_soc_substream_to_rtd(substream); 113 struct uniphier_aio_sub *sub = &aio->sub[substream 96 uniphier_aiodma_open(struct snd_soc_component *component, struct snd_pcm_substream *substream) argument 107 uniphier_aiodma_prepare(struct snd_soc_component *component, struct snd_pcm_substream *substream) argument 134 uniphier_aiodma_trigger(struct snd_soc_component *component, struct snd_pcm_substream *substream, int cmd) argument 169 uniphier_aiodma_pointer( struct snd_soc_component *component, struct snd_pcm_substream *substream) argument 194 uniphier_aiodma_mmap(struct snd_soc_component *component, struct snd_pcm_substream *substream, struct vm_area_struct *vma) argument [all...] |
/linux-master/sound/soc/codecs/ |
H A D | cs42l43-sdw.c | 21 int cs42l43_sdw_add_peripheral(struct snd_pcm_substream *substream, argument 25 struct sdw_stream_runtime *sdw_stream = snd_soc_dai_get_dma_data(dai, substream); 34 snd_sdw_params_to_config(substream, params, &sconfig, &pconfig); 47 int cs42l43_sdw_remove_peripheral(struct snd_pcm_substream *substream, argument 51 struct sdw_stream_runtime *sdw_stream = snd_soc_dai_get_dma_data(dai, substream);
|
/linux-master/sound/isa/sb/ |
H A D | sb8_main.c | 90 static int snd_sb8_playback_prepare(struct snd_pcm_substream *substream) argument 93 struct snd_sb *chip = snd_pcm_substream_chip(substream); 94 struct snd_pcm_runtime *runtime = substream->runtime; 143 size = chip->p_dma_size = snd_pcm_lib_buffer_bytes(substream); 144 count = chip->p_period_size = snd_pcm_lib_period_bytes(substream); 192 static int snd_sb8_playback_trigger(struct snd_pcm_substream *substream, argument 196 struct snd_sb *chip = snd_pcm_substream_chip(substream); 211 struct snd_pcm_runtime *runtime = substream->runtime; 228 static int snd_sb8_capture_prepare(struct snd_pcm_substream *substream) argument 231 struct snd_sb *chip = snd_pcm_substream_chip(substream); 317 snd_sb8_capture_trigger(struct snd_pcm_substream *substream, int cmd) argument 357 struct snd_pcm_substream *substream; local 385 snd_sb8_playback_pointer(struct snd_pcm_substream *substream) argument 401 snd_sb8_capture_pointer(struct snd_pcm_substream *substream) argument 463 snd_sb8_open(struct snd_pcm_substream *substream) argument 526 snd_sb8_close(struct snd_pcm_substream *substream) argument [all...] |
/linux-master/sound/isa/gus/ |
H A D | gus_uart.c | 78 static int snd_gf1_uart_output_open(struct snd_rawmidi_substream *substream) argument 83 gus = substream->rmidi->private_data; 89 gus->midi_substream_output = substream; 97 static int snd_gf1_uart_input_open(struct snd_rawmidi_substream *substream) argument 103 gus = substream->rmidi->private_data; 109 gus->midi_substream_input = substream; 130 static int snd_gf1_uart_output_close(struct snd_rawmidi_substream *substream) argument 135 gus = substream->rmidi->private_data; 145 static int snd_gf1_uart_input_close(struct snd_rawmidi_substream *substream) argument 150 gus = substream 160 snd_gf1_uart_input_trigger(struct snd_rawmidi_substream *substream, int up) argument 178 snd_gf1_uart_output_trigger(struct snd_rawmidi_substream *substream, int up) argument [all...] |
/linux-master/drivers/usb/gadget/function/ |
H A D | u_uac1_legacy.c | 94 struct snd_pcm_substream *substream = snd->substream; local 123 snd_pcm_kernel_ioctl(substream, SNDRV_PCM_IOCTL_DROP, NULL); 124 snd_pcm_kernel_ioctl(substream, SNDRV_PCM_IOCTL_HW_PARAMS, params); 126 result = snd_pcm_kernel_ioctl(substream, SNDRV_PCM_IOCTL_PREPARE, NULL); 155 struct snd_pcm_substream *substream = snd->substream; local 156 struct snd_pcm_runtime *runtime = substream->runtime; 163 result = snd_pcm_kernel_ioctl(substream, 173 result = snd_pcm_kernel_write(snd->substream, bu [all...] |
/linux-master/sound/soc/intel/atom/ |
H A D | sst-mfld-platform-pcm.c | 123 static void sst_fill_alloc_params(struct snd_pcm_substream *substream, argument 129 ssize_t buffer_bytes = snd_pcm_lib_buffer_bytes(substream); 130 u32 buffer_addr = substream->runtime->dma_addr; 132 channels = substream->runtime->channels; 133 period_size = substream->runtime->period_size; 134 periodbytes = samples_to_bytes(substream->runtime, period_size); 142 static void sst_fill_pcm_params(struct snd_pcm_substream *substream, argument 145 param->uc.pcm_params.num_chan = (u8) substream->runtime->channels; 146 param->uc.pcm_params.pcm_wd_sz = substream->runtime->sample_bits; 147 param->uc.pcm_params.sfreq = substream 173 sst_fill_stream_params(void *substream, const struct sst_data *ctx, struct snd_sst_params *str_params, bool is_compress) argument 222 sst_platform_alloc_stream(struct snd_pcm_substream *substream, struct snd_soc_dai *dai) argument 257 struct snd_pcm_substream *substream = arg; local 272 sst_platform_init_stream(struct snd_pcm_substream *substream) argument 302 sst_media_open(struct snd_pcm_substream *substream, struct snd_soc_dai *dai) argument 359 sst_media_close(struct snd_pcm_substream *substream, struct snd_soc_dai *dai) argument 375 sst_media_prepare(struct snd_pcm_substream *substream, struct snd_soc_dai *dai) argument 401 sst_enable_ssp(struct snd_pcm_substream *substream, struct snd_soc_dai *dai) argument 413 sst_be_hw_params(struct snd_pcm_substream *substream, struct snd_pcm_hw_params *params, struct snd_soc_dai *dai) argument 453 sst_disable_ssp(struct snd_pcm_substream *substream, struct snd_soc_dai *dai) argument 577 sst_soc_open(struct snd_soc_component *component, struct snd_pcm_substream *substream) argument 590 sst_soc_trigger(struct snd_soc_component *component, struct snd_pcm_substream *substream, int cmd) argument 638 sst_soc_pointer(struct snd_soc_component *component, struct snd_pcm_substream *substream) argument 659 sst_soc_delay(struct snd_soc_component *component, struct snd_pcm_substream *substream) argument [all...] |
/linux-master/drivers/media/pci/cx23885/ |
H A D | cx23885-alsa.c | 252 snd_pcm_period_elapsed(chip->substream); 311 static int snd_cx23885_pcm_open(struct snd_pcm_substream *substream) argument 313 struct cx23885_audio_dev *chip = snd_pcm_substream_chip(substream); 314 struct snd_pcm_runtime *runtime = substream->runtime; 327 chip->substream = substream; 349 static int snd_cx23885_close(struct snd_pcm_substream *substream) argument 358 static int snd_cx23885_hw_params(struct snd_pcm_substream *substream, argument 361 struct cx23885_audio_dev *chip = snd_pcm_substream_chip(substream); 365 if (substream 418 snd_cx23885_hw_free(struct snd_pcm_substream *substream) argument 434 snd_cx23885_prepare(struct snd_pcm_substream *substream) argument 442 snd_cx23885_card_trigger(struct snd_pcm_substream *substream, int cmd) argument 471 snd_cx23885_pointer( struct snd_pcm_substream *substream) argument 486 snd_cx23885_page(struct snd_pcm_substream *substream, unsigned long offset) argument [all...] |
/linux-master/sound/firewire/tascam/ |
H A D | tascam-transaction.c | 61 struct snd_rawmidi_substream *substream) 71 consume = snd_rawmidi_transmit_peek(substream, msg, 3); 88 *label = (substream->number << 4) | 0x07; 91 *label = (substream->number << 4) | 0x04; 136 *label = (substream->number << 4) | (msg[0] >> 4); 150 struct snd_rawmidi_substream *substream = READ_ONCE(port->substream); local 153 if (substream == NULL) 157 snd_rawmidi_transmit_ack(substream, port->consume_bytes); 167 if (!snd_rawmidi_transmit_empty(substream)) 60 fill_message(struct snd_fw_async_midi_port *port, struct snd_rawmidi_substream *substream) argument 175 struct snd_rawmidi_substream *substream = READ_ONCE(port->substream); local 255 struct snd_rawmidi_substream *substream; local [all...] |
/linux-master/sound/pci/hda/ |
H A D | hda_controller.c | 41 azx_assign_device(struct azx *chip, struct snd_pcm_substream *substream) argument 45 s = snd_hdac_stream_assign(azx_bus(chip), substream); 58 to_hda_pcm_stream(struct snd_pcm_substream *substream) argument 60 struct azx_pcm *apcm = snd_pcm_substream_chip(substream); 61 return &apcm->info->stream[substream->stream]; 64 static u64 azx_adjust_codec_delay(struct snd_pcm_substream *substream, argument 67 struct azx_pcm *apcm = snd_pcm_substream_chip(substream); 68 struct hda_pcm_stream *hinfo = to_hda_pcm_stream(substream); 74 codec_frames = hinfo->ops.get_delay(hinfo, apcm->codec, substream); 76 substream 88 azx_pcm_close(struct snd_pcm_substream *substream) argument 106 azx_pcm_hw_params(struct snd_pcm_substream *substream, struct snd_pcm_hw_params *hw_params) argument 137 azx_pcm_hw_free(struct snd_pcm_substream *substream) argument 155 azx_pcm_prepare(struct snd_pcm_substream *substream) argument 208 azx_pcm_trigger(struct snd_pcm_substream *substream, int cmd) argument 299 struct snd_pcm_substream *substream = azx_dev->core.substream; local 329 azx_pcm_pointer(struct snd_pcm_substream *substream) argument 373 struct snd_pcm_substream *substream = ctx; local 479 azx_get_crosststamp(struct snd_pcm_substream *substream, struct system_device_crosststamp *xtstamp) argument 496 azx_get_time_info(struct snd_pcm_substream *substream, struct timespec64 *system_ts, struct timespec64 *audio_ts, struct snd_pcm_audio_tstamp_config *audio_tstamp_config, struct snd_pcm_audio_tstamp_report *audio_tstamp_report) argument 583 azx_pcm_open(struct snd_pcm_substream *substream) argument [all...] |
/linux-master/sound/soc/fsl/ |
H A D | mpc5200_dma.c | 104 * @substream: triggered substream 111 struct snd_pcm_substream *substream, int cmd) 113 struct snd_soc_pcm_runtime *rtd = snd_soc_substream_to_rtd(substream); 115 struct snd_pcm_runtime *runtime = substream->runtime; 116 struct psc_dma_stream *s = to_psc_dma_stream(substream, psc_dma); 125 substream->pstr->stream, runtime->frame_bits, 140 if (substream->pstr->stream == SNDRV_PCM_STREAM_CAPTURE) 158 substream->pstr->stream, s->period_count); 163 if (substream 110 psc_dma_trigger(struct snd_soc_component *component, struct snd_pcm_substream *substream, int cmd) argument 211 psc_dma_open(struct snd_soc_component *component, struct snd_pcm_substream *substream) argument 240 psc_dma_close(struct snd_soc_component *component, struct snd_pcm_substream *substream) argument 266 psc_dma_pointer(struct snd_soc_component *component, struct snd_pcm_substream *substream) argument [all...] |
/linux-master/sound/core/ |
H A D | pcm_param_trace.h | 29 TP_PROTO(struct snd_pcm_substream *substream, snd_pcm_hw_param_t type, int index, const struct snd_mask *prev, const struct snd_mask *curr), 30 TP_ARGS(substream, type, index, prev, curr), 43 __entry->card = substream->pcm->card->number; 44 __entry->device = substream->pcm->device; 45 __entry->subdevice = substream->number; 46 __entry->direction = substream->stream; 49 __entry->total = substream->runtime->hw_constraints.rules_num; 69 TP_PROTO(struct snd_pcm_substream *substream, snd_pcm_hw_param_t type, int index, const struct snd_interval *prev, const struct snd_interval *curr), 70 TP_ARGS(substream, type, index, prev, curr), 93 __entry->card = substream [all...] |
/linux-master/sound/pci/echoaudio/ |
H A D | midi.c | 154 static int snd_echo_midi_input_open(struct snd_rawmidi_substream *substream) argument 156 struct echoaudio *chip = substream->rmidi->private_data; 158 chip->midi_in = substream; 164 static void snd_echo_midi_input_trigger(struct snd_rawmidi_substream *substream, argument 167 struct echoaudio *chip = substream->rmidi->private_data; 179 static int snd_echo_midi_input_close(struct snd_rawmidi_substream *substream) argument 181 struct echoaudio *chip = substream->rmidi->private_data; 189 static int snd_echo_midi_output_open(struct snd_rawmidi_substream *substream) argument 191 struct echoaudio *chip = substream->rmidi->private_data; 195 chip->midi_out = substream; 250 snd_echo_midi_output_trigger(struct snd_rawmidi_substream *substream, int up) argument 280 snd_echo_midi_output_close(struct snd_rawmidi_substream *substream) argument [all...] |
/linux-master/sound/soc/meson/ |
H A D | aiu-fifo.c | 34 struct snd_pcm_substream *substream) 36 struct snd_soc_dai *dai = aiu_fifo_dai(substream); 38 struct snd_pcm_runtime *runtime = substream->runtime; 58 int aiu_fifo_trigger(struct snd_pcm_substream *substream, int cmd, argument 79 int aiu_fifo_prepare(struct snd_pcm_substream *substream, argument 95 int aiu_fifo_hw_params(struct snd_pcm_substream *substream, argument 99 struct snd_pcm_runtime *runtime = substream->runtime; 132 int aiu_fifo_startup(struct snd_pcm_substream *substream, argument 138 snd_soc_set_runtime_hwparams(substream, fifo->pcm); 144 ret = snd_pcm_hw_constraint_step(substream 33 aiu_fifo_pointer(struct snd_soc_component *component, struct snd_pcm_substream *substream) argument 168 aiu_fifo_shutdown(struct snd_pcm_substream *substream, struct snd_soc_dai *dai) argument [all...] |
/linux-master/sound/arm/ |
H A D | pxa2xx-ac97.c | 61 static int pxa2xx_ac97_pcm_open(struct snd_pcm_substream *substream) argument 63 struct snd_pcm_runtime *runtime = substream->runtime; 67 ret = pxa2xx_pcm_open(substream); 74 i = (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) ? 79 platform_ops = substream->pcm->card->dev->platform_data; 81 ret = platform_ops->startup(substream, platform_ops->priv); 83 pxa2xx_pcm_close(substream); 89 static int pxa2xx_ac97_pcm_close(struct snd_pcm_substream *substream) argument 93 platform_ops = substream->pcm->card->dev->platform_data; 95 platform_ops->shutdown(substream, platform_op 100 pxa2xx_ac97_pcm_prepare(struct snd_pcm_substream *substream) argument [all...] |
/linux-master/sound/soc/amd/raven/ |
H A D | acp3x-pcm-dma.c | 209 struct snd_pcm_substream *substream) 217 runtime = substream->runtime; 218 prtd = snd_soc_substream_to_rtd(substream); 225 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) 245 struct snd_pcm_substream *substream, 255 prtd = snd_soc_substream_to_rtd(substream); 259 rtd = substream->runtime->private_data; 264 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) { 268 adata->play_stream = substream; 272 adata->i2ssp_play_stream = substream; 208 acp3x_dma_open(struct snd_soc_component *component, struct snd_pcm_substream *substream) argument 244 acp3x_dma_hw_params(struct snd_soc_component *component, struct snd_pcm_substream *substream, struct snd_pcm_hw_params *params) argument 295 acp3x_dma_pointer(struct snd_soc_component *component, struct snd_pcm_substream *substream) argument 323 acp3x_dma_close(struct snd_soc_component *component, struct snd_pcm_substream *substream) argument [all...] |
/linux-master/sound/isa/msnd/ |
H A D | msnd.c | 466 static int snd_msnd_playback_open(struct snd_pcm_substream *substream) argument 468 struct snd_pcm_runtime *runtime = substream->runtime; 469 struct snd_msnd *chip = snd_pcm_substream_chip(substream); 479 chip->playback_substream = substream; 484 static int snd_msnd_playback_close(struct snd_pcm_substream *substream) argument 486 struct snd_msnd *chip = snd_pcm_substream_chip(substream); 494 static int snd_msnd_playback_hw_params(struct snd_pcm_substream *substream, argument 498 struct snd_msnd *chip = snd_pcm_substream_chip(substream); 517 static int snd_msnd_playback_prepare(struct snd_pcm_substream *substream) argument 519 struct snd_msnd *chip = snd_pcm_substream_chip(substream); 529 snd_msnd_playback_trigger(struct snd_pcm_substream *substream, int cmd) argument 555 snd_msnd_playback_pointer(struct snd_pcm_substream *substream) argument 573 snd_msnd_capture_open(struct snd_pcm_substream *substream) argument 589 snd_msnd_capture_close(struct snd_pcm_substream *substream) argument 598 snd_msnd_capture_prepare(struct snd_pcm_substream *substream) argument 610 snd_msnd_capture_trigger(struct snd_pcm_substream *substream, int cmd) argument 632 snd_msnd_capture_pointer(struct snd_pcm_substream *substream) argument 641 snd_msnd_capture_hw_params(struct snd_pcm_substream *substream, struct snd_pcm_hw_params *params) argument [all...] |
/linux-master/drivers/gpu/drm/bridge/synopsys/ |
H A D | dw-hdmi-ahb-audio.c | 121 struct snd_pcm_substream *substream; member in struct:snd_dw_hdmi 272 struct snd_pcm_substream *substream; local 281 substream = dw->substream; 282 if (stat & HDMI_IH_AHBDMAAUD_STAT0_DONE && substream) { 283 snd_pcm_period_elapsed(substream); 286 if (dw->substream) 318 static int dw_hdmi_open(struct snd_pcm_substream *substream) argument 320 struct snd_pcm_runtime *runtime = substream->runtime; 321 struct snd_dw_hdmi *dw = substream 376 dw_hdmi_close(struct snd_pcm_substream *substream) argument 389 dw_hdmi_hw_free(struct snd_pcm_substream *substream) argument 394 dw_hdmi_hw_params(struct snd_pcm_substream *substream, struct snd_pcm_hw_params *params) argument 402 dw_hdmi_prepare(struct snd_pcm_substream *substream) argument 464 dw_hdmi_trigger(struct snd_pcm_substream *substream, int cmd) argument 497 dw_hdmi_pointer(struct snd_pcm_substream *substream) argument [all...] |