Lines Matching refs:epcm
203 struct emu10k1x_pcm *epcm; member
365 struct emu10k1x_pcm *epcm; in snd_emu10k1x_pcm_interrupt() local
367 if ((epcm = voice->epcm) == NULL) in snd_emu10k1x_pcm_interrupt()
369 if (epcm->substream == NULL) in snd_emu10k1x_pcm_interrupt()
374 epcm->substream->ops->pointer(epcm->substream), in snd_emu10k1x_pcm_interrupt()
375 snd_pcm_lib_period_bytes(epcm->substream), in snd_emu10k1x_pcm_interrupt()
376 snd_pcm_lib_buffer_bytes(epcm->substream)); in snd_emu10k1x_pcm_interrupt()
378 snd_pcm_period_elapsed(epcm->substream); in snd_emu10k1x_pcm_interrupt()
385 struct emu10k1x_pcm *epcm; in snd_emu10k1x_playback_open() local
395 epcm = kzalloc(sizeof(*epcm), GFP_KERNEL); in snd_emu10k1x_playback_open()
396 if (epcm == NULL) in snd_emu10k1x_playback_open()
398 epcm->emu = chip; in snd_emu10k1x_playback_open()
399 epcm->substream = substream; in snd_emu10k1x_playback_open()
401 runtime->private_data = epcm; in snd_emu10k1x_playback_open()
420 struct emu10k1x_pcm *epcm = runtime->private_data; in snd_emu10k1x_pcm_hw_params() local
422 if (! epcm->voice) { in snd_emu10k1x_pcm_hw_params()
423 epcm->voice = &epcm->emu->voices[substream->pcm->device]; in snd_emu10k1x_pcm_hw_params()
424 epcm->voice->use = 1; in snd_emu10k1x_pcm_hw_params()
425 epcm->voice->epcm = epcm; in snd_emu10k1x_pcm_hw_params()
436 struct emu10k1x_pcm *epcm; in snd_emu10k1x_pcm_hw_free() local
441 epcm = runtime->private_data; in snd_emu10k1x_pcm_hw_free()
443 if (epcm->voice) { in snd_emu10k1x_pcm_hw_free()
444 epcm->voice->use = 0; in snd_emu10k1x_pcm_hw_free()
445 epcm->voice->epcm = NULL; in snd_emu10k1x_pcm_hw_free()
446 epcm->voice = NULL; in snd_emu10k1x_pcm_hw_free()
457 struct emu10k1x_pcm *epcm = runtime->private_data; in snd_emu10k1x_pcm_prepare() local
458 int voice = epcm->voice->number; in snd_emu10k1x_pcm_prepare()
487 struct emu10k1x_pcm *epcm = runtime->private_data; in snd_emu10k1x_pcm_trigger() local
488 int channel = epcm->voice->number; in snd_emu10k1x_pcm_trigger()
503 epcm->running = 1; in snd_emu10k1x_pcm_trigger()
507 epcm->running = 0; in snd_emu10k1x_pcm_trigger()
524 struct emu10k1x_pcm *epcm = runtime->private_data; in snd_emu10k1x_pcm_pointer() local
525 int channel = epcm->voice->number; in snd_emu10k1x_pcm_pointer()
528 if (!epcm->running) in snd_emu10k1x_pcm_pointer()
566 struct emu10k1x_pcm *epcm; in snd_emu10k1x_pcm_open_capture() local
575 epcm = kzalloc(sizeof(*epcm), GFP_KERNEL); in snd_emu10k1x_pcm_open_capture()
576 if (epcm == NULL) in snd_emu10k1x_pcm_open_capture()
579 epcm->emu = chip; in snd_emu10k1x_pcm_open_capture()
580 epcm->substream = substream; in snd_emu10k1x_pcm_open_capture()
582 runtime->private_data = epcm; in snd_emu10k1x_pcm_open_capture()
601 struct emu10k1x_pcm *epcm = runtime->private_data; in snd_emu10k1x_pcm_hw_params_capture() local
603 if (! epcm->voice) { in snd_emu10k1x_pcm_hw_params_capture()
604 if (epcm->emu->capture_voice.use) in snd_emu10k1x_pcm_hw_params_capture()
606 epcm->voice = &epcm->emu->capture_voice; in snd_emu10k1x_pcm_hw_params_capture()
607 epcm->voice->epcm = epcm; in snd_emu10k1x_pcm_hw_params_capture()
608 epcm->voice->use = 1; in snd_emu10k1x_pcm_hw_params_capture()
620 struct emu10k1x_pcm *epcm; in snd_emu10k1x_pcm_hw_free_capture() local
624 epcm = runtime->private_data; in snd_emu10k1x_pcm_hw_free_capture()
626 if (epcm->voice) { in snd_emu10k1x_pcm_hw_free_capture()
627 epcm->voice->use = 0; in snd_emu10k1x_pcm_hw_free_capture()
628 epcm->voice->epcm = NULL; in snd_emu10k1x_pcm_hw_free_capture()
629 epcm->voice = NULL; in snd_emu10k1x_pcm_hw_free_capture()
655 struct emu10k1x_pcm *epcm = runtime->private_data; in snd_emu10k1x_pcm_trigger_capture() local
663 epcm->running = 1; in snd_emu10k1x_pcm_trigger_capture()
666 epcm->running = 0; in snd_emu10k1x_pcm_trigger_capture()
684 struct emu10k1x_pcm *epcm = runtime->private_data; in snd_emu10k1x_pcm_pointer_capture() local
687 if (!epcm->running) in snd_emu10k1x_pcm_pointer_capture()