Home
last modified time | relevance | path

Searched refs:streams (Results 1 – 25 of 96) sorted by relevance

1234

/sound/isa/
Dcmi8330.c164 } streams[2]; member
413 substream->private_data = chip->streams[SNDRV_PCM_STREAM_PLAYBACK].private_data; in snd_cmi8330_playback_open()
414 return chip->streams[SNDRV_PCM_STREAM_PLAYBACK].open(substream); in snd_cmi8330_playback_open()
422 substream->private_data = chip->streams[SNDRV_PCM_STREAM_CAPTURE].private_data; in snd_cmi8330_capture_open()
423 return chip->streams[SNDRV_PCM_STREAM_CAPTURE].open(substream); in snd_cmi8330_capture_open()
443 chip->streams[CMI_SB_STREAM].ops = *ops; in snd_cmi8330_pcm()
444 chip->streams[CMI_SB_STREAM].open = ops->open; in snd_cmi8330_pcm()
445 chip->streams[CMI_SB_STREAM].ops.open = cmi_open_callbacks[CMI_SB_STREAM]; in snd_cmi8330_pcm()
446 chip->streams[CMI_SB_STREAM].private_data = chip->sb; in snd_cmi8330_pcm()
450 chip->streams[CMI_AD_STREAM].ops = *ops; in snd_cmi8330_pcm()
[all …]
/sound/hda/
Dhdac_device.c796 unsigned int streams = snd_hdac_read_parm(codec, nid, AC_PAR_STREAM); in query_stream_param() local
798 if (!streams || streams == -1) in query_stream_param()
799 streams = snd_hdac_read_parm(codec, codec->afg, AC_PAR_STREAM); in query_stream_param()
800 if (!streams || streams == -1) in query_stream_param()
802 return streams; in query_stream_param()
844 unsigned int streams, bps; in snd_hdac_query_supported_pcm() local
846 streams = query_stream_param(codec, nid); in snd_hdac_query_supported_pcm()
847 if (!streams) in snd_hdac_query_supported_pcm()
851 if (streams & AC_SUPFMT_PCM) { in snd_hdac_query_supported_pcm()
881 if (streams & AC_SUPFMT_FLOAT32) { in snd_hdac_query_supported_pcm()
[all …]
Dhdac_stream.c565 unsigned int streams) in snd_hdac_stream_timecounter_init() argument
575 if (streams & (1 << i)) { in snd_hdac_stream_timecounter_init()
596 unsigned int streams, unsigned int reg) in snd_hdac_stream_sync_trigger() argument
605 val |= streams; in snd_hdac_stream_sync_trigger()
607 val &= ~streams; in snd_hdac_stream_sync_trigger()
622 unsigned int streams) in snd_hdac_stream_sync() argument
632 if (streams & (1 << i)) { in snd_hdac_stream_sync()
/sound/soc/fsl/
Dimx-pcm-fiq.c238 struct snd_pcm_substream *substream = pcm->streams[stream].substream; in imx_pcm_preallocate_dma_buffer()
263 if (pcm->streams[SNDRV_PCM_STREAM_PLAYBACK].substream) { in imx_pcm_new()
270 if (pcm->streams[SNDRV_PCM_STREAM_CAPTURE].substream) { in imx_pcm_new()
292 substream = pcm->streams[SNDRV_PCM_STREAM_PLAYBACK].substream; in imx_pcm_fiq_new()
299 substream = pcm->streams[SNDRV_PCM_STREAM_CAPTURE].substream; in imx_pcm_fiq_new()
319 substream = pcm->streams[stream].substream; in imx_pcm_free()
Dmpc5200_dma.c318 if (pcm->streams[SNDRV_PCM_STREAM_PLAYBACK].substream) { in psc_dma_new()
320 size, &pcm->streams[SNDRV_PCM_STREAM_PLAYBACK].substream->dma_buffer); in psc_dma_new()
325 if (pcm->streams[SNDRV_PCM_STREAM_CAPTURE].substream) { in psc_dma_new()
327 size, &pcm->streams[SNDRV_PCM_STREAM_CAPTURE].substream->dma_buffer); in psc_dma_new()
335 if (pcm->streams[SNDRV_PCM_STREAM_PLAYBACK].substream) in psc_dma_new()
336 snd_dma_free_pages(&pcm->streams[SNDRV_PCM_STREAM_PLAYBACK].substream->dma_buffer); in psc_dma_new()
354 substream = pcm->streams[stream].substream; in psc_dma_free()
Dfsl_dma.c297 if (pcm->streams[SNDRV_PCM_STREAM_PLAYBACK].substream) { in fsl_dma_new()
300 &pcm->streams[SNDRV_PCM_STREAM_PLAYBACK].substream->dma_buffer); in fsl_dma_new()
307 if (pcm->streams[SNDRV_PCM_STREAM_CAPTURE].substream) { in fsl_dma_new()
310 &pcm->streams[SNDRV_PCM_STREAM_CAPTURE].substream->dma_buffer); in fsl_dma_new()
313 snd_dma_free_pages(&pcm->streams[SNDRV_PCM_STREAM_PLAYBACK].substream->dma_buffer); in fsl_dma_new()
832 for (i = 0; i < ARRAY_SIZE(pcm->streams); i++) { in fsl_dma_free_dma_buffers()
833 substream = pcm->streams[i].substream; in fsl_dma_free_dma_buffers()
Dfsl_asrc_dma.c346 substream = pcm->streams[i].substream; in fsl_asrc_dma_pcm_new()
361 if (--i == 0 && pcm->streams[i].substream) in fsl_asrc_dma_pcm_new()
362 snd_dma_free_pages(&pcm->streams[i].substream->dma_buffer); in fsl_asrc_dma_pcm_new()
373 substream = pcm->streams[i].substream; in fsl_asrc_dma_pcm_free()
/sound/pci/nm256/
Dnm256.c228 struct nm256_stream streams[2]; member
759 s = &chip->streams[SNDRV_PCM_STREAM_PLAYBACK]; in snd_nm256_playback_update()
774 s = &chip->streams[SNDRV_PCM_STREAM_CAPTURE]; in snd_nm256_capture_update()
864 snd_nm256_setup_stream(chip, &chip->streams[SNDRV_PCM_STREAM_PLAYBACK], in snd_nm256_playback_open()
876 snd_nm256_setup_stream(chip, &chip->streams[SNDRV_PCM_STREAM_CAPTURE], in snd_nm256_capture_open()
944 struct nm256_stream *s = &chip->streams[i]; in snd_nm256_pcm()
996 if (chip->streams[SNDRV_PCM_STREAM_PLAYBACK].running) in snd_nm256_intr_check()
998 if (chip->streams[SNDRV_PCM_STREAM_CAPTURE].running) in snd_nm256_intr_check()
1422 struct nm256_stream *s = &chip->streams[i]; in nm256_resume()
1443 if (chip->streams[SNDRV_PCM_STREAM_PLAYBACK].running) in snd_nm256_free()
[all …]
/sound/core/
Dpcm.c127 pstr = &pcm->streams[stream]; in snd_pcm_control_ioctl()
639 struct snd_pcm_str *pstr = &pcm->streams[stream]; in snd_pcm_new_stream()
867 snd_pcm_free_stream(&pcm->streams[SNDRV_PCM_STREAM_PLAYBACK]); in snd_pcm_free()
868 snd_pcm_free_stream(&pcm->streams[SNDRV_PCM_STREAM_CAPTURE]); in snd_pcm_free()
896 pstr = &pcm->streams[stream]; in snd_pcm_attach_substream()
906 for (substream = pcm->streams[opposite].substream; substream; in snd_pcm_attach_substream()
1056 if (pcm->streams[cidx].substream == NULL) in snd_pcm_dev_register()
1069 &pcm->streams[cidx].dev); in snd_pcm_dev_register()
1075 for (substream = pcm->streams[cidx].substream; substream; substream = substream->next) in snd_pcm_dev_register()
1097 for (substream = pcm->streams[cidx].substream; substream; substream = substream->next) { in snd_pcm_dev_disconnect()
[all …]
Drawmidi.c228 struct snd_rawmidi_str *s = &rmidi->streams[stream]; in assign_substream()
275 rmidi->streams[substream->stream].substream_opened++; in open_substream()
488 rmidi->streams[substream->stream].substream_opened--; in close_substream()
591 pstr = &rmidi->streams[info->stream]; in __snd_rawmidi_info_select()
1438 &rmidi->streams[SNDRV_RAWMIDI_STREAM_OUTPUT].substreams, in snd_rawmidi_proc_info_read()
1462 &rmidi->streams[SNDRV_RAWMIDI_STREAM_INPUT].substreams, in snd_rawmidi_proc_info_read()
1567 INIT_LIST_HEAD(&rmidi->streams[SNDRV_RAWMIDI_STREAM_INPUT].substreams); in snd_rawmidi_new()
1568 INIT_LIST_HEAD(&rmidi->streams[SNDRV_RAWMIDI_STREAM_OUTPUT].substreams); in snd_rawmidi_new()
1578 &rmidi->streams[SNDRV_RAWMIDI_STREAM_INPUT], in snd_rawmidi_new()
1584 &rmidi->streams[SNDRV_RAWMIDI_STREAM_OUTPUT], in snd_rawmidi_new()
[all …]
/sound/arm/
Dpxa2xx-pcm-lib.c145 struct snd_pcm_substream *substream = pcm->streams[stream].substream; in pxa2xx_pcm_preallocate_dma_buffer()
166 substream = pcm->streams[stream].substream; in pxa2xx_pcm_free_dma_buffers()
188 if (pcm->streams[SNDRV_PCM_STREAM_PLAYBACK].substream) { in pxa2xx_soc_pcm_new()
195 if (pcm->streams[SNDRV_PCM_STREAM_CAPTURE].substream) { in pxa2xx_soc_pcm_new()
/sound/core/oss/
Dpcm_oss.c1098 substream = pcm_oss_file->streams[idx]; in snd_pcm_oss_get_active_substream()
1547 substream = pcm_oss_file->streams[i]; in snd_pcm_oss_reset()
1567 substream = pcm_oss_file->streams[SNDRV_PCM_STREAM_PLAYBACK]; in snd_pcm_oss_post()
1636 substream = pcm_oss_file->streams[SNDRV_PCM_STREAM_PLAYBACK]; in snd_pcm_oss_sync()
1705 substream = pcm_oss_file->streams[SNDRV_PCM_STREAM_CAPTURE]; in snd_pcm_oss_sync()
1726 struct snd_pcm_substream *substream = pcm_oss_file->streams[idx]; in snd_pcm_oss_set_rate()
1767 struct snd_pcm_substream *substream = pcm_oss_file->streams[idx]; in snd_pcm_oss_set_channels()
1863 struct snd_pcm_substream *substream = pcm_oss_file->streams[idx]; in snd_pcm_oss_set_format()
1917 struct snd_pcm_substream *substream = pcm_oss_file->streams[idx]; in snd_pcm_oss_set_subdivide()
1956 struct snd_pcm_substream *substream = pcm_oss_file->streams[idx]; in snd_pcm_oss_set_fragment()
[all …]
/sound/drivers/
Daloop.c62 struct loopback_pcm *streams[2]; member
202 runtime = cable->streams[SNDRV_PCM_STREAM_PLAYBACK]-> in loopback_check_format()
204 cruntime = cable->streams[SNDRV_PCM_STREAM_CAPTURE]-> in loopback_check_format()
214 snd_pcm_stop(cable->streams[SNDRV_PCM_STREAM_CAPTURE]-> in loopback_check_format()
217 runtime = cable->streams[SNDRV_PCM_STREAM_PLAYBACK]-> in loopback_check_format()
219 setup = get_setup(cable->streams[SNDRV_PCM_STREAM_PLAYBACK]); in loopback_check_format()
220 card = cable->streams[SNDRV_PCM_STREAM_PLAYBACK]->loopback->card; in loopback_check_format()
463 cable->streams[SNDRV_PCM_STREAM_PLAYBACK]; in loopback_pos_update()
465 cable->streams[SNDRV_PCM_STREAM_CAPTURE]; in loopback_pos_update()
659 if (cable->streams[!substream->stream]) { in free_cable()
[all …]
/sound/soc/kirkwood/
Dkirkwood-dma.c254 struct snd_pcm_substream *substream = pcm->streams[stream].substream; in kirkwood_dma_preallocate_dma_buffer()
280 if (pcm->streams[SNDRV_PCM_STREAM_PLAYBACK].substream) { in kirkwood_dma_new()
287 if (pcm->streams[SNDRV_PCM_STREAM_CAPTURE].substream) { in kirkwood_dma_new()
304 substream = pcm->streams[stream].substream; in kirkwood_dma_free_dma_buffers()
/sound/soc/intel/atom/sst/
Dsst_stream.c72 sst_drv_ctx->streams[str_id].status = STREAM_INIT; in sst_alloc_stream_mrfld()
73 sst_drv_ctx->streams[str_id].prev = STREAM_UN_INIT; in sst_alloc_stream_mrfld()
74 sst_drv_ctx->streams[str_id].pipe_id = str_params->device_type; in sst_alloc_stream_mrfld()
75 sst_drv_ctx->streams[str_id].task_id = str_params->task; in sst_alloc_stream_mrfld()
76 sst_drv_ctx->streams[str_id].num_ch = num_ch; in sst_alloc_stream_mrfld()
/sound/soc/
Dsoc-generic-dmaengine-pcm.c282 substream = rtd->pcm->streams[i].substream; in dmaengine_pcm_new()
310 if (rtd->pcm->streams[i].pcm->name[0] == '\0') { in dmaengine_pcm_new()
311 strscpy_pad(rtd->pcm->streams[i].pcm->name, in dmaengine_pcm_new()
312 rtd->pcm->streams[i].pcm->id, in dmaengine_pcm_new()
313 sizeof(rtd->pcm->streams[i].pcm->name)); in dmaengine_pcm_new()
/sound/firewire/fireface/
Dff-midi.c116 stream = &rmidi->streams[SNDRV_RAWMIDI_STREAM_INPUT]; in snd_ff_create_midi_devices()
122 stream = &rmidi->streams[SNDRV_RAWMIDI_STREAM_OUTPUT]; in snd_ff_create_midi_devices()
/sound/firewire/motu/
Dmotu-midi.c127 str = &rmidi->streams[SNDRV_RAWMIDI_STREAM_INPUT]; in snd_motu_create_midi_devices()
132 str = &rmidi->streams[SNDRV_RAWMIDI_STREAM_OUTPUT]; in snd_motu_create_midi_devices()
/sound/firewire/tascam/
Dtascam-midi.c104 stream = &rmidi->streams[SNDRV_RAWMIDI_STREAM_INPUT]; in snd_tscm_create_midi_devices()
120 stream = &rmidi->streams[SNDRV_RAWMIDI_STREAM_OUTPUT]; in snd_tscm_create_midi_devices()
/sound/soc/atmel/
Datmel-pcm-pdc.c40 struct snd_pcm_substream *substream = pcm->streams[stream].substream; in atmel_pcm_preallocate_dma_buffer()
77 if (pcm->streams[SNDRV_PCM_STREAM_PLAYBACK].substream) { in atmel_pcm_new()
85 if (pcm->streams[SNDRV_PCM_STREAM_CAPTURE].substream) { in atmel_pcm_new()
103 substream = pcm->streams[stream].substream; in atmel_pcm_free()
/sound/firewire/bebob/
Dbebob_midi.c126 str = &rmidi->streams[SNDRV_RAWMIDI_STREAM_INPUT]; in snd_bebob_create_midi_devices()
137 str = &rmidi->streams[SNDRV_RAWMIDI_STREAM_OUTPUT]; in snd_bebob_create_midi_devices()
/sound/firewire/fireworks/
Dfireworks_midi.c125 str = &rmidi->streams[SNDRV_RAWMIDI_STREAM_INPUT]; in snd_efw_create_midi_devices()
136 str = &rmidi->streams[SNDRV_RAWMIDI_STREAM_OUTPUT]; in snd_efw_create_midi_devices()
/sound/firewire/dice/
Ddice-midi.c141 str = &rmidi->streams[SNDRV_RAWMIDI_STREAM_INPUT]; in snd_dice_create_midi()
152 str = &rmidi->streams[SNDRV_RAWMIDI_STREAM_OUTPUT]; in snd_dice_create_midi()
/sound/soc/sprd/
Dsprd-pcm-dma.c481 substream = pcm->streams[SNDRV_PCM_STREAM_PLAYBACK].substream; in sprd_pcm_new()
493 substream = pcm->streams[SNDRV_PCM_STREAM_CAPTURE].substream; in sprd_pcm_new()
501 snd_dma_free_pages(&pcm->streams[SNDRV_PCM_STREAM_PLAYBACK].substream->dma_buffer); in sprd_pcm_new()
514 for (i = 0; i < ARRAY_SIZE(pcm->streams); i++) { in sprd_pcm_free()
515 substream = pcm->streams[i].substream; in sprd_pcm_free()
/sound/soc/bcm/
Dcygnus-pcm.c728 struct snd_pcm_substream *substream = pcm->streams[stream].substream; in cygnus_pcm_preallocate_dma_buffer()
770 substream = pcm->streams[SNDRV_PCM_STREAM_PLAYBACK].substream; in cygnus_dma_free_dma_buffers()
780 substream = pcm->streams[SNDRV_PCM_STREAM_CAPTURE].substream; in cygnus_dma_free_dma_buffers()
802 if (pcm->streams[SNDRV_PCM_STREAM_PLAYBACK].substream) { in cygnus_dma_new()
809 if (pcm->streams[SNDRV_PCM_STREAM_CAPTURE].substream) { in cygnus_dma_new()

1234