Lines Matching full: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) { in ct_pcm_playback_open()
133 if (FRONT == substream->pcm->device) in ct_pcm_playback_open()
168 if (IEC958 == substream->pcm->device) in ct_pcm_playback_close()
205 if (IEC958 == substream->pcm->device) in ct_pcm_playback_prepare()
212 "Preparing pcm playback failed!!!\n"); in ct_pcm_playback_prepare()
260 /* pcm capture operations */
321 "Preparing pcm capture failed!!!\n"); in ct_pcm_capture_prepare()
366 /* PCM operators for playback */
377 /* PCM operators for capture */
412 /* Create ALSA pcm device */
417 struct snd_pcm *pcm; in ct_alsa_pcm_create() local
426 playback_count, capture_count, &pcm); in ct_alsa_pcm_create()
433 pcm->private_data = atc; in ct_alsa_pcm_create()
434 pcm->info_flags = 0; in ct_alsa_pcm_create()
435 pcm->dev_subclass = SNDRV_PCM_SUBCLASS_GENERIC_MIX; in ct_alsa_pcm_create()
436 strlcpy(pcm->name, device_name, sizeof(pcm->name)); in ct_alsa_pcm_create()
438 snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, &ct_pcm_playback_ops); in ct_alsa_pcm_create()
441 snd_pcm_set_ops(pcm, in ct_alsa_pcm_create()
444 snd_pcm_set_managed_buffer_all(pcm, SNDRV_DMA_TYPE_DEV_SG, in ct_alsa_pcm_create()
466 err = snd_pcm_add_chmap_ctls(pcm, SNDRV_PCM_STREAM_PLAYBACK, map, chs, in ct_alsa_pcm_create()
472 atc->pcms[device] = pcm; in ct_alsa_pcm_create()