Home
last modified time | relevance | path

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

1234567891011

/openbmc/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()
80 SNDRV_PCM_STREAM_CAPTURE, in hda_dsp_trace_release()
/openbmc/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()
/openbmc/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()
/openbmc/linux/sound/usb/usx2y/
H A Dusx2yhwdeppcm.c249 capsubs = usx2y->subs[SNDRV_PCM_STREAM_CAPTURE]; in i_usx2y_usbpcm_urb_complete()
250 capsubs2 = usx2y->subs[SNDRV_PCM_STREAM_CAPTURE + 2]; in i_usx2y_usbpcm_urb_complete()
299 if (prepare_subs == usx2y->subs[SNDRV_PCM_STREAM_CAPTURE]) { in i_usx2y_usbpcm_subs_startup()
300 cap_subs2 = usx2y->subs[SNDRV_PCM_STREAM_CAPTURE + 2]; in i_usx2y_usbpcm_subs_startup()
370 cap_subs2 = subs->usx2y->subs[SNDRV_PCM_STREAM_CAPTURE + 2]; in snd_usx2y_usbpcm_hw_free()
372 cap_subs = subs->usx2y->subs[SNDRV_PCM_STREAM_CAPTURE]; in snd_usx2y_usbpcm_hw_free()
417 if (stream == SNDRV_PCM_STREAM_CAPTURE) { in usx2y_usbpcm_urbs_start()
500 struct snd_usx2y_substream *capsubs = subs->usx2y->subs[SNDRV_PCM_STREAM_CAPTURE]; in snd_usx2y_usbpcm_prepare()
750 snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, &snd_usx2y_usbpcm_ops); in usx2y_hwdep_pcm_new()
760 snd_pcm_set_managed_buffer(pcm->streams[SNDRV_PCM_STREAM_CAPTURE].substream, in usx2y_hwdep_pcm_new()
H A Dusbusx2yaudio.c316 capsubs = usx2y->subs[SNDRV_PCM_STREAM_CAPTURE]; in i_usx2y_urb_complete()
555 atomic_read(&subs->usx2y->subs[SNDRV_PCM_STREAM_CAPTURE]->state) >= STATE_PREPARED) { in snd_usx2y_pcm_trigger()
820 cap_subs = subs->usx2y->subs[SNDRV_PCM_STREAM_CAPTURE]; in snd_usx2y_pcm_hw_free()
850 struct snd_usx2y_substream *capsubs = subs->usx2y->subs[SNDRV_PCM_STREAM_CAPTURE]; in snd_usx2y_pcm_prepare()
968 for (i = playback_endpoint ? SNDRV_PCM_STREAM_PLAYBACK : SNDRV_PCM_STREAM_CAPTURE; in usx2y_audio_stream_new()
969 i <= SNDRV_PCM_STREAM_CAPTURE; ++i) { in usx2y_audio_stream_new()
979 usx2y_substream[SNDRV_PCM_STREAM_CAPTURE]->endpoint = capture_endpoint; in usx2y_audio_stream_new()
991 snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, &snd_usx2y_pcm_ops); in usx2y_audio_stream_new()
1006 snd_pcm_set_managed_buffer(pcm->streams[SNDRV_PCM_STREAM_CAPTURE].substream, in usx2y_audio_stream_new()
/openbmc/linux/sound/soc/bcm/
H A Dbcm2835-i2s.c634 else if (substream->stream == SNDRV_PCM_STREAM_CAPTURE in bcm2835_i2s_prepare()
647 if (substream->stream == SNDRV_PCM_STREAM_CAPTURE) in bcm2835_i2s_stop()
672 if (substream->stream == SNDRV_PCM_STREAM_CAPTURE) in bcm2835_i2s_trigger()
746 &dev->dma_data[SNDRV_PCM_STREAM_CAPTURE]); in bcm2835_i2s_dai_probe()
869 dev->dma_data[SNDRV_PCM_STREAM_CAPTURE].addr = in bcm2835_i2s_probe()
875 dev->dma_data[SNDRV_PCM_STREAM_CAPTURE].addr_width = in bcm2835_i2s_probe()
880 dev->dma_data[SNDRV_PCM_STREAM_CAPTURE].maxburst = 2; in bcm2835_i2s_probe()
888 dev->dma_data[SNDRV_PCM_STREAM_CAPTURE].flags = in bcm2835_i2s_probe()
/openbmc/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()
964 if (chip->streams[SNDRV_PCM_STREAM_CAPTURE].running) in snd_nm256_intr_check()
1415 if (chip->streams[SNDRV_PCM_STREAM_CAPTURE].running) in snd_nm256_free()
1497 chip->streams[SNDRV_PCM_STREAM_CAPTURE].bufsize; in snd_nm256_create()
1530 chip->streams[SNDRV_PCM_STREAM_CAPTURE].buf = addr; in snd_nm256_create()
1531 addr += chip->streams[SNDRV_PCM_STREAM_CAPTURE].bufsize; in snd_nm256_create()
[all …]
/openbmc/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()
/openbmc/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()
/openbmc/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()
/openbmc/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()
H A Dmpc5200_dma.h80 if (substream->pstr->stream == SNDRV_PCM_STREAM_CAPTURE) in to_psc_dma_stream()
/openbmc/linux/sound/soc/cirrus/
H A Dep93xx-i2s.c89 [SNDRV_PCM_STREAM_CAPTURE] = {
204 &ep93xx_i2s_dma_data[SNDRV_PCM_STREAM_CAPTURE]; in ep93xx_i2s_dai_probe()
387 ep93xx_i2s_disable(info, SNDRV_PCM_STREAM_CAPTURE); in ep93xx_i2s_suspend()
400 ep93xx_i2s_enable(info, SNDRV_PCM_STREAM_CAPTURE); in ep93xx_i2s_resume()
/openbmc/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()
/openbmc/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()
/openbmc/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()
/openbmc/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()
/openbmc/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()
447 snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, in snd_dice_create_pcm()
/openbmc/linux/include/sound/
H A Dsoc-dai.h484 #define snd_soc_dai_get_widget_capture(dai) snd_soc_dai_get_widget(dai, SNDRV_PCM_STREAM_CAPTURE)
492 …dai_set_widget_capture(dai, widget) snd_soc_dai_set_widget(dai, SNDRV_PCM_STREAM_CAPTURE, widget)
500 …efine snd_soc_dai_dma_data_get_capture(dai) snd_soc_dai_dma_data_get(dai, SNDRV_PCM_STREAM_CAPTURE)
508 …dai_dma_data_set_capture(dai, data) snd_soc_dai_dma_data_set(dai, SNDRV_PCM_STREAM_CAPTURE, data)
/openbmc/linux/sound/drivers/
H A Daloop.c62 #define CABLE_VALID_CAPTURE BIT(SNDRV_PCM_STREAM_CAPTURE)
334 cruntime = cable->streams[SNDRV_PCM_STREAM_CAPTURE]-> in loopback_check_format()
341 if (stream == SNDRV_PCM_STREAM_CAPTURE) { in loopback_check_format()
344 snd_pcm_stop(cable->streams[SNDRV_PCM_STREAM_CAPTURE]-> in loopback_check_format()
475 if (substream->stream == SNDRV_PCM_STREAM_CAPTURE) { in loopback_prepare()
607 cable->streams[SNDRV_PCM_STREAM_CAPTURE]; in loopback_jiffies_timer_pos_update()
618 if (running & (1 << SNDRV_PCM_STREAM_CAPTURE)) { in loopback_jiffies_timer_pos_update()
729 dpcm_capt = cable->streams[SNDRV_PCM_STREAM_CAPTURE]; in loopback_snd_timer_period_elapsed()
769 (running & (1 << SNDRV_PCM_STREAM_CAPTURE))) { in loopback_snd_timer_period_elapsed()
775 } else if (running & (1 << SNDRV_PCM_STREAM_CAPTURE)) { in loopback_snd_timer_period_elapsed()
[all …]
/openbmc/linux/sound/soc/samsung/
H A Ddmaengine.c32 pcm_conf->chan_names[SNDRV_PCM_STREAM_CAPTURE] = rx; in samsung_asoc_dma_platform_register()
/openbmc/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()
/openbmc/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()
/openbmc/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()
/openbmc/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()

1234567891011