Lines Matching refs:atc

110 	struct ct_atc *atc = snd_pcm_substream_chip(apcm->substream);  in ct_atc_pcm_free_substream()  local
112 atc->pcm_release_resources(atc, apcm); in ct_atc_pcm_free_substream()
121 struct ct_atc *atc = snd_pcm_substream_chip(substream); in ct_pcm_playback_open() local
134 atc->spdif_out_passthru(atc, 1); in ct_pcm_playback_open()
155 apcm->timer = ct_timer_instance_new(atc->timer, apcm); in ct_pcm_playback_open()
168 struct ct_atc *atc = snd_pcm_substream_chip(substream); in ct_pcm_playback_close() local
172 atc->spdif_out_passthru(atc, 0); in ct_pcm_playback_close()
182 struct ct_atc *atc = snd_pcm_substream_chip(substream); in ct_pcm_hw_params() local
191 atc->pcm_release_resources(atc, apcm); in ct_pcm_hw_params()
197 struct ct_atc *atc = snd_pcm_substream_chip(substream); in ct_pcm_hw_free() local
201 atc->pcm_release_resources(atc, apcm); in ct_pcm_hw_free()
210 struct ct_atc *atc = snd_pcm_substream_chip(substream); in ct_pcm_playback_prepare() local
215 err = atc->spdif_passthru_playback_prepare(atc, apcm); in ct_pcm_playback_prepare()
217 err = atc->pcm_playback_prepare(atc, apcm); in ct_pcm_playback_prepare()
220 dev_err(atc->card->dev, in ct_pcm_playback_prepare()
231 struct ct_atc *atc = snd_pcm_substream_chip(substream); in ct_pcm_playback_trigger() local
239 atc->pcm_playback_start(atc, apcm); in ct_pcm_playback_trigger()
244 atc->pcm_playback_stop(atc, apcm); in ct_pcm_playback_trigger()
257 struct ct_atc *atc = snd_pcm_substream_chip(substream); in ct_pcm_playback_pointer() local
262 position = atc->pcm_playback_position(atc, apcm); in ct_pcm_playback_pointer()
272 struct ct_atc *atc = snd_pcm_substream_chip(substream); in ct_pcm_capture_open() local
285 runtime->hw.rate_max = atc->rsr * atc->msr; in ct_pcm_capture_open()
301 apcm->timer = ct_timer_instance_new(atc->timer, apcm); in ct_pcm_capture_open()
322 struct ct_atc *atc = snd_pcm_substream_chip(substream); in ct_pcm_capture_prepare() local
326 err = atc->pcm_capture_prepare(atc, apcm); in ct_pcm_capture_prepare()
328 dev_err(atc->card->dev, in ct_pcm_capture_prepare()
339 struct ct_atc *atc = snd_pcm_substream_chip(substream); in ct_pcm_capture_trigger() local
345 atc->pcm_capture_start(atc, apcm); in ct_pcm_capture_trigger()
348 atc->pcm_capture_stop(atc, apcm); in ct_pcm_capture_trigger()
351 atc->pcm_capture_stop(atc, apcm); in ct_pcm_capture_trigger()
362 struct ct_atc *atc = snd_pcm_substream_chip(substream); in ct_pcm_capture_pointer() local
367 position = atc->pcm_capture_position(atc, apcm); in ct_pcm_capture_pointer()
425 int ct_alsa_pcm_create(struct ct_atc *atc, in ct_alsa_pcm_create() argument
437 err = snd_pcm_new(atc->card, "ctxfi", device, in ct_alsa_pcm_create()
440 dev_err(atc->card->dev, "snd_pcm_new failed!! Err=%d\n", in ct_alsa_pcm_create()
445 pcm->private_data = atc; in ct_alsa_pcm_create()
457 snd_dma_pci_data(atc->pci), 128*1024, 128*1024); in ct_alsa_pcm_create()
484 atc->pcms[device] = pcm; in ct_alsa_pcm_create()