Lines Matching refs:epcm

189 	struct emu10k1x_pcm *epcm;  member
351 struct emu10k1x_pcm *epcm; in snd_emu10k1x_pcm_interrupt() local
353 if ((epcm = voice->epcm) == NULL) in snd_emu10k1x_pcm_interrupt()
355 if (epcm->substream == NULL) in snd_emu10k1x_pcm_interrupt()
360 epcm->substream->ops->pointer(epcm->substream), in snd_emu10k1x_pcm_interrupt()
361 snd_pcm_lib_period_bytes(epcm->substream), in snd_emu10k1x_pcm_interrupt()
362 snd_pcm_lib_buffer_bytes(epcm->substream)); in snd_emu10k1x_pcm_interrupt()
364 snd_pcm_period_elapsed(epcm->substream); in snd_emu10k1x_pcm_interrupt()
371 struct emu10k1x_pcm *epcm; in snd_emu10k1x_playback_open() local
381 epcm = kzalloc(sizeof(*epcm), GFP_KERNEL); in snd_emu10k1x_playback_open()
382 if (epcm == NULL) in snd_emu10k1x_playback_open()
384 epcm->emu = chip; in snd_emu10k1x_playback_open()
385 epcm->substream = substream; in snd_emu10k1x_playback_open()
387 runtime->private_data = epcm; in snd_emu10k1x_playback_open()
406 struct emu10k1x_pcm *epcm = runtime->private_data; in snd_emu10k1x_pcm_hw_params() local
408 if (! epcm->voice) { in snd_emu10k1x_pcm_hw_params()
409 epcm->voice = &epcm->emu->voices[substream->pcm->device]; in snd_emu10k1x_pcm_hw_params()
410 epcm->voice->use = 1; in snd_emu10k1x_pcm_hw_params()
411 epcm->voice->epcm = epcm; in snd_emu10k1x_pcm_hw_params()
421 struct emu10k1x_pcm *epcm; in snd_emu10k1x_pcm_hw_free() local
426 epcm = runtime->private_data; in snd_emu10k1x_pcm_hw_free()
428 if (epcm->voice) { in snd_emu10k1x_pcm_hw_free()
429 epcm->voice->use = 0; in snd_emu10k1x_pcm_hw_free()
430 epcm->voice->epcm = NULL; in snd_emu10k1x_pcm_hw_free()
431 epcm->voice = NULL; in snd_emu10k1x_pcm_hw_free()
442 struct emu10k1x_pcm *epcm = runtime->private_data; in snd_emu10k1x_pcm_prepare() local
443 int voice = epcm->voice->number; in snd_emu10k1x_pcm_prepare()
472 struct emu10k1x_pcm *epcm = runtime->private_data; in snd_emu10k1x_pcm_trigger() local
473 int channel = epcm->voice->number; in snd_emu10k1x_pcm_trigger()
488 epcm->running = 1; in snd_emu10k1x_pcm_trigger()
492 epcm->running = 0; in snd_emu10k1x_pcm_trigger()
509 struct emu10k1x_pcm *epcm = runtime->private_data; in snd_emu10k1x_pcm_pointer() local
510 int channel = epcm->voice->number; in snd_emu10k1x_pcm_pointer()
513 if (!epcm->running) in snd_emu10k1x_pcm_pointer()
550 struct emu10k1x_pcm *epcm; in snd_emu10k1x_pcm_open_capture() local
559 epcm = kzalloc(sizeof(*epcm), GFP_KERNEL); in snd_emu10k1x_pcm_open_capture()
560 if (epcm == NULL) in snd_emu10k1x_pcm_open_capture()
563 epcm->emu = chip; in snd_emu10k1x_pcm_open_capture()
564 epcm->substream = substream; in snd_emu10k1x_pcm_open_capture()
566 runtime->private_data = epcm; in snd_emu10k1x_pcm_open_capture()
585 struct emu10k1x_pcm *epcm = runtime->private_data; in snd_emu10k1x_pcm_hw_params_capture() local
587 if (! epcm->voice) { in snd_emu10k1x_pcm_hw_params_capture()
588 if (epcm->emu->capture_voice.use) in snd_emu10k1x_pcm_hw_params_capture()
590 epcm->voice = &epcm->emu->capture_voice; in snd_emu10k1x_pcm_hw_params_capture()
591 epcm->voice->epcm = epcm; in snd_emu10k1x_pcm_hw_params_capture()
592 epcm->voice->use = 1; in snd_emu10k1x_pcm_hw_params_capture()
603 struct emu10k1x_pcm *epcm; in snd_emu10k1x_pcm_hw_free_capture() local
607 epcm = runtime->private_data; in snd_emu10k1x_pcm_hw_free_capture()
609 if (epcm->voice) { in snd_emu10k1x_pcm_hw_free_capture()
610 epcm->voice->use = 0; in snd_emu10k1x_pcm_hw_free_capture()
611 epcm->voice->epcm = NULL; in snd_emu10k1x_pcm_hw_free_capture()
612 epcm->voice = NULL; in snd_emu10k1x_pcm_hw_free_capture()
638 struct emu10k1x_pcm *epcm = runtime->private_data; in snd_emu10k1x_pcm_trigger_capture() local
646 epcm->running = 1; in snd_emu10k1x_pcm_trigger_capture()
649 epcm->running = 0; in snd_emu10k1x_pcm_trigger_capture()
667 struct emu10k1x_pcm *epcm = runtime->private_data; in snd_emu10k1x_pcm_pointer_capture() local
670 if (!epcm->running) in snd_emu10k1x_pcm_pointer_capture()