Lines Matching refs:pcm
250 if (s->pcm->card != substream->pcm->card) in azx_pcm_trigger()
263 if (s->pcm->card != substream->pcm->card) in azx_pcm_trigger()
512 static void azx_pcm_free(struct snd_pcm *pcm) in azx_pcm_free() argument
514 struct azx_pcm *apcm = pcm->private_data; in azx_pcm_free()
517 apcm->info->pcm = NULL; in azx_pcm_free()
529 struct snd_pcm *pcm; in snd_hda_attach_pcm_stream() local
536 if (apcm->pcm->device == pcm_dev) { in snd_hda_attach_pcm_stream()
545 &pcm); in snd_hda_attach_pcm_stream()
548 strlcpy(pcm->name, cpcm->name, sizeof(pcm->name)); in snd_hda_attach_pcm_stream()
553 apcm->pcm = pcm; in snd_hda_attach_pcm_stream()
556 pcm->private_data = apcm; in snd_hda_attach_pcm_stream()
557 pcm->private_free = azx_pcm_free; in snd_hda_attach_pcm_stream()
559 pcm->dev_class = SNDRV_PCM_CLASS_MODEM; in snd_hda_attach_pcm_stream()
561 cpcm->pcm = pcm; in snd_hda_attach_pcm_stream()
564 snd_pcm_set_ops(pcm, s, &azx_pcm_ops); in snd_hda_attach_pcm_stream()
570 snd_pcm_lib_preallocate_pages_for_all(pcm, SNDRV_DMA_TYPE_DEV_SG, in snd_hda_attach_pcm_stream()