Lines Matching refs:epcm
552 struct snd_ca0106_pcm *epcm; in snd_ca0106_pcm_open_playback_channel() local
556 epcm = kzalloc(sizeof(*epcm), GFP_KERNEL); in snd_ca0106_pcm_open_playback_channel()
558 if (epcm == NULL) in snd_ca0106_pcm_open_playback_channel()
560 epcm->emu = chip; in snd_ca0106_pcm_open_playback_channel()
561 epcm->substream = substream; in snd_ca0106_pcm_open_playback_channel()
562 epcm->channel_id=channel_id; in snd_ca0106_pcm_open_playback_channel()
564 runtime->private_data = epcm; in snd_ca0106_pcm_open_playback_channel()
578 channel->epcm = epcm; in snd_ca0106_pcm_open_playback_channel()
602 struct snd_ca0106_pcm *epcm = runtime->private_data; in snd_ca0106_pcm_close_playback() local
603 chip->playback_channels[epcm->channel_id].use = 0; in snd_ca0106_pcm_close_playback()
605 restore_spdif_bits(chip, epcm->channel_id); in snd_ca0106_pcm_close_playback()
608 if (epcm->channel_id != PCM_FRONT_CHANNEL) { in snd_ca0106_pcm_close_playback()
610 err = snd_ca0106_pcm_power_dac(chip, epcm->channel_id, 0); in snd_ca0106_pcm_close_playback()
645 struct snd_ca0106_pcm *epcm; in snd_ca0106_pcm_open_capture_channel() local
649 epcm = kzalloc(sizeof(*epcm), GFP_KERNEL); in snd_ca0106_pcm_open_capture_channel()
650 if (!epcm) in snd_ca0106_pcm_open_capture_channel()
653 epcm->emu = chip; in snd_ca0106_pcm_open_capture_channel()
654 epcm->substream = substream; in snd_ca0106_pcm_open_capture_channel()
655 epcm->channel_id=channel_id; in snd_ca0106_pcm_open_capture_channel()
657 runtime->private_data = epcm; in snd_ca0106_pcm_open_capture_channel()
671 channel->epcm = epcm; in snd_ca0106_pcm_open_capture_channel()
685 struct snd_ca0106_pcm *epcm = runtime->private_data; in snd_ca0106_pcm_close_capture() local
686 chip->capture_channels[epcm->channel_id].use = 0; in snd_ca0106_pcm_close_capture()
716 struct snd_ca0106_pcm *epcm = runtime->private_data; in snd_ca0106_pcm_prepare_playback() local
717 int channel = epcm->channel_id; in snd_ca0106_pcm_prepare_playback()
829 struct snd_ca0106_pcm *epcm = runtime->private_data; in snd_ca0106_pcm_prepare_capture() local
830 int channel = epcm->channel_id; in snd_ca0106_pcm_prepare_capture()
921 struct snd_ca0106_pcm *epcm; in snd_ca0106_pcm_trigger_playback() local
946 epcm = runtime->private_data; in snd_ca0106_pcm_trigger_playback()
947 channel = epcm->channel_id; in snd_ca0106_pcm_trigger_playback()
949 epcm->running = running; in snd_ca0106_pcm_trigger_playback()
988 struct snd_ca0106_pcm *epcm = runtime->private_data; in snd_ca0106_pcm_trigger_capture() local
989 int channel = epcm->channel_id; in snd_ca0106_pcm_trigger_capture()
996 epcm->running = 1; in snd_ca0106_pcm_trigger_capture()
1001 epcm->running = 0; in snd_ca0106_pcm_trigger_capture()
1016 struct snd_ca0106_pcm *epcm = runtime->private_data; in snd_ca0106_pcm_pointer_playback() local
1018 int channel = epcm->channel_id; in snd_ca0106_pcm_pointer_playback()
1021 if (!epcm->running) in snd_ca0106_pcm_pointer_playback()
1046 struct snd_ca0106_pcm *epcm = runtime->private_data; in snd_ca0106_pcm_pointer_capture() local
1048 int channel = epcm->channel_id; in snd_ca0106_pcm_pointer_capture()
1050 if (!epcm->running) in snd_ca0106_pcm_pointer_capture()
1237 snd_pcm_period_elapsed(pchannel->epcm->substream); in snd_ca0106_interrupt()
1253 snd_pcm_period_elapsed(pchannel->epcm->substream); in snd_ca0106_interrupt()