Lines Matching refs:pcm
436 dev_dbg(subs->pcm->card->dev, "SNDRV_PCM_TRIGGER_START\n"); in snd_mixart_trigger()
453 dev_dbg(subs->pcm->card->dev, "SNDRV_PCM_TRIGGER_STOP\n"); in snd_mixart_trigger()
460 dev_dbg(subs->pcm->card->dev, "SNDRV_PCM_PAUSE_PUSH\n"); in snd_mixart_trigger()
465 dev_dbg(subs->pcm->card->dev, "SNDRV_PCM_PAUSE_RELEASE\n"); in snd_mixart_trigger()
726 struct snd_pcm *pcm = subs->pcm; in snd_mixart_playback_open() local
734 if ( pcm == chip->pcm ) { in snd_mixart_playback_open()
738 snd_BUG_ON(pcm != chip->pcm_dig); in snd_mixart_playback_open()
805 struct snd_pcm *pcm = subs->pcm; in snd_mixart_capture_open() local
813 if ( pcm == chip->pcm ) { in snd_mixart_capture_open()
817 snd_BUG_ON(pcm != chip->pcm_dig); in snd_mixart_capture_open()
947 static void preallocate_buffers(struct snd_mixart *chip, struct snd_pcm *pcm) in preallocate_buffers() argument
955 for (subs = pcm->streams[stream].substream; subs; subs = subs->next, idx++) in preallocate_buffers()
957 subs->dma_device.id = subs->pcm->device << 16 | in preallocate_buffers()
962 snd_pcm_lib_preallocate_pages_for_all(pcm, SNDRV_DMA_TYPE_DEV, in preallocate_buffers()
971 struct snd_pcm *pcm; in snd_mixart_pcm_analog() local
977 MIXART_CAPTURE_STREAMS, &pcm)) < 0) { in snd_mixart_pcm_analog()
983 pcm->private_data = chip; in snd_mixart_pcm_analog()
985 snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, &snd_mixart_playback_ops); in snd_mixart_pcm_analog()
986 snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, &snd_mixart_capture_ops); in snd_mixart_pcm_analog()
988 pcm->info_flags = 0; in snd_mixart_pcm_analog()
989 pcm->nonatomic = true; in snd_mixart_pcm_analog()
990 strcpy(pcm->name, name); in snd_mixart_pcm_analog()
992 preallocate_buffers(chip, pcm); in snd_mixart_pcm_analog()
994 chip->pcm = pcm; in snd_mixart_pcm_analog()
1004 struct snd_pcm *pcm; in snd_mixart_pcm_digital() local
1010 MIXART_CAPTURE_STREAMS, &pcm)) < 0) { in snd_mixart_pcm_digital()
1016 pcm->private_data = chip; in snd_mixart_pcm_digital()
1018 snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, &snd_mixart_playback_ops); in snd_mixart_pcm_digital()
1019 snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, &snd_mixart_capture_ops); in snd_mixart_pcm_digital()
1021 pcm->info_flags = 0; in snd_mixart_pcm_digital()
1022 pcm->nonatomic = true; in snd_mixart_pcm_digital()
1023 strcpy(pcm->name, name); in snd_mixart_pcm_digital()
1025 preallocate_buffers(chip, pcm); in snd_mixart_pcm_digital()
1027 chip->pcm_dig = pcm; in snd_mixart_pcm_digital()