Home
last modified time | relevance | path

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

/linux-6.1.9/sound/pci/ctxfi/
Dctpcm.c95 struct ct_atc_pcm *apcm = atc_pcm; in ct_atc_pcm_interrupt() local
97 if (!apcm->substream) in ct_atc_pcm_interrupt()
100 snd_pcm_period_elapsed(apcm->substream); in ct_atc_pcm_interrupt()
105 struct ct_atc_pcm *apcm = runtime->private_data; in ct_atc_pcm_free_substream() local
106 struct ct_atc *atc = snd_pcm_substream_chip(apcm->substream); in ct_atc_pcm_free_substream()
108 atc->pcm_release_resources(atc, apcm); in ct_atc_pcm_free_substream()
109 ct_timer_instance_free(apcm->timer); in ct_atc_pcm_free_substream()
110 kfree(apcm); in ct_atc_pcm_free_substream()
119 struct ct_atc_pcm *apcm; in ct_pcm_playback_open() local
122 apcm = kzalloc(sizeof(*apcm), GFP_KERNEL); in ct_pcm_playback_open()
[all …]
Dctatc.c128 atc_pcm_release_resources(struct ct_atc *atc, struct ct_atc_pcm *apcm);
135 static int ct_map_audio_buffer(struct ct_atc *atc, struct ct_atc_pcm *apcm) in ct_map_audio_buffer() argument
140 if (!apcm->substream) in ct_map_audio_buffer()
143 runtime = apcm->substream->runtime; in ct_map_audio_buffer()
146 apcm->vm_block = vm->map(vm, apcm->substream, runtime->dma_bytes); in ct_map_audio_buffer()
148 if (!apcm->vm_block) in ct_map_audio_buffer()
154 static void ct_unmap_audio_buffer(struct ct_atc *atc, struct ct_atc_pcm *apcm) in ct_unmap_audio_buffer() argument
158 if (!apcm->vm_block) in ct_unmap_audio_buffer()
163 vm->unmap(vm, apcm->vm_block); in ct_unmap_audio_buffer()
165 apcm->vm_block = NULL; in ct_unmap_audio_buffer()
[all …]
Dctatc.h56 void (*interrupt)(struct ct_atc_pcm *apcm);
86 int (*map_audio_buffer)(struct ct_atc *atc, struct ct_atc_pcm *apcm);
87 void (*unmap_audio_buffer)(struct ct_atc *atc, struct ct_atc_pcm *apcm);
93 struct ct_atc_pcm *apcm);
94 int (*pcm_playback_start)(struct ct_atc *atc, struct ct_atc_pcm *apcm);
95 int (*pcm_playback_stop)(struct ct_atc *atc, struct ct_atc_pcm *apcm);
97 struct ct_atc_pcm *apcm);
99 struct ct_atc_pcm *apcm);
100 int (*pcm_capture_prepare)(struct ct_atc *atc, struct ct_atc_pcm *apcm);
101 int (*pcm_capture_start)(struct ct_atc *atc, struct ct_atc_pcm *apcm);
[all …]
Dcttimer.c33 struct ct_atc_pcm *apcm; member
68 struct ct_atc_pcm *apcm = ti->apcm; in ct_systimer_callback() local
78 apcm->interrupt(apcm); in ct_systimer_callback()
238 ti->apcm->interrupt(ti->apcm); in ct_xfitimer_check_period()
334 ct_timer_instance_new(struct ct_timer *atimer, struct ct_atc_pcm *apcm) in ct_timer_instance_new() argument
345 ti->apcm = apcm; in ct_timer_instance_new()
346 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-6.1.9/sound/pci/hda/
Dhda_controller.c59 struct azx_pcm *apcm = snd_pcm_substream_chip(substream); in to_hda_pcm_stream() local
60 return &apcm->info->stream[substream->stream]; in to_hda_pcm_stream()
66 struct azx_pcm *apcm = snd_pcm_substream_chip(substream); in azx_adjust_codec_delay() local
73 codec_frames = hinfo->ops.get_delay(hinfo, apcm->codec, substream); in azx_adjust_codec_delay()
89 struct azx_pcm *apcm = snd_pcm_substream_chip(substream); in azx_pcm_close() local
91 struct azx *chip = apcm->chip; in azx_pcm_close()
98 hinfo->ops.close(hinfo, apcm->codec, substream); in azx_pcm_close()
99 snd_hda_power_down(apcm->codec); in azx_pcm_close()
101 snd_hda_codec_pcm_put(apcm->info); in azx_pcm_close()
108 struct azx_pcm *apcm = snd_pcm_substream_chip(substream); in azx_pcm_hw_params() local
[all …]