Lines Matching refs:apcm

60 	struct azx_pcm *apcm = snd_pcm_substream_chip(substream);  in to_hda_pcm_stream()  local
61 return &apcm->info->stream[substream->stream]; in to_hda_pcm_stream()
67 struct azx_pcm *apcm = snd_pcm_substream_chip(substream); in azx_adjust_codec_delay() local
74 codec_frames = hinfo->ops.get_delay(hinfo, apcm->codec, substream); in azx_adjust_codec_delay()
90 struct azx_pcm *apcm = snd_pcm_substream_chip(substream); in azx_pcm_close() local
92 struct azx *chip = apcm->chip; in azx_pcm_close()
99 hinfo->ops.close(hinfo, apcm->codec, substream); in azx_pcm_close()
100 snd_hda_power_down(apcm->codec); in azx_pcm_close()
102 snd_hda_codec_pcm_put(apcm->info); in azx_pcm_close()
109 struct azx_pcm *apcm = snd_pcm_substream_chip(substream); in azx_pcm_hw_params() local
110 struct azx *chip = apcm->chip; in azx_pcm_hw_params()
139 struct azx_pcm *apcm = snd_pcm_substream_chip(substream); in azx_pcm_hw_free() local
148 snd_hda_codec_cleanup(apcm->codec, hinfo, substream); in azx_pcm_hw_free()
157 struct azx_pcm *apcm = snd_pcm_substream_chip(substream); in azx_pcm_prepare() local
158 struct azx *chip = apcm->chip; in azx_pcm_prepare()
165 snd_hda_spdif_out_of_nid(apcm->codec, hinfo->nid); in azx_pcm_prepare()
198 err = snd_hda_codec_prepare(apcm->codec, hinfo, stream_tag, in azx_pcm_prepare()
210 struct azx_pcm *apcm = snd_pcm_substream_chip(substream); in azx_pcm_trigger() local
211 struct azx *chip = apcm->chip; in azx_pcm_trigger()
312 struct azx_pcm *apcm = snd_pcm_substream_chip(substream); in azx_get_position() local
318 delay += hinfo->ops.get_delay(hinfo, apcm->codec, in azx_get_position()
330 struct azx_pcm *apcm = snd_pcm_substream_chip(substream); in azx_pcm_pointer() local
331 struct azx *chip = apcm->chip; in azx_pcm_pointer()
374 struct azx_pcm *apcm = snd_pcm_substream_chip(substream); in azx_get_sync_time() local
375 struct azx *chip = apcm->chip; in azx_get_sync_time()
585 struct azx_pcm *apcm = snd_pcm_substream_chip(substream); in azx_pcm_open() local
587 struct azx *chip = apcm->chip; in azx_pcm_open()
593 snd_hda_codec_pcm_get(apcm->info); in azx_pcm_open()
637 snd_hda_power_up(apcm->codec); in azx_pcm_open()
639 err = hinfo->ops.open(hinfo, apcm->codec, substream); in azx_pcm_open()
654 hinfo->ops.close(hinfo, apcm->codec, substream); in azx_pcm_open()
671 snd_hda_power_down(apcm->codec); in azx_pcm_open()
674 snd_hda_codec_pcm_put(apcm->info); in azx_pcm_open()
691 struct azx_pcm *apcm = pcm->private_data; in azx_pcm_free() local
692 if (apcm) { in azx_pcm_free()
693 list_del(&apcm->list); in azx_pcm_free()
694 apcm->info->pcm = NULL; in azx_pcm_free()
695 kfree(apcm); in azx_pcm_free()
707 struct azx_pcm *apcm; in snd_hda_attach_pcm_stream() local
713 list_for_each_entry(apcm, &chip->pcm_list, list) { in snd_hda_attach_pcm_stream()
714 if (apcm->pcm->device == pcm_dev) { in snd_hda_attach_pcm_stream()
727 apcm = kzalloc(sizeof(*apcm), GFP_KERNEL); in snd_hda_attach_pcm_stream()
728 if (apcm == NULL) { in snd_hda_attach_pcm_stream()
732 apcm->chip = chip; in snd_hda_attach_pcm_stream()
733 apcm->pcm = pcm; in snd_hda_attach_pcm_stream()
734 apcm->codec = codec; in snd_hda_attach_pcm_stream()
735 apcm->info = cpcm; in snd_hda_attach_pcm_stream()
736 pcm->private_data = apcm; in snd_hda_attach_pcm_stream()
740 list_add_tail(&apcm->list, &chip->pcm_list); in snd_hda_attach_pcm_stream()