Home
last modified time | relevance | path

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

/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.c126 atc_pcm_release_resources(struct ct_atc *atc, struct ct_atc_pcm *apcm);
133 static int ct_map_audio_buffer(struct ct_atc *atc, struct ct_atc_pcm *apcm) in ct_map_audio_buffer() argument
138 if (!apcm->substream) in ct_map_audio_buffer()
141 runtime = apcm->substream->runtime; in ct_map_audio_buffer()
144 apcm->vm_block = vm->map(vm, apcm->substream, runtime->dma_bytes); in ct_map_audio_buffer()
146 if (!apcm->vm_block) in ct_map_audio_buffer()
152 static void ct_unmap_audio_buffer(struct ct_atc *atc, struct ct_atc_pcm *apcm) in ct_unmap_audio_buffer() argument
156 if (!apcm->vm_block) in ct_unmap_audio_buffer()
161 vm->unmap(vm, apcm->vm_block); in ct_unmap_audio_buffer()
163 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);
/sound/pci/hda/
Dhda_controller.c58 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
[all …]
Dhda_intel.c2071 struct azx_pcm *apcm = snd_pcm_substream_chip(substream); in pcm_mmap_prepare() local
2072 struct azx *chip = apcm->chip; in pcm_mmap_prepare()