Home
last modified time | relevance | path

Searched refs:apcm (Results 1 – 7 of 7) sorted by relevance

/Linux-v4.19/sound/pci/ctxfi/
Dctpcm.c99 struct ct_atc_pcm *apcm = atc_pcm; in ct_atc_pcm_interrupt() local
101 if (!apcm->substream) in ct_atc_pcm_interrupt()
104 snd_pcm_period_elapsed(apcm->substream); in ct_atc_pcm_interrupt()
109 struct ct_atc_pcm *apcm = runtime->private_data; in ct_atc_pcm_free_substream() local
110 struct ct_atc *atc = snd_pcm_substream_chip(apcm->substream); in ct_atc_pcm_free_substream()
112 atc->pcm_release_resources(atc, apcm); in ct_atc_pcm_free_substream()
113 ct_timer_instance_free(apcm->timer); in ct_atc_pcm_free_substream()
114 kfree(apcm); in ct_atc_pcm_free_substream()
123 struct ct_atc_pcm *apcm; in ct_pcm_playback_open() local
126 apcm = kzalloc(sizeof(*apcm), GFP_KERNEL); in ct_pcm_playback_open()
[all …]
Dctatc.c129 atc_pcm_release_resources(struct ct_atc *atc, struct ct_atc_pcm *apcm);
136 static int ct_map_audio_buffer(struct ct_atc *atc, struct ct_atc_pcm *apcm) in ct_map_audio_buffer() argument
141 if (!apcm->substream) in ct_map_audio_buffer()
144 runtime = apcm->substream->runtime; in ct_map_audio_buffer()
147 apcm->vm_block = vm->map(vm, apcm->substream, runtime->dma_bytes); in ct_map_audio_buffer()
149 if (!apcm->vm_block) in ct_map_audio_buffer()
155 static void ct_unmap_audio_buffer(struct ct_atc *atc, struct ct_atc_pcm *apcm) in ct_unmap_audio_buffer() argument
159 if (!apcm->vm_block) in ct_unmap_audio_buffer()
164 vm->unmap(vm, apcm->vm_block); in ct_unmap_audio_buffer()
166 apcm->vm_block = NULL; in ct_unmap_audio_buffer()
[all …]
Dctatc.h60 void (*interrupt)(struct ct_atc_pcm *apcm);
90 int (*map_audio_buffer)(struct ct_atc *atc, struct ct_atc_pcm *apcm);
91 void (*unmap_audio_buffer)(struct ct_atc *atc, struct ct_atc_pcm *apcm);
97 struct ct_atc_pcm *apcm);
98 int (*pcm_playback_start)(struct ct_atc *atc, struct ct_atc_pcm *apcm);
99 int (*pcm_playback_stop)(struct ct_atc *atc, struct ct_atc_pcm *apcm);
101 struct ct_atc_pcm *apcm);
103 struct ct_atc_pcm *apcm);
104 int (*pcm_capture_prepare)(struct ct_atc *atc, struct ct_atc_pcm *apcm);
105 int (*pcm_capture_start)(struct ct_atc *atc, struct ct_atc_pcm *apcm);
[all …]
Dcttimer.c36 struct ct_atc_pcm *apcm; member
71 struct ct_atc_pcm *apcm = ti->apcm; in ct_systimer_callback() local
81 apcm->interrupt(apcm); in ct_systimer_callback()
241 ti->apcm->interrupt(ti->apcm); in ct_xfitimer_check_period()
337 ct_timer_instance_new(struct ct_timer *atimer, struct ct_atc_pcm *apcm) in ct_timer_instance_new() argument
348 ti->apcm = apcm; in ct_timer_instance_new()
349 ti->substream = apcm->substream; in ct_timer_instance_new()
Dcttimer.h24 ct_timer_instance_new(struct ct_timer *atimer, struct ct_atc_pcm *apcm);
/Linux-v4.19/sound/pci/hda/
Dhda_controller.c69 struct azx_pcm *apcm = snd_pcm_substream_chip(substream); in to_hda_pcm_stream() local
70 return &apcm->info->stream[substream->stream]; in to_hda_pcm_stream()
76 struct azx_pcm *apcm = snd_pcm_substream_chip(substream); in azx_adjust_codec_delay() local
83 codec_frames = hinfo->ops.get_delay(hinfo, apcm->codec, substream); in azx_adjust_codec_delay()
99 struct azx_pcm *apcm = snd_pcm_substream_chip(substream); in azx_pcm_close() local
101 struct azx *chip = apcm->chip; in azx_pcm_close()
108 hinfo->ops.close(hinfo, apcm->codec, substream); in azx_pcm_close()
109 snd_hda_power_down(apcm->codec); in azx_pcm_close()
111 snd_hda_codec_pcm_put(apcm->info); in azx_pcm_close()
118 struct azx_pcm *apcm = snd_pcm_substream_chip(substream); in azx_pcm_hw_params() local
[all …]
Dhda_intel.c2139 struct azx_pcm *apcm = snd_pcm_substream_chip(substream); in pcm_mmap_prepare() local
2140 struct azx *chip = apcm->chip; in pcm_mmap_prepare()