Lines Matching refs:pcm

883 static int snd_echo_preallocate_pages(struct snd_pcm *pcm, struct device *dev)  in snd_echo_preallocate_pages()  argument
889 for (ss = pcm->streams[stream].substream; ss; ss = ss->next) { in snd_echo_preallocate_pages()
905 struct snd_pcm *pcm; in snd_echo_new_pcm() local
917 num_analog_busses_in(chip), &pcm)) < 0) in snd_echo_new_pcm()
919 pcm->private_data = chip; in snd_echo_new_pcm()
920 chip->analog_pcm = pcm; in snd_echo_new_pcm()
921 strcpy(pcm->name, chip->card->shortname); in snd_echo_new_pcm()
922 snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, &analog_playback_ops); in snd_echo_new_pcm()
923 snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, &analog_capture_ops); in snd_echo_new_pcm()
924 if ((err = snd_echo_preallocate_pages(pcm, snd_dma_pci_data(chip->pci))) < 0) in snd_echo_new_pcm()
930 num_digital_busses_in(chip), &pcm)) < 0) in snd_echo_new_pcm()
932 pcm->private_data = chip; in snd_echo_new_pcm()
933 chip->digital_pcm = pcm; in snd_echo_new_pcm()
934 strcpy(pcm->name, chip->card->shortname); in snd_echo_new_pcm()
935 snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, &digital_capture_ops); in snd_echo_new_pcm()
936 if ((err = snd_echo_preallocate_pages(pcm, snd_dma_pci_data(chip->pci))) < 0) in snd_echo_new_pcm()
950 num_analog_busses_in(chip), &pcm)) < 0) in snd_echo_new_pcm()
952 pcm->private_data = chip; in snd_echo_new_pcm()
953 chip->analog_pcm = pcm; in snd_echo_new_pcm()
954 strcpy(pcm->name, chip->card->shortname); in snd_echo_new_pcm()
955 snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, &analog_playback_ops); in snd_echo_new_pcm()
956 snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, &analog_capture_ops); in snd_echo_new_pcm()
957 if ((err = snd_echo_preallocate_pages(pcm, snd_dma_pci_data(chip->pci))) < 0) in snd_echo_new_pcm()
964 num_digital_busses_in(chip), &pcm)) < 0) in snd_echo_new_pcm()
966 pcm->private_data = chip; in snd_echo_new_pcm()
967 chip->digital_pcm = pcm; in snd_echo_new_pcm()
968 strcpy(pcm->name, chip->card->shortname); in snd_echo_new_pcm()
969 snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, &digital_playback_ops); in snd_echo_new_pcm()
970 snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, &digital_capture_ops); in snd_echo_new_pcm()
971 if ((err = snd_echo_preallocate_pages(pcm, snd_dma_pci_data(chip->pci))) < 0) in snd_echo_new_pcm()