Lines Matching defs:pcm
35 #include <sound/pcm.h>
1238 struct snd_pcm *pcm;
1244 err = snd_pcm_new(ensoniq->card, "ES1370/1", device, 1, 1, &pcm);
1246 err = snd_pcm_new(ensoniq->card, "ES1371/1", device, 1, 1, &pcm);
1252 snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, &snd_ensoniq_playback2_ops);
1254 snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, &snd_ensoniq_playback1_ops);
1256 snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, &snd_ensoniq_capture_ops);
1258 pcm->private_data = ensoniq;
1259 pcm->info_flags = 0;
1261 strcpy(pcm->name, "ES1370 DAC2/ADC");
1263 strcpy(pcm->name, "ES1371 DAC2/ADC");
1265 ensoniq->pcm1 = pcm;
1267 snd_pcm_lib_preallocate_pages_for_all(pcm, SNDRV_DMA_TYPE_DEV,
1271 *rpcm = pcm;
1278 struct snd_pcm *pcm;
1284 err = snd_pcm_new(ensoniq->card, "ES1370/2", device, 1, 0, &pcm);
1286 err = snd_pcm_new(ensoniq->card, "ES1371/2", device, 1, 0, &pcm);
1292 snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, &snd_ensoniq_playback1_ops);
1294 snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, &snd_ensoniq_playback2_ops);
1296 pcm->private_data = ensoniq;
1297 pcm->info_flags = 0;
1299 strcpy(pcm->name, "ES1370 DAC1");
1301 strcpy(pcm->name, "ES1371 DAC1");
1303 ensoniq->pcm2 = pcm;
1305 snd_pcm_lib_preallocate_pages_for_all(pcm, SNDRV_DMA_TYPE_DEV,
1309 *rpcm = pcm;