Lines Matching refs:apcm
63 struct azx_pcm *apcm = snd_pcm_substream_chip(substream); in to_hda_pcm_stream() local
64 return &apcm->info->stream[substream->stream]; in to_hda_pcm_stream()
70 struct azx_pcm *apcm = snd_pcm_substream_chip(substream); in azx_adjust_codec_delay() local
77 codec_frames = hinfo->ops.get_delay(hinfo, apcm->codec, substream); in azx_adjust_codec_delay()
93 struct azx_pcm *apcm = snd_pcm_substream_chip(substream); in azx_pcm_close() local
95 struct azx *chip = apcm->chip; in azx_pcm_close()
102 hinfo->ops.close(hinfo, apcm->codec, substream); in azx_pcm_close()
103 snd_hda_power_down(apcm->codec); in azx_pcm_close()
105 snd_hda_codec_pcm_put(apcm->info); in azx_pcm_close()
112 struct azx_pcm *apcm = snd_pcm_substream_chip(substream); in azx_pcm_hw_params() local
113 struct azx *chip = apcm->chip; in azx_pcm_hw_params()
136 struct azx_pcm *apcm = snd_pcm_substream_chip(substream); in azx_pcm_hw_free() local
138 struct azx *chip = apcm->chip; in azx_pcm_hw_free()
147 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()
200 err = snd_hda_codec_prepare(apcm->codec, hinfo, stream_tag, in azx_pcm_prepare()
212 struct azx_pcm *apcm = snd_pcm_substream_chip(substream); in azx_pcm_trigger() local
213 struct azx *chip = apcm->chip; in azx_pcm_trigger()
315 struct azx_pcm *apcm = snd_pcm_substream_chip(substream); in azx_get_position() local
321 delay += hinfo->ops.get_delay(hinfo, apcm->codec, in azx_get_position()
333 struct azx_pcm *apcm = snd_pcm_substream_chip(substream); in azx_pcm_pointer() local
334 struct azx *chip = apcm->chip; in azx_pcm_pointer()
398 struct azx_pcm *apcm = snd_pcm_substream_chip(substream); in azx_pcm_open() local
400 struct azx *chip = apcm->chip; in azx_pcm_open()
406 snd_hda_codec_pcm_get(apcm->info); in azx_pcm_open()
447 snd_hda_power_up(apcm->codec); in azx_pcm_open()
449 err = hinfo->ops.open(hinfo, apcm->codec, substream); in azx_pcm_open()
464 hinfo->ops.close(hinfo, apcm->codec, substream); in azx_pcm_open()
481 snd_hda_power_down(apcm->codec); in azx_pcm_open()
484 snd_hda_codec_pcm_put(apcm->info); in azx_pcm_open()
491 struct azx_pcm *apcm = snd_pcm_substream_chip(substream); in azx_pcm_mmap() local
492 struct azx *chip = apcm->chip; in azx_pcm_mmap()
514 struct azx_pcm *apcm = pcm->private_data; in azx_pcm_free() local
515 if (apcm) { in azx_pcm_free()
516 list_del(&apcm->list); in azx_pcm_free()
517 apcm->info->pcm = NULL; in azx_pcm_free()
518 kfree(apcm); in azx_pcm_free()
530 struct azx_pcm *apcm; in snd_hda_attach_pcm_stream() local
535 list_for_each_entry(apcm, &chip->pcm_list, list) { in snd_hda_attach_pcm_stream()
536 if (apcm->pcm->device == pcm_dev) { in snd_hda_attach_pcm_stream()
549 apcm = kzalloc(sizeof(*apcm), GFP_KERNEL); in snd_hda_attach_pcm_stream()
550 if (apcm == NULL) in snd_hda_attach_pcm_stream()
552 apcm->chip = chip; in snd_hda_attach_pcm_stream()
553 apcm->pcm = pcm; in snd_hda_attach_pcm_stream()
554 apcm->codec = codec; in snd_hda_attach_pcm_stream()
555 apcm->info = cpcm; in snd_hda_attach_pcm_stream()
556 pcm->private_data = apcm; in snd_hda_attach_pcm_stream()
560 list_add_tail(&apcm->list, &chip->pcm_list); in snd_hda_attach_pcm_stream()