Lines Matching full:pcm

6  * Vortex PCM ALSA driver.
14 #include <sound/pcm.h>
146 if (VORTEX_PCM_TYPE(substream->pcm) != VORTEX_PCM_WT) { in snd_vortex_pcm_open()
148 if (VORTEX_PCM_TYPE(substream->pcm) == VORTEX_PCM_A3D) { in snd_vortex_pcm_open()
152 if (VORTEX_PCM_TYPE(substream->pcm) == VORTEX_PCM_SPDIF) { in snd_vortex_pcm_open()
166 if (VORTEX_PCM_TYPE(substream->pcm) == VORTEX_PCM_ADB in snd_vortex_pcm_open()
167 || VORTEX_PCM_TYPE(substream->pcm) == VORTEX_PCM_I2S) in snd_vortex_pcm_open()
172 VORTEX_PCM_TYPE(substream->pcm) == VORTEX_PCM_ADB) { in snd_vortex_pcm_open()
219 if (VORTEX_PCM_TYPE(substream->pcm) != VORTEX_PCM_WT) { in snd_vortex_pcm_hw_params()
220 int dma, type = VORTEX_PCM_TYPE(substream->pcm); in snd_vortex_pcm_hw_params()
243 if (VORTEX_PCM_TYPE(substream->pcm) == VORTEX_PCM_ADB) { in snd_vortex_pcm_hw_params()
276 if (VORTEX_PCM_TYPE(substream->pcm) != VORTEX_PCM_WT) { in snd_vortex_pcm_hw_free()
278 if (VORTEX_PCM_TYPE(substream->pcm) == VORTEX_PCM_ADB) { in snd_vortex_pcm_hw_free()
317 if (VORTEX_PCM_TYPE(substream->pcm) != VORTEX_PCM_WT) { in snd_vortex_pcm_prepare()
321 if (VORTEX_PCM_TYPE(substream->pcm) != VORTEX_PCM_SPDIF) in snd_vortex_pcm_prepare()
345 // do something to start the PCM engine in snd_vortex_pcm_trigger()
348 if (VORTEX_PCM_TYPE(substream->pcm) != VORTEX_PCM_WT) { in snd_vortex_pcm_trigger()
360 // do something to stop the PCM engine in snd_vortex_pcm_trigger()
363 if (VORTEX_PCM_TYPE(substream->pcm) != VORTEX_PCM_WT) in snd_vortex_pcm_trigger()
374 if (VORTEX_PCM_TYPE(substream->pcm) != VORTEX_PCM_WT) in snd_vortex_pcm_trigger()
383 if (VORTEX_PCM_TYPE(substream->pcm) != VORTEX_PCM_WT) in snd_vortex_pcm_trigger()
407 if (VORTEX_PCM_TYPE(substream->pcm) != VORTEX_PCM_WT) in snd_vortex_pcm_pointer()
517 /* subdevice PCM Volume control */
584 .name = "PCM Playback Volume",
594 /* create a pcm device */
597 struct snd_pcm *pcm; in snd_vortex_new_pcm() local
605 /* idx indicates which kind of PCM device. ADB, SPDIF, I2S and A3D share the in snd_vortex_new_pcm()
612 nr_capt, &pcm); in snd_vortex_new_pcm()
615 snprintf(pcm->name, sizeof(pcm->name), in snd_vortex_new_pcm()
617 chip->pcm[idx] = pcm; in snd_vortex_new_pcm()
619 VORTEX_PCM_TYPE(pcm) = idx; in snd_vortex_new_pcm()
620 pcm->private_data = chip; in snd_vortex_new_pcm()
622 snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, in snd_vortex_new_pcm()
625 snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, in snd_vortex_new_pcm()
630 snd_pcm_set_managed_buffer_all(pcm, SNDRV_DMA_TYPE_DEV_SG, in snd_vortex_new_pcm()
633 switch (VORTEX_PCM_TYPE(pcm)) { in snd_vortex_new_pcm()
635 err = snd_pcm_add_chmap_ctls(pcm, SNDRV_PCM_STREAM_PLAYBACK, in snd_vortex_new_pcm()
641 err = snd_pcm_add_chmap_ctls(pcm, SNDRV_PCM_STREAM_CAPTURE, in snd_vortex_new_pcm()
648 err = snd_pcm_add_chmap_ctls(pcm, SNDRV_PCM_STREAM_PLAYBACK, in snd_vortex_new_pcm()
656 if (VORTEX_PCM_TYPE(pcm) == VORTEX_PCM_SPDIF) { in snd_vortex_new_pcm()
665 if (VORTEX_PCM_TYPE(pcm) == VORTEX_PCM_ADB) { in snd_vortex_new_pcm()