Lines Matching defs:apcm
95 struct ct_atc_pcm *apcm = atc_pcm;
97 if (!apcm->substream)
100 snd_pcm_period_elapsed(apcm->substream);
105 struct ct_atc_pcm *apcm = runtime->private_data;
106 struct ct_atc *atc = snd_pcm_substream_chip(apcm->substream);
108 atc->pcm_release_resources(atc, apcm);
109 ct_timer_instance_free(apcm->timer);
110 kfree(apcm);
119 struct ct_atc_pcm *apcm;
122 apcm = kzalloc(sizeof(*apcm), GFP_KERNEL);
123 if (!apcm)
126 apcm->substream = substream;
127 apcm->interrupt = ct_atc_pcm_interrupt;
148 apcm->timer = ct_timer_instance_new(atc->timer, apcm);
149 if (!apcm->timer) {
153 runtime->private_data = apcm;
159 kfree(apcm);
180 struct ct_atc_pcm *apcm = substream->runtime->private_data;
183 atc->pcm_release_resources(atc, apcm);
190 struct ct_atc_pcm *apcm = substream->runtime->private_data;
193 atc->pcm_release_resources(atc, apcm);
203 struct ct_atc_pcm *apcm = runtime->private_data;
206 err = atc->spdif_passthru_playback_prepare(atc, apcm);
208 err = atc->pcm_playback_prepare(atc, apcm);
224 struct ct_atc_pcm *apcm = runtime->private_data;
230 atc->pcm_playback_start(atc, apcm);
235 atc->pcm_playback_stop(atc, apcm);
250 struct ct_atc_pcm *apcm = runtime->private_data;
253 position = atc->pcm_playback_position(atc, apcm);
265 struct ct_atc_pcm *apcm;
268 apcm = kzalloc(sizeof(*apcm), GFP_KERNEL);
269 if (!apcm)
272 apcm->started = 0;
273 apcm->substream = substream;
274 apcm->interrupt = ct_atc_pcm_interrupt;
289 apcm->timer = ct_timer_instance_new(atc->timer, apcm);
290 if (!apcm->timer) {
294 runtime->private_data = apcm;
300 kfree(apcm);
316 struct ct_atc_pcm *apcm = runtime->private_data;
318 err = atc->pcm_capture_prepare(atc, apcm);
333 struct ct_atc_pcm *apcm = runtime->private_data;
337 atc->pcm_capture_start(atc, apcm);
340 atc->pcm_capture_stop(atc, apcm);
343 atc->pcm_capture_stop(atc, apcm);
356 struct ct_atc_pcm *apcm = runtime->private_data;
359 position = atc->pcm_capture_position(atc, apcm);