Lines Matching refs:apcm

58 	struct azx_pcm *apcm = snd_pcm_substream_chip(substream);  in to_hda_pcm_stream()  local
59 return &apcm->info->stream[substream->stream]; in to_hda_pcm_stream()
65 struct azx_pcm *apcm = snd_pcm_substream_chip(substream); in azx_adjust_codec_delay() local
72 codec_frames = hinfo->ops.get_delay(hinfo, apcm->codec, substream); in azx_adjust_codec_delay()
88 struct azx_pcm *apcm = snd_pcm_substream_chip(substream); in azx_pcm_close() local
90 struct azx *chip = apcm->chip; in azx_pcm_close()
97 hinfo->ops.close(hinfo, apcm->codec, substream); in azx_pcm_close()
98 snd_hda_power_down(apcm->codec); in azx_pcm_close()
100 snd_hda_codec_pcm_put(apcm->info); in azx_pcm_close()
107 struct azx_pcm *apcm = snd_pcm_substream_chip(substream); in azx_pcm_hw_params() local
108 struct azx *chip = apcm->chip; in azx_pcm_hw_params()
130 struct azx_pcm *apcm = snd_pcm_substream_chip(substream); in azx_pcm_hw_free() local
139 snd_hda_codec_cleanup(apcm->codec, hinfo, substream); in azx_pcm_hw_free()
148 struct azx_pcm *apcm = snd_pcm_substream_chip(substream); in azx_pcm_prepare() local
149 struct azx *chip = apcm->chip; in azx_pcm_prepare()
156 snd_hda_spdif_out_of_nid(apcm->codec, hinfo->nid); in azx_pcm_prepare()
191 err = snd_hda_codec_prepare(apcm->codec, hinfo, stream_tag, in azx_pcm_prepare()
203 struct azx_pcm *apcm = snd_pcm_substream_chip(substream); in azx_pcm_trigger() local
204 struct azx *chip = apcm->chip; in azx_pcm_trigger()
306 struct azx_pcm *apcm = snd_pcm_substream_chip(substream); in azx_get_position() local
312 delay += hinfo->ops.get_delay(hinfo, apcm->codec, in azx_get_position()
324 struct azx_pcm *apcm = snd_pcm_substream_chip(substream); in azx_pcm_pointer() local
325 struct azx *chip = apcm->chip; in azx_pcm_pointer()
368 struct azx_pcm *apcm = snd_pcm_substream_chip(substream); in azx_get_sync_time() local
369 struct azx *chip = apcm->chip; in azx_get_sync_time()
579 struct azx_pcm *apcm = snd_pcm_substream_chip(substream); in azx_pcm_open() local
581 struct azx *chip = apcm->chip; in azx_pcm_open()
587 snd_hda_codec_pcm_get(apcm->info); in azx_pcm_open()
638 snd_hda_power_up(apcm->codec); in azx_pcm_open()
640 err = hinfo->ops.open(hinfo, apcm->codec, substream); in azx_pcm_open()
655 hinfo->ops.close(hinfo, apcm->codec, substream); in azx_pcm_open()
672 snd_hda_power_down(apcm->codec); in azx_pcm_open()
675 snd_hda_codec_pcm_put(apcm->info); in azx_pcm_open()
682 struct azx_pcm *apcm = snd_pcm_substream_chip(substream); in azx_pcm_mmap() local
683 struct azx *chip = apcm->chip; in azx_pcm_mmap()
703 struct azx_pcm *apcm = pcm->private_data; in azx_pcm_free() local
704 if (apcm) { in azx_pcm_free()
705 list_del(&apcm->list); in azx_pcm_free()
706 apcm->info->pcm = NULL; in azx_pcm_free()
707 kfree(apcm); in azx_pcm_free()
719 struct azx_pcm *apcm; in snd_hda_attach_pcm_stream() local
725 list_for_each_entry(apcm, &chip->pcm_list, list) { in snd_hda_attach_pcm_stream()
726 if (apcm->pcm->device == pcm_dev) { in snd_hda_attach_pcm_stream()
739 apcm = kzalloc(sizeof(*apcm), GFP_KERNEL); in snd_hda_attach_pcm_stream()
740 if (apcm == NULL) { in snd_hda_attach_pcm_stream()
744 apcm->chip = chip; in snd_hda_attach_pcm_stream()
745 apcm->pcm = pcm; in snd_hda_attach_pcm_stream()
746 apcm->codec = codec; in snd_hda_attach_pcm_stream()
747 apcm->info = cpcm; in snd_hda_attach_pcm_stream()
748 pcm->private_data = apcm; in snd_hda_attach_pcm_stream()
752 list_add_tail(&apcm->list, &chip->pcm_list); in snd_hda_attach_pcm_stream()