Home
last modified time | relevance | path

Searched refs:SNDRV_PCM_STREAM_CAPTURE (Results 1 – 25 of 240) sorted by relevance

12345678910

/linux/sound/soc/ti/
H A Domap-mcpdm.c187 mcpdm->config[SNDRV_PCM_STREAM_CAPTURE].threshold); in omap_mcpdm_open_streams()
269 int stream1 = tx ? SNDRV_PCM_STREAM_PLAYBACK : SNDRV_PCM_STREAM_CAPTURE; in omap_mcpdm_dai_shutdown()
270 int stream2 = tx ? SNDRV_PCM_STREAM_CAPTURE : SNDRV_PCM_STREAM_PLAYBACK; in omap_mcpdm_dai_shutdown()
308 if (stream == SNDRV_PCM_STREAM_CAPTURE) in omap_mcpdm_dai_hw_params()
314 if (stream == SNDRV_PCM_STREAM_CAPTURE) in omap_mcpdm_dai_hw_params()
381 int stream1 = tx ? SNDRV_PCM_STREAM_PLAYBACK : SNDRV_PCM_STREAM_CAPTURE; in omap_mcpdm_prepare()
382 int stream2 = tx ? SNDRV_PCM_STREAM_CAPTURE : SNDRV_PCM_STREAM_PLAYBACK; in omap_mcpdm_prepare()
430 mcpdm->config[SNDRV_PCM_STREAM_CAPTURE].threshold = in omap_mcpdm_probe()
435 &mcpdm->dma_data[SNDRV_PCM_STREAM_CAPTURE]); in omap_mcpdm_probe()
H A Ddavinci-mcasp.c247 mcasp->irq_request[SNDRV_PCM_STREAM_CAPTURE]); in mcasp_start_rx()
302 mcasp->irq_request[SNDRV_PCM_STREAM_CAPTURE]); in mcasp_stop_rx()
398 u32 irq_mask = mcasp->irq_request[SNDRV_PCM_STREAM_CAPTURE]; in davinci_mcasp_rx_irq_handler()
407 substream = mcasp->substreams[SNDRV_PCM_STREAM_CAPTURE]; in davinci_mcasp_rx_irq_handler()
433 if (mcasp->substreams[SNDRV_PCM_STREAM_CAPTURE]) in davinci_mcasp_common_irq_handler()
746 ret = davinci_mcasp_ch_constraint(mcasp, SNDRV_PCM_STREAM_CAPTURE, in davinci_mcasp_set_ch_constraints()
783 mcasp->tdm_mask[SNDRV_PCM_STREAM_CAPTURE] = rx_mask; in davinci_mcasp_set_tdm_slot()
881 mcasp->active_serializers[SNDRV_PCM_STREAM_CAPTURE]; in mcasp_common_hw_param()
1034 } else if (stream == SNDRV_PCM_STREAM_CAPTURE) { in mcasp_i2s_hw_param()
2315 mcasp->irq_request[SNDRV_PCM_STREAM_CAPTURE] = ROVRN; in davinci_mcasp_probe()
[all …]
/linux/sound/soc/google/
H A Dchv3-i2s.c145 if (substream->stream == SNDRV_PCM_STREAM_CAPTURE) in chv3_dma_open()
158 if (substream->pstr->stream == SNDRV_PCM_STREAM_CAPTURE) in chv3_dma_close()
181 substream = rtd->pcm->streams[SNDRV_PCM_STREAM_CAPTURE].substream; in chv3_dma_pcm_construct()
211 if (substream->pstr->stream == SNDRV_PCM_STREAM_CAPTURE) { in chv3_dma_prepare()
240 if (substream->pstr->stream == SNDRV_PCM_STREAM_CAPTURE) { in chv3_dma_pointer()
262 if (substream->pstr->stream == SNDRV_PCM_STREAM_CAPTURE) in chv3_dma_ack()
/linux/sound/soc/sof/intel/
H A Dhda-trace.c45 hda->dtrace_stream = hda_dsp_stream_get(sdev, SNDRV_PCM_STREAM_CAPTURE, in hda_dsp_trace_init()
63 hda_dsp_stream_put(sdev, SNDRV_PCM_STREAM_CAPTURE, in hda_dsp_trace_init()
81 SNDRV_PCM_STREAM_CAPTURE, in hda_dsp_trace_release()
/linux/sound/pci/nm256/
H A Dnm256.c344 u32 poffset = (stream == SNDRV_PCM_STREAM_CAPTURE ? in snd_nm256_load_coefficient()
348 addr += (stream == SNDRV_PCM_STREAM_CAPTURE ? in snd_nm256_load_coefficient()
359 if (stream == SNDRV_PCM_STREAM_CAPTURE) in snd_nm256_load_coefficient()
437 case SNDRV_PCM_STREAM_CAPTURE: in snd_nm256_set_format()
744 s = &chip->streams[SNDRV_PCM_STREAM_CAPTURE]; in snd_nm256_capture_update()
846 snd_nm256_setup_stream(chip, &chip->streams[SNDRV_PCM_STREAM_CAPTURE], in snd_nm256_capture_open()
921 snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, &snd_nm256_capture_ops); in snd_nm256_pcm()
964 if (chip->streams[SNDRV_PCM_STREAM_CAPTURE].running) in snd_nm256_intr_check()
1410 if (chip->streams[SNDRV_PCM_STREAM_CAPTURE].running) in snd_nm256_free()
1434 chip->streams[SNDRV_PCM_STREAM_CAPTURE].bufsize = capture_bufsize * 1024; in snd_nm256_create()
[all …]
/linux/sound/usb/usx2y/
H A Dusx2yhwdeppcm.c250 capsubs = usx2y->subs[SNDRV_PCM_STREAM_CAPTURE]; in i_usx2y_usbpcm_urb_complete()
251 capsubs2 = usx2y->subs[SNDRV_PCM_STREAM_CAPTURE + 2]; in i_usx2y_usbpcm_urb_complete()
300 if (prepare_subs == usx2y->subs[SNDRV_PCM_STREAM_CAPTURE]) { in i_usx2y_usbpcm_subs_startup()
301 cap_subs2 = usx2y->subs[SNDRV_PCM_STREAM_CAPTURE + 2]; in i_usx2y_usbpcm_subs_startup()
371 cap_subs2 = subs->usx2y->subs[SNDRV_PCM_STREAM_CAPTURE + 2]; in snd_usx2y_usbpcm_hw_free()
373 cap_subs = subs->usx2y->subs[SNDRV_PCM_STREAM_CAPTURE]; in snd_usx2y_usbpcm_hw_free()
418 if (stream == SNDRV_PCM_STREAM_CAPTURE) { in usx2y_usbpcm_urbs_start()
502 struct snd_usx2y_substream *capsubs = subs->usx2y->subs[SNDRV_PCM_STREAM_CAPTURE]; in snd_usx2y_usbpcm_prepare()
756 snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, &snd_usx2y_usbpcm_ops); in usx2y_hwdep_pcm_new()
766 snd_pcm_set_managed_buffer(pcm->streams[SNDRV_PCM_STREAM_CAPTURE].substream, in usx2y_hwdep_pcm_new()
H A Dusbusx2yaudio.c324 capsubs = usx2y->subs[SNDRV_PCM_STREAM_CAPTURE]; in i_usx2y_urb_complete()
564 atomic_read(&subs->usx2y->subs[SNDRV_PCM_STREAM_CAPTURE]->state) >= STATE_PREPARED) { in snd_usx2y_pcm_trigger()
830 cap_subs = subs->usx2y->subs[SNDRV_PCM_STREAM_CAPTURE]; in snd_usx2y_pcm_hw_free()
860 struct snd_usx2y_substream *capsubs = subs->usx2y->subs[SNDRV_PCM_STREAM_CAPTURE]; in snd_usx2y_pcm_prepare()
979 for (i = playback_endpoint ? SNDRV_PCM_STREAM_PLAYBACK : SNDRV_PCM_STREAM_CAPTURE; in usx2y_audio_stream_new()
980 i <= SNDRV_PCM_STREAM_CAPTURE; ++i) { in usx2y_audio_stream_new()
990 usx2y_substream[SNDRV_PCM_STREAM_CAPTURE]->endpoint = capture_endpoint; in usx2y_audio_stream_new()
1002 snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, &snd_usx2y_pcm_ops); in usx2y_audio_stream_new()
1017 snd_pcm_set_managed_buffer(pcm->streams[SNDRV_PCM_STREAM_CAPTURE].substream, in usx2y_audio_stream_new()
/linux/sound/pci/lx6464es/
H A Dlx6464es.c101 int is_capture = (substream->stream == SNDRV_PCM_STREAM_CAPTURE); in lx_hardware_open()
127 int is_capture = (substream->stream == SNDRV_PCM_STREAM_CAPTURE); in lx_hardware_start()
158 int is_capture = (substream->stream == SNDRV_PCM_STREAM_CAPTURE); in lx_hardware_stop()
189 int is_capture = (substream->stream == SNDRV_PCM_STREAM_CAPTURE); in lx_hardware_close()
271 int is_capture = (substream->stream == SNDRV_PCM_STREAM_CAPTURE); in lx_pcm_stream_pointer()
290 const int is_capture = (substream->stream == SNDRV_PCM_STREAM_CAPTURE); in lx_pcm_prepare()
373 int is_capture = (substream->stream == SNDRV_PCM_STREAM_CAPTURE); in lx_pcm_hw_free()
518 const int is_capture = (substream->stream == SNDRV_PCM_STREAM_CAPTURE); in lx_pcm_trigger()
813 snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, &lx_ops_capture); in lx_pcm_create()
/linux/sound/soc/mediatek/mt8365/
H A Dmt8365-dai-i2s.c524 (substream->stream == SNDRV_PCM_STREAM_CAPTURE) && in mt8365_dai_i2s_startup()
533 if (substream->stream == SNDRV_PCM_STREAM_CAPTURE && !i2s_in_slave) in mt8365_dai_i2s_startup()
550 bool reset_i2s_in_change = (substream->stream == SNDRV_PCM_STREAM_CAPTURE); in mt8365_dai_i2s_shutdown()
552 (substream->stream == SNDRV_PCM_STREAM_CAPTURE) && in mt8365_dai_i2s_shutdown()
572 be->prepared[SNDRV_PCM_STREAM_CAPTURE] = false; in mt8365_dai_i2s_shutdown()
597 bool apply_i2s_in_change = (substream->stream == SNDRV_PCM_STREAM_CAPTURE); in mt8365_dai_i2s_prepare()
665 be->prepared[SNDRV_PCM_STREAM_CAPTURE] = true; in mt8365_dai_i2s_prepare()
H A Dmt8365-dai-pcm.c139 snd_soc_dai_stream_active(dai, SNDRV_PCM_STREAM_CAPTURE)) > 1) { in mt8365_dai_pcm1_prepare()
143 snd_soc_dai_stream_active(dai, SNDRV_PCM_STREAM_CAPTURE)); in mt8365_dai_pcm1_prepare()
/linux/sound/soc/fsl/
H A Dmpc5200_dma.c140 if (substream->pstr->stream == SNDRV_PCM_STREAM_CAPTURE) in psc_dma_trigger()
163 if (substream->pstr->stream == SNDRV_PCM_STREAM_CAPTURE) in psc_dma_trigger()
222 if (substream->pstr->stream == SNDRV_PCM_STREAM_CAPTURE) in psc_dma_open()
249 if (substream->pstr->stream == SNDRV_PCM_STREAM_CAPTURE) in psc_dma_close()
274 if (substream->pstr->stream == SNDRV_PCM_STREAM_CAPTURE) in psc_dma_pointer()
/linux/sound/soc/spear/
H A Dspdif_in.c71 if (substream->stream != SNDRV_PCM_STREAM_CAPTURE) in spdif_in_shutdown()
101 if (substream->stream != SNDRV_PCM_STREAM_CAPTURE) in spdif_in_hw_params()
117 if (substream->stream != SNDRV_PCM_STREAM_CAPTURE) in spdif_in_trigger()
/linux/sound/usb/
H A Dproc.c222 if (stream->substream[SNDRV_PCM_STREAM_CAPTURE].num_formats) { in proc_pcm_format_read()
224 proc_dump_substream_status(chip, &stream->substream[SNDRV_PCM_STREAM_CAPTURE], buffer); in proc_pcm_format_read()
225 proc_dump_substream_formats(&stream->substream[SNDRV_PCM_STREAM_CAPTURE], buffer); in proc_pcm_format_read()
/linux/sound/isa/
H A Dcmi8330.c403 #define CMI_AD_STREAM SNDRV_PCM_STREAM_CAPTURE
405 #define CMI_SB_STREAM SNDRV_PCM_STREAM_CAPTURE
423 substream->private_data = chip->streams[SNDRV_PCM_STREAM_CAPTURE].private_data; in snd_cmi8330_capture_open()
424 return chip->streams[SNDRV_PCM_STREAM_CAPTURE].open(substream); in snd_cmi8330_capture_open()
458 snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, &chip->streams[SNDRV_PCM_STREAM_CAPTURE].ops); in snd_cmi8330_pcm()
/linux/sound/soc/codecs/
H A Dadau17x1.c277 SNDRV_PCM_STREAM_CAPTURE, adau17x1_capture_mux_text);
704 adau->tdm_slot[SNDRV_PCM_STREAM_CAPTURE] = 0; in adau17x1_set_dai_tdm_slot()
708 adau->tdm_slot[SNDRV_PCM_STREAM_CAPTURE] = 1; in adau17x1_set_dai_tdm_slot()
712 adau->tdm_slot[SNDRV_PCM_STREAM_CAPTURE] = 2; in adau17x1_set_dai_tdm_slot()
716 adau->tdm_slot[SNDRV_PCM_STREAM_CAPTURE] = 3; in adau17x1_set_dai_tdm_slot()
760 if (adau->dsp_bypass[SNDRV_PCM_STREAM_CAPTURE]) { in adau17x1_set_dai_tdm_slot()
762 (adau->tdm_slot[SNDRV_PCM_STREAM_CAPTURE] * 2) + 1); in adau17x1_set_dai_tdm_slot()
/linux/drivers/staging/greybus/
H A Daudio_codec.c187 module_state = data->state[SNDRV_PCM_STREAM_CAPTURE]; in gbaudio_module_enable_rx()
189 params = find_dai_stream_params(codec, id, SNDRV_PCM_STREAM_CAPTURE); in gbaudio_module_enable_rx()
206 data->state[SNDRV_PCM_STREAM_CAPTURE] = GBAUDIO_CODEC_STARTUP; in gbaudio_module_enable_rx()
223 data->state[SNDRV_PCM_STREAM_CAPTURE] = GBAUDIO_CODEC_HWPARAMS; in gbaudio_module_enable_rx()
245 data->state[SNDRV_PCM_STREAM_CAPTURE] = GBAUDIO_CODEC_PREPARE; in gbaudio_module_enable_rx()
265 module_state = data->state[SNDRV_PCM_STREAM_CAPTURE]; in gbaudio_module_disable_rx()
277 data->state[SNDRV_PCM_STREAM_CAPTURE] = GBAUDIO_CODEC_HWPARAMS; in gbaudio_module_disable_rx()
292 data->state[SNDRV_PCM_STREAM_CAPTURE] = GBAUDIO_CODEC_SHUTDOWN; in gbaudio_module_disable_rx()
546 case SNDRV_PCM_STREAM_CAPTURE: in gbcodec_prepare()
/linux/sound/pci/oxygen/
H A Doxygen_pcm.c694 snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, in oxygen_pcm_init()
697 snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, in oxygen_pcm_init()
708 snd_pcm_set_managed_buffer(pcm->streams[SNDRV_PCM_STREAM_CAPTURE].substream, in oxygen_pcm_init()
725 snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, in oxygen_pcm_init()
755 snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, in oxygen_pcm_init()
770 snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, in oxygen_pcm_init()
/linux/sound/firewire/dice/
H A Ddice-pcm.c29 if (substream->stream == SNDRV_PCM_STREAM_CAPTURE) in dice_rate_constraint()
67 if (substream->stream == SNDRV_PCM_STREAM_CAPTURE) in dice_channels_constraint()
135 if (substream->stream == SNDRV_PCM_STREAM_CAPTURE) { in init_hw_info()
448 snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, in snd_dice_create_pcm()
/linux/include/sound/
H A Dsoc-dai.h479 #define snd_soc_dai_get_widget_capture(dai) snd_soc_dai_get_widget(dai, SNDRV_PCM_STREAM_CAPTURE)
487 …dai_set_widget_capture(dai, widget) snd_soc_dai_set_widget(dai, SNDRV_PCM_STREAM_CAPTURE, widget)
495 …efine snd_soc_dai_dma_data_get_capture(dai) snd_soc_dai_dma_data_get(dai, SNDRV_PCM_STREAM_CAPTURE)
503 …dai_dma_data_set_capture(dai, data) snd_soc_dai_dma_data_set(dai, SNDRV_PCM_STREAM_CAPTURE, data)
/linux/drivers/media/pci/solo6x10/
H A Dsolo6x10-g723.c79 &solo_dev->snd_pcm->streams[SNDRV_PCM_STREAM_CAPTURE]; in solo_g723_isr()
303 snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, in solo_snd_pcm_init()
310 for (i = 0, ss = pcm->streams[SNDRV_PCM_STREAM_CAPTURE].substream; in solo_snd_pcm_init()
/linux/sound/drivers/
H A Daloop.c62 #define CABLE_VALID_CAPTURE BIT(SNDRV_PCM_STREAM_CAPTURE)
350 cruntime = cable->streams[SNDRV_PCM_STREAM_CAPTURE]-> in loopback_check_format()
359 if (stream == SNDRV_PCM_STREAM_CAPTURE) { in loopback_check_format()
362 snd_pcm_stop(cable->streams[SNDRV_PCM_STREAM_CAPTURE]-> in loopback_check_format()
500 if (substream->stream == SNDRV_PCM_STREAM_CAPTURE) { in loopback_prepare()
651 cable->streams[SNDRV_PCM_STREAM_CAPTURE]; in loopback_jiffies_timer_pos_update()
662 if (running & (1 << SNDRV_PCM_STREAM_CAPTURE)) { in loopback_jiffies_timer_pos_update()
773 dpcm_capt = cable->streams[SNDRV_PCM_STREAM_CAPTURE]; in loopback_snd_timer_period_elapsed()
786 substream_capt = (running & (1 << SNDRV_PCM_STREAM_CAPTURE)) ? in loopback_snd_timer_period_elapsed()
813 (running & (1 << SNDRV_PCM_STREAM_CAPTURE))) { in loopback_snd_timer_period_elapsed()
[all …]
/linux/sound/usb/line6/
H A Dpcm.c219 if (direction == SNDRV_PCM_STREAM_CAPTURE) { in line6_stream_stop()
243 if (s->stream == SNDRV_PCM_STREAM_CAPTURE && in snd_line6_trigger()
259 if (s->stream == SNDRV_PCM_STREAM_CAPTURE && in snd_line6_trigger()
494 snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, &snd_line6_capture_ops); in snd_line6_new_pcm()
/linux/sound/virtio/
H A Dvirtio_chmap.c97 vs = &vpcm->streams[SNDRV_PCM_STREAM_CAPTURE]; in virtsnd_chmap_parse_cfg()
182 vs = &vpcm->streams[SNDRV_PCM_STREAM_CAPTURE]; in virtsnd_chmap_build_devs()
/linux/sound/pcmcia/pdaudiocf/
H A Dpdaudiocf_pcm.c259 snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, &pdacf_pcm_capture_ops); in snd_pdacf_pcm_new()
269 err = snd_ak4117_build(chip->ak4117, pcm->streams[SNDRV_PCM_STREAM_CAPTURE].substream); in snd_pdacf_pcm_new()
/linux/sound/soc/samsung/
H A Ddmaengine.c32 pcm_conf->chan_names[SNDRV_PCM_STREAM_CAPTURE] = rx; in samsung_asoc_dma_platform_register()

12345678910