Lines Matching refs:pcm
423 dev_dbg(subs->pcm->card->dev, "SNDRV_PCM_TRIGGER_START\n"); in snd_mixart_trigger()
440 dev_dbg(subs->pcm->card->dev, "SNDRV_PCM_TRIGGER_STOP\n"); in snd_mixart_trigger()
447 dev_dbg(subs->pcm->card->dev, "SNDRV_PCM_PAUSE_PUSH\n"); in snd_mixart_trigger()
452 dev_dbg(subs->pcm->card->dev, "SNDRV_PCM_PAUSE_RELEASE\n"); in snd_mixart_trigger()
709 struct snd_pcm *pcm = subs->pcm; in snd_mixart_playback_open() local
717 if ( pcm == chip->pcm ) { in snd_mixart_playback_open()
721 snd_BUG_ON(pcm != chip->pcm_dig); in snd_mixart_playback_open()
788 struct snd_pcm *pcm = subs->pcm; in snd_mixart_capture_open() local
796 if ( pcm == chip->pcm ) { in snd_mixart_capture_open()
800 snd_BUG_ON(pcm != chip->pcm_dig); in snd_mixart_capture_open()
928 static void preallocate_buffers(struct snd_mixart *chip, struct snd_pcm *pcm) in preallocate_buffers() argument
936 for (subs = pcm->streams[stream].substream; subs; subs = subs->next, idx++) in preallocate_buffers()
938 subs->dma_device.id = subs->pcm->device << 16 | in preallocate_buffers()
943 snd_pcm_set_managed_buffer_all(pcm, SNDRV_DMA_TYPE_DEV, in preallocate_buffers()
953 struct snd_pcm *pcm; in snd_mixart_pcm_analog() local
959 MIXART_CAPTURE_STREAMS, &pcm); in snd_mixart_pcm_analog()
966 pcm->private_data = chip; in snd_mixart_pcm_analog()
968 snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, &snd_mixart_playback_ops); in snd_mixart_pcm_analog()
969 snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, &snd_mixart_capture_ops); in snd_mixart_pcm_analog()
971 pcm->info_flags = 0; in snd_mixart_pcm_analog()
972 pcm->nonatomic = true; in snd_mixart_pcm_analog()
973 strcpy(pcm->name, name); in snd_mixart_pcm_analog()
975 preallocate_buffers(chip, pcm); in snd_mixart_pcm_analog()
977 chip->pcm = pcm; in snd_mixart_pcm_analog()
987 struct snd_pcm *pcm; in snd_mixart_pcm_digital() local
993 MIXART_CAPTURE_STREAMS, &pcm); in snd_mixart_pcm_digital()
1000 pcm->private_data = chip; in snd_mixart_pcm_digital()
1002 snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, &snd_mixart_playback_ops); in snd_mixart_pcm_digital()
1003 snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, &snd_mixart_capture_ops); in snd_mixart_pcm_digital()
1005 pcm->info_flags = 0; in snd_mixart_pcm_digital()
1006 pcm->nonatomic = true; in snd_mixart_pcm_digital()
1007 strcpy(pcm->name, name); in snd_mixart_pcm_digital()
1009 preallocate_buffers(chip, pcm); in snd_mixart_pcm_digital()
1011 chip->pcm_dig = pcm; in snd_mixart_pcm_digital()