Home
last modified time | relevance | path

Searched refs:pcm (Results 1 – 25 of 41) sorted by relevance

12

/drivers/staging/vc04_services/bcm2835-audio/
Dbcm2835-pcm.c327 struct snd_pcm *pcm; in snd_bcm2835_new_pcm() local
330 err = snd_pcm_new(chip->card, name, idx, numchannels, 0, &pcm); in snd_bcm2835_new_pcm()
334 pcm->private_data = chip; in snd_bcm2835_new_pcm()
335 pcm->nonatomic = true; in snd_bcm2835_new_pcm()
336 strscpy(pcm->name, name, sizeof(pcm->name)); in snd_bcm2835_new_pcm()
343 snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, in snd_bcm2835_new_pcm()
347 snd_pcm_set_managed_buffer_all(pcm, SNDRV_DMA_TYPE_DEV, in snd_bcm2835_new_pcm()
351 chip->pcm_spdif = pcm; in snd_bcm2835_new_pcm()
353 chip->pcm = pcm; in snd_bcm2835_new_pcm()
DMakefile3 snd-bcm2835-objs := bcm2835.o bcm2835-ctl.o bcm2835-pcm.o bcm2835-vchiq.o
/drivers/media/pci/saa7134/
Dsaa7134-alsa.c236 snd_card_saa7134_pcm_t *pcm = runtime->private_data; in snd_card_saa7134_capture_trigger() local
237 struct saa7134_dev *dev=pcm->dev; in snd_card_saa7134_capture_trigger()
504 snd_card_saa7134_pcm_t *pcm = runtime->private_data; in snd_card_saa7134_capture_prepare() local
506 pcm->dev->dmasound.substream = substream; in snd_card_saa7134_capture_prepare()
594 snd_card_saa7134_pcm_t *pcm = runtime->private_data; in snd_card_saa7134_capture_pointer() local
595 struct saa7134_dev *dev=pcm->dev; in snd_card_saa7134_capture_pointer()
646 snd_card_saa7134_pcm_t *pcm = runtime->private_data; in snd_card_saa7134_runtime_free() local
648 kfree(pcm); in snd_card_saa7134_runtime_free()
797 snd_card_saa7134_pcm_t *pcm; in snd_card_saa7134_capture_open() local
819 pcm = kzalloc(sizeof(*pcm), GFP_KERNEL); in snd_card_saa7134_capture_open()
[all …]
/drivers/media/pci/solo6x10/
Dsolo6x10-g723.c320 struct snd_pcm *pcm; in solo_snd_pcm_init() local
326 &pcm); in solo_snd_pcm_init()
330 snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, in solo_snd_pcm_init()
333 snd_pcm_chip(pcm) = solo_dev; in solo_snd_pcm_init()
334 pcm->info_flags = 0; in solo_snd_pcm_init()
335 strscpy(pcm->name, card->shortname, sizeof(pcm->name)); in solo_snd_pcm_init()
337 for (i = 0, ss = pcm->streams[SNDRV_PCM_STREAM_CAPTURE].substream; in solo_snd_pcm_init()
341 snd_pcm_set_managed_buffer_all(pcm, in solo_snd_pcm_init()
347 solo_dev->snd_pcm = pcm; in solo_snd_pcm_init()
/drivers/media/usb/usbtv/
Dusbtv-audio.c324 struct snd_pcm *pcm; in usbtv_audio_init() local
344 rv = snd_pcm_new(card, "USBTV Audio", 0, 0, 1, &pcm); in usbtv_audio_init()
348 strscpy(pcm->name, "USBTV Audio Input", sizeof(pcm->name)); in usbtv_audio_init()
349 pcm->info_flags = 0; in usbtv_audio_init()
350 pcm->private_data = usbtv; in usbtv_audio_init()
352 snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, &snd_usbtv_pcm_ops); in usbtv_audio_init()
353 snd_pcm_set_managed_buffer_all(pcm, SNDRV_DMA_TYPE_CONTINUOUS, in usbtv_audio_init()
/drivers/staging/media/deprecated/tm6000/
Dtm6000-alsa.c333 struct snd_pcm *pcm; in tm6000_audio_init() local
371 rc = snd_pcm_new(card, "TM6000 Audio", 0, 0, 1, &pcm); in tm6000_audio_init()
375 pcm->info_flags = 0; in tm6000_audio_init()
376 pcm->private_data = chip; in tm6000_audio_init()
377 strscpy(pcm->name, "Trident TM5600/60x0", sizeof(pcm->name)); in tm6000_audio_init()
379 snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, &snd_tm6000_pcm_ops); in tm6000_audio_init()
380 snd_pcm_set_managed_buffer_all(pcm, SNDRV_DMA_TYPE_VMALLOC, NULL, 0, 0); in tm6000_audio_init()
/drivers/media/pci/tw686x/
Dtw686x-audio.c269 struct snd_pcm *pcm; in tw686x_snd_pcm_init() local
274 err = snd_pcm_new(card, card->driver, 0, 0, max_channels(dev), &pcm); in tw686x_snd_pcm_init()
278 snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, &tw686x_pcm_ops); in tw686x_snd_pcm_init()
279 snd_pcm_chip(pcm) = dev; in tw686x_snd_pcm_init()
280 pcm->info_flags = 0; in tw686x_snd_pcm_init()
281 strscpy(pcm->name, "tw686x PCM", sizeof(pcm->name)); in tw686x_snd_pcm_init()
283 for (i = 0, ss = pcm->streams[SNDRV_PCM_STREAM_CAPTURE].substream; in tw686x_snd_pcm_init()
287 snd_pcm_set_managed_buffer_all(pcm, in tw686x_snd_pcm_init()
/drivers/usb/gadget/function/
Df_audio_source.c250 struct snd_pcm *pcm; member
304 static DEVICE_ATTR(pcm, S_IRUGO, audio_source_pcm_show, NULL);
702 audio->pcm = NULL; in audio_unbind()
894 struct snd_pcm *pcm; in snd_card_setup() local
905 err = snd_pcm_new(card, "USB audio source", 0, 1, 0, &pcm); in snd_card_setup()
909 pcm->private_data = audio; in snd_card_setup()
910 pcm->info_flags = 0; in snd_card_setup()
911 audio->pcm = pcm; in snd_card_setup()
913 strlcpy(pcm->name, "USB gadget audio", sizeof(pcm->name)); in snd_card_setup()
915 snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, &audio_playback_ops); in snd_card_setup()
[all …]
Du_audio.c81 struct snd_pcm *pcm; member
1160 struct snd_pcm *pcm; in g_audio_setup() local
1242 p_chmask ? 1 : 0, c_chmask ? 1 : 0, &pcm); in g_audio_setup()
1246 strscpy(pcm->name, pcm_name, sizeof(pcm->name)); in g_audio_setup()
1247 pcm->private_data = uac; in g_audio_setup()
1248 uac->pcm = pcm; in g_audio_setup()
1250 snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, &uac_pcm_ops); in g_audio_setup()
1251 snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, &uac_pcm_ops); in g_audio_setup()
1270 kctl->id.device = pcm->device; in g_audio_setup()
1286 kctl->id.device = pcm->device; in g_audio_setup()
[all …]
/drivers/gpu/drm/bridge/synopsys/
Ddw-hdmi-ahb-audio.c118 struct snd_pcm *pcm; member
527 struct snd_pcm *pcm; in snd_dw_hdmi_probe() local
558 ret = snd_pcm_new(card, "DW HDMI", 0, 1, 0, &pcm); in snd_dw_hdmi_probe()
562 dw->pcm = pcm; in snd_dw_hdmi_probe()
563 pcm->private_data = dw; in snd_dw_hdmi_probe()
564 strscpy(pcm->name, DRIVER_NAME, sizeof(pcm->name)); in snd_dw_hdmi_probe()
565 snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, &snd_dw_hdmi_ops); in snd_dw_hdmi_probe()
571 snd_pcm_lib_preallocate_pages_for_all(pcm, SNDRV_DMA_TYPE_DEV, in snd_dw_hdmi_probe()
/drivers/media/usb/go7007/
Dsnd-go7007.c37 struct snd_pcm *pcm; member
226 ret = snd_pcm_new(gosnd->card, "go7007", 0, 0, 1, &gosnd->pcm); in go7007_snd_init()
235 gosnd->pcm->private_data = go; in go7007_snd_init()
236 snd_pcm_set_ops(gosnd->pcm, SNDRV_PCM_STREAM_CAPTURE, in go7007_snd_init()
238 snd_pcm_set_managed_buffer_all(gosnd->pcm, SNDRV_DMA_TYPE_VMALLOC, in go7007_snd_init()
/drivers/media/usb/cx231xx/
Dcx231xx-audio.c562 struct snd_pcm *pcm; in cx231xx_audio_init() local
585 err = snd_pcm_new(card, "Cx231xx Audio", 0, 0, 1, &pcm); in cx231xx_audio_init()
589 snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, in cx231xx_audio_init()
591 snd_pcm_set_managed_buffer_all(pcm, SNDRV_DMA_TYPE_VMALLOC, NULL, 0, 0); in cx231xx_audio_init()
592 pcm->info_flags = 0; in cx231xx_audio_init()
593 pcm->private_data = dev; in cx231xx_audio_init()
594 strscpy(pcm->name, "Conexant cx231xx Capture", sizeof(pcm->name)); in cx231xx_audio_init()
/drivers/media/pci/cx23885/
Dcx23885-alsa.c514 struct snd_pcm *pcm; in snd_cx23885_pcm() local
516 err = snd_pcm_new(chip->card, name, device, 0, 1, &pcm); in snd_cx23885_pcm()
519 pcm->private_data = chip; in snd_cx23885_pcm()
520 strscpy(pcm->name, name, sizeof(pcm->name)); in snd_cx23885_pcm()
521 snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, &snd_cx23885_pcm_ops); in snd_cx23885_pcm()
/drivers/most/
Dmost_snd.c517 struct snd_pcm *pcm; in audio_probe_channel() local
593 playback_count, capture_count, &pcm); in audio_probe_channel()
598 pcm->private_data = channel; in audio_probe_channel()
599 strscpy(pcm->name, device_name, sizeof(pcm->name)); in audio_probe_channel()
600 snd_pcm_set_ops(pcm, direction, &pcm_ops); in audio_probe_channel()
601 snd_pcm_set_managed_buffer_all(pcm, SNDRV_DMA_TYPE_VMALLOC, NULL, 0, 0); in audio_probe_channel()
/drivers/gpu/drm/tegra/
Dhda.c17 fmt->pcm = false; in tegra_hda_parse_format()
19 fmt->pcm = true; in tegra_hda_parse_format()
Dhda.h15 bool pcm; member
/drivers/media/pci/cx25821/
Dcx25821-alsa.c657 struct snd_pcm *pcm; in snd_cx25821_pcm() local
660 err = snd_pcm_new(chip->card, name, device, 0, 1, &pcm); in snd_cx25821_pcm()
665 pcm->private_data = chip; in snd_cx25821_pcm()
666 pcm->info_flags = 0; in snd_cx25821_pcm()
667 strscpy(pcm->name, name, sizeof(pcm->name)); in snd_cx25821_pcm()
668 snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, &snd_cx25821_pcm_ops); in snd_cx25821_pcm()
/drivers/media/usb/em28xx/
Dem28xx-audio.c806 struct snd_pcm *pcm; in em28xx_audio_init() local
838 err = snd_pcm_new(card, "Em28xx Audio", 0, 0, 1, &pcm); in em28xx_audio_init()
842 snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, &snd_em28xx_pcm_capture); in em28xx_audio_init()
843 snd_pcm_set_managed_buffer_all(pcm, SNDRV_DMA_TYPE_VMALLOC, NULL, 0, 0); in em28xx_audio_init()
844 pcm->info_flags = 0; in em28xx_audio_init()
845 pcm->private_data = dev; in em28xx_audio_init()
846 strscpy(pcm->name, "Empia 28xx Capture", sizeof(pcm->name)); in em28xx_audio_init()
/drivers/media/pci/cx88/
Dcx88-alsa.c603 struct snd_pcm *pcm; in snd_cx88_pcm() local
605 err = snd_pcm_new(chip->card, name, device, 0, 1, &pcm); in snd_cx88_pcm()
608 pcm->private_data = chip; in snd_cx88_pcm()
609 strscpy(pcm->name, name, sizeof(pcm->name)); in snd_cx88_pcm()
610 snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, &snd_cx88_pcm_ops); in snd_cx88_pcm()
/drivers/media/pci/cobalt/
DMakefile4 cobalt-alsa-main.o cobalt-alsa-pcm.o
/drivers/soundwire/
Dintel.c647 intel_pdi_stream_ch_update(sdw, &sdw->cdns.pcm); in intel_pdi_ch_update()
844 pdi = sdw_cdns_alloc_pdi(cdns, &cdns->pcm, ch, dir, dai->id); in intel_hw_params()
1199 num_dai = cdns->pcm.num_pdi; in intel_register_dai()
1206 stream = &cdns->pcm; in intel_register_dai()
1208 ret = intel_create_dai(cdns, dais, INTEL_PDI_IN, cdns->pcm.num_in, in intel_register_dai()
1213 off += cdns->pcm.num_in; in intel_register_dai()
1214 ret = intel_create_dai(cdns, dais, INTEL_PDI_OUT, cdns->pcm.num_out, in intel_register_dai()
1219 off += cdns->pcm.num_out; in intel_register_dai()
1220 ret = intel_create_dai(cdns, dais, INTEL_PDI_BD, cdns->pcm.num_bd, in intel_register_dai()
Dcadence_master.c456 unsigned int pdi_out_num = cdns->pcm.num_bd + cdns->pcm.num_out; in cdns_set_pdi_loopback_source()
473 unsigned int pdi_in_num = cdns->pcm.num_bd + cdns->pcm.num_in; in cdns_set_pdi_loopback_target()
1242 cdns->pcm.num_bd = config.pcm_bd; in sdw_cdns_pdi_init()
1243 cdns->pcm.num_in = config.pcm_in; in sdw_cdns_pdi_init()
1244 cdns->pcm.num_out = config.pcm_out; in sdw_cdns_pdi_init()
1247 stream = &cdns->pcm; in sdw_cdns_pdi_init()
/drivers/media/pci/ivtv/
DMakefile7 ivtv-alsa-objs := ivtv-alsa-main.o ivtv-alsa-pcm.o
/drivers/media/pci/cx18/
DMakefile7 cx18-alsa-objs := cx18-alsa-main.o cx18-alsa-pcm.o
/drivers/net/fddi/skfp/
Dsmtinit.c105 pcm(smc,p,0) ; /* PCM A state machine */ in init_smt()

12