Lines Matching refs:epcm
203 struct emu10k1x_pcm *epcm;
365 struct emu10k1x_pcm *epcm;
367 if ((epcm = voice->epcm) == NULL)
369 if (epcm->substream == NULL)
371 snd_pcm_period_elapsed(epcm->substream);
378 struct emu10k1x_pcm *epcm;
388 epcm = kzalloc(sizeof(*epcm), GFP_KERNEL);
389 if (epcm == NULL)
391 epcm->emu = chip;
392 epcm->substream = substream;
394 runtime->private_data = epcm;
413 struct emu10k1x_pcm *epcm = runtime->private_data;
415 if (! epcm->voice) {
416 epcm->voice = &epcm->emu->voices[substream->pcm->device];
417 epcm->voice->use = 1;
418 epcm->voice->epcm = epcm;
429 struct emu10k1x_pcm *epcm;
434 epcm = runtime->private_data;
436 if (epcm->voice) {
437 epcm->voice->use = 0;
438 epcm->voice->epcm = NULL;
439 epcm->voice = NULL;
450 struct emu10k1x_pcm *epcm = runtime->private_data;
451 int voice = epcm->voice->number;
480 struct emu10k1x_pcm *epcm = runtime->private_data;
481 int channel = epcm->voice->number;
492 epcm->running = 1;
496 epcm->running = 0;
513 struct emu10k1x_pcm *epcm = runtime->private_data;
514 int channel = epcm->voice->number;
517 if (!epcm->running)
555 struct emu10k1x_pcm *epcm;
564 epcm = kzalloc(sizeof(*epcm), GFP_KERNEL);
565 if (epcm == NULL)
568 epcm->emu = chip;
569 epcm->substream = substream;
571 runtime->private_data = epcm;
590 struct emu10k1x_pcm *epcm = runtime->private_data;
592 if (! epcm->voice) {
593 if (epcm->emu->capture_voice.use)
595 epcm->voice = &epcm->emu->capture_voice;
596 epcm->voice->epcm = epcm;
597 epcm->voice->use = 1;
609 struct emu10k1x_pcm *epcm;
613 epcm = runtime->private_data;
615 if (epcm->voice) {
616 epcm->voice->use = 0;
617 epcm->voice->epcm = NULL;
618 epcm->voice = NULL;
644 struct emu10k1x_pcm *epcm = runtime->private_data;
652 epcm->running = 1;
655 epcm->running = 0;
673 struct emu10k1x_pcm *epcm = runtime->private_data;
676 if (!epcm->running)