Lines Matching refs:epcm

188 	struct emu10k1x_pcm *epcm;  member
349 struct emu10k1x_pcm *epcm; in snd_emu10k1x_pcm_interrupt() local
351 epcm = voice->epcm; in snd_emu10k1x_pcm_interrupt()
352 if (!epcm) in snd_emu10k1x_pcm_interrupt()
354 if (epcm->substream == NULL) in snd_emu10k1x_pcm_interrupt()
359 epcm->substream->ops->pointer(epcm->substream), in snd_emu10k1x_pcm_interrupt()
360 snd_pcm_lib_period_bytes(epcm->substream), in snd_emu10k1x_pcm_interrupt()
361 snd_pcm_lib_buffer_bytes(epcm->substream)); in snd_emu10k1x_pcm_interrupt()
363 snd_pcm_period_elapsed(epcm->substream); in snd_emu10k1x_pcm_interrupt()
370 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
561 epcm = kzalloc(sizeof(*epcm), GFP_KERNEL); in snd_emu10k1x_pcm_open_capture()
562 if (epcm == NULL) in snd_emu10k1x_pcm_open_capture()
565 epcm->emu = chip; in snd_emu10k1x_pcm_open_capture()
566 epcm->substream = substream; in snd_emu10k1x_pcm_open_capture()
568 runtime->private_data = epcm; in snd_emu10k1x_pcm_open_capture()
587 struct emu10k1x_pcm *epcm = runtime->private_data; in snd_emu10k1x_pcm_hw_params_capture() local
589 if (! epcm->voice) { in snd_emu10k1x_pcm_hw_params_capture()
590 if (epcm->emu->capture_voice.use) in snd_emu10k1x_pcm_hw_params_capture()
592 epcm->voice = &epcm->emu->capture_voice; in snd_emu10k1x_pcm_hw_params_capture()
593 epcm->voice->epcm = epcm; in snd_emu10k1x_pcm_hw_params_capture()
594 epcm->voice->use = 1; in snd_emu10k1x_pcm_hw_params_capture()
605 struct emu10k1x_pcm *epcm; in snd_emu10k1x_pcm_hw_free_capture() local
609 epcm = runtime->private_data; in snd_emu10k1x_pcm_hw_free_capture()
611 if (epcm->voice) { in snd_emu10k1x_pcm_hw_free_capture()
612 epcm->voice->use = 0; in snd_emu10k1x_pcm_hw_free_capture()
613 epcm->voice->epcm = NULL; in snd_emu10k1x_pcm_hw_free_capture()
614 epcm->voice = NULL; in snd_emu10k1x_pcm_hw_free_capture()
640 struct emu10k1x_pcm *epcm = runtime->private_data; in snd_emu10k1x_pcm_trigger_capture() local
648 epcm->running = 1; in snd_emu10k1x_pcm_trigger_capture()
651 epcm->running = 0; in snd_emu10k1x_pcm_trigger_capture()
669 struct emu10k1x_pcm *epcm = runtime->private_data; in snd_emu10k1x_pcm_pointer_capture() local
672 if (!epcm->running) in snd_emu10k1x_pcm_pointer_capture()