Lines Matching defs:pcm
8 * This file contains the definition of the pcm device functions.
17 #include <sound/pcm.h>
114 /* pcm playback operations */
128 if (IEC958 == substream->pcm->device) {
133 if (FRONT == substream->pcm->device)
168 if (IEC958 == substream->pcm->device)
205 if (IEC958 == substream->pcm->device)
212 "Preparing pcm playback failed!!!\n");
260 /* pcm capture operations */
321 "Preparing pcm capture failed!!!\n");
412 /* Create ALSA pcm device */
417 struct snd_pcm *pcm;
426 playback_count, capture_count, &pcm);
433 pcm->private_data = atc;
434 pcm->info_flags = 0;
435 pcm->dev_subclass = SNDRV_PCM_SUBCLASS_GENERIC_MIX;
436 strscpy(pcm->name, device_name, sizeof(pcm->name));
438 snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, &ct_pcm_playback_ops);
441 snd_pcm_set_ops(pcm,
444 snd_pcm_set_managed_buffer_all(pcm, SNDRV_DMA_TYPE_DEV_SG,
466 err = snd_pcm_add_chmap_ctls(pcm, SNDRV_PCM_STREAM_PLAYBACK, map, chs,
472 atc->pcms[device] = pcm;