Lines Matching defs:pcm

23 #include <sound/pcm.h>
256 "add_ref_pipe audio chip(%d) pcm(%d)\n",
279 /* we don't yet know the format, so config 16 bit pcm audio for instance */
424 dev_dbg(subs->pcm->card->dev, "SNDRV_PCM_TRIGGER_START\n");
441 dev_dbg(subs->pcm->card->dev, "SNDRV_PCM_TRIGGER_STOP\n");
448 dev_dbg(subs->pcm->card->dev, "SNDRV_PCM_PAUSE_PUSH\n");
453 dev_dbg(subs->pcm->card->dev, "SNDRV_PCM_PAUSE_RELEASE\n");
640 "snd_mixart_hw_params(pcm %d) : dma_addr(%x) dma_bytes(%x) subs-number(%d)\n",
660 * TODO CONFIGURATION SPACE for all pcms, mono pcm must update channels_max
710 struct snd_pcm *pcm = subs->pcm;
718 if ( pcm == chip->pcm ) {
722 snd_BUG_ON(pcm != chip->pcm_dig);
789 struct snd_pcm *pcm = subs->pcm;
797 if ( pcm == chip->pcm ) {
801 snd_BUG_ON(pcm != chip->pcm_dig);
929 static void preallocate_buffers(struct snd_mixart *chip, struct snd_pcm *pcm)
937 for (subs = pcm->streams[stream].substream; subs; subs = subs->next, idx++)
939 subs->dma_device.id = subs->pcm->device << 16 |
944 snd_pcm_set_managed_buffer_all(pcm, SNDRV_DMA_TYPE_DEV,
954 struct snd_pcm *pcm;
960 MIXART_CAPTURE_STREAMS, &pcm)) < 0) {
962 "cannot create the analog pcm %d\n", chip->chip_idx);
966 pcm->private_data = chip;
968 snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, &snd_mixart_playback_ops);
969 snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, &snd_mixart_capture_ops);
971 pcm->info_flags = 0;
972 pcm->nonatomic = true;
973 strcpy(pcm->name, name);
975 preallocate_buffers(chip, pcm);
977 chip->pcm = pcm;
987 struct snd_pcm *pcm;
993 MIXART_CAPTURE_STREAMS, &pcm)) < 0) {
995 "cannot create the digital pcm %d\n", chip->chip_idx);
999 pcm->private_data = chip;
1001 snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, &snd_mixart_playback_ops);
1002 snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, &snd_mixart_capture_ops);
1004 pcm->info_flags = 0;
1005 pcm->nonatomic = true;
1006 strcpy(pcm->name, name);
1008 preallocate_buffers(chip, pcm);
1010 chip->pcm_dig = pcm;