Lines Matching refs:pcm
175 int key = (substream->pcm->device << 16) | (substream->number << 2) | in azx_assign_device()
592 if (s->pcm->card != substream->pcm->card) in azx_pcm_trigger()
610 if (s->pcm->card != substream->pcm->card) in azx_pcm_trigger()
630 if (s->pcm->card != substream->pcm->card) in azx_pcm_trigger()
646 if (s->pcm->card != substream->pcm->card) in azx_pcm_trigger()
678 if (s->pcm->card != substream->pcm->card) in azx_pcm_trigger()
919 static void azx_pcm_free(struct snd_pcm *pcm) in azx_pcm_free() argument
921 struct azx_pcm *apcm = pcm->private_data; in azx_pcm_free()
924 apcm->info->pcm = NULL; in azx_pcm_free()
935 struct snd_pcm *pcm; in azx_attach_pcm_stream() local
942 if (apcm->pcm->device == pcm_dev) { in azx_attach_pcm_stream()
951 &pcm); in azx_attach_pcm_stream()
954 strlcpy(pcm->name, cpcm->name, sizeof(pcm->name)); in azx_attach_pcm_stream()
959 apcm->pcm = pcm; in azx_attach_pcm_stream()
962 pcm->private_data = apcm; in azx_attach_pcm_stream()
963 pcm->private_free = azx_pcm_free; in azx_attach_pcm_stream()
965 pcm->dev_class = SNDRV_PCM_CLASS_MODEM; in azx_attach_pcm_stream()
967 cpcm->pcm = pcm; in azx_attach_pcm_stream()
970 snd_pcm_set_ops(pcm, s, &azx_pcm_ops); in azx_attach_pcm_stream()
976 snd_pcm_lib_preallocate_pages_for_all(pcm, SNDRV_DMA_TYPE_DEV_SG, in azx_attach_pcm_stream()