Lines Matching defs:pcm
248 * snd_pdacf_pcm_new - create and initialize a pcm
252 struct snd_pcm *pcm;
255 err = snd_pcm_new(chip->card, "PDAudioCF", 0, 0, 1, &pcm);
259 snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, &pdacf_pcm_capture_ops);
260 snd_pcm_set_managed_buffer_all(pcm, SNDRV_DMA_TYPE_VMALLOC, NULL,
263 pcm->private_data = chip;
264 pcm->info_flags = 0;
265 pcm->nonatomic = true;
266 strcpy(pcm->name, chip->card->shortname);
267 chip->pcm = pcm;
269 err = snd_ak4117_build(chip->ak4117, pcm->streams[SNDRV_PCM_STREAM_CAPTURE].substream);