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)
373 epcm->substream->ops->pointer(epcm->substream),
374 snd_pcm_lib_period_bytes(epcm->substream),
375 snd_pcm_lib_buffer_bytes(epcm->substream));
377 snd_pcm_period_elapsed(epcm->substream);
384 struct emu10k1x_pcm *epcm;
394 epcm = kzalloc(sizeof(*epcm), GFP_KERNEL);
395 if (epcm == NULL)
397 epcm->emu = chip;
398 epcm->substream = substream;
400 runtime->private_data = epcm;
419 struct emu10k1x_pcm *epcm = runtime->private_data;
421 if (! epcm->voice) {
422 epcm->voice = &epcm->emu->voices[substream->pcm->device];
423 epcm->voice->use = 1;
424 epcm->voice->epcm = epcm;
435 struct emu10k1x_pcm *epcm;
440 epcm = runtime->private_data;
442 if (epcm->voice) {
443 epcm->voice->use = 0;
444 epcm->voice->epcm = NULL;
445 epcm->voice = NULL;
456 struct emu10k1x_pcm *epcm = runtime->private_data;
457 int voice = epcm->voice->number;
486 struct emu10k1x_pcm *epcm = runtime->private_data;
487 int channel = epcm->voice->number;
498 epcm->running = 1;
502 epcm->running = 0;
519 struct emu10k1x_pcm *epcm = runtime->private_data;
520 int channel = epcm->voice->number;
523 if (!epcm->running)
561 struct emu10k1x_pcm *epcm;
570 epcm = kzalloc(sizeof(*epcm), GFP_KERNEL);
571 if (epcm == NULL)
574 epcm->emu = chip;
575 epcm->substream = substream;
577 runtime->private_data = epcm;
596 struct emu10k1x_pcm *epcm = runtime->private_data;
598 if (! epcm->voice) {
599 if (epcm->emu->capture_voice.use)
601 epcm->voice = &epcm->emu->capture_voice;
602 epcm->voice->epcm = epcm;
603 epcm->voice->use = 1;
615 struct emu10k1x_pcm *epcm;
619 epcm = runtime->private_data;
621 if (epcm->voice) {
622 epcm->voice->use = 0;
623 epcm->voice->epcm = NULL;
624 epcm->voice = NULL;
650 struct emu10k1x_pcm *epcm = runtime->private_data;
658 epcm->running = 1;
661 epcm->running = 0;
679 struct emu10k1x_pcm *epcm = runtime->private_data;
682 if (!epcm->running)