Lines Matching defs:pcm

23 #include <sound/pcm.h>
255 "add_ref_pipe audio chip(%d) pcm(%d)\n",
278 /* we don't yet know the format, so config 16 bit pcm audio for instance */
423 dev_dbg(subs->pcm->card->dev, "SNDRV_PCM_TRIGGER_START\n");
440 dev_dbg(subs->pcm->card->dev, "SNDRV_PCM_TRIGGER_STOP\n");
447 dev_dbg(subs->pcm->card->dev, "SNDRV_PCM_PAUSE_PUSH\n");
452 dev_dbg(subs->pcm->card->dev, "SNDRV_PCM_PAUSE_RELEASE\n");
637 "snd_mixart_hw_params(pcm %d) : dma_addr(%x) dma_bytes(%x) subs-number(%d)\n",
656 * TODO CONFIGURATION SPACE for all pcms, mono pcm must update channels_max
706 struct snd_pcm *pcm = subs->pcm;
714 if ( pcm == chip->pcm ) {
718 snd_BUG_ON(pcm != chip->pcm_dig);
778 struct snd_pcm *pcm = subs->pcm;
786 if ( pcm == chip->pcm ) {
790 snd_BUG_ON(pcm != chip->pcm_dig);
910 static void preallocate_buffers(struct snd_mixart *chip, struct snd_pcm *pcm)
918 for (subs = pcm->streams[stream].substream; subs; subs = subs->next, idx++)
920 subs->dma_device.id = subs->pcm->device << 16 |
925 snd_pcm_set_managed_buffer_all(pcm, SNDRV_DMA_TYPE_DEV,
935 struct snd_pcm *pcm;
941 MIXART_CAPTURE_STREAMS, &pcm);
944 "cannot create the analog pcm %d\n", chip->chip_idx);
948 pcm->private_data = chip;
950 snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, &snd_mixart_playback_ops);
951 snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, &snd_mixart_capture_ops);
953 pcm->info_flags = 0;
954 pcm->nonatomic = true;
955 strscpy(pcm->name, name);
957 preallocate_buffers(chip, pcm);
959 chip->pcm = pcm;
969 struct snd_pcm *pcm;
975 MIXART_CAPTURE_STREAMS, &pcm);
978 "cannot create the digital pcm %d\n", chip->chip_idx);
982 pcm->private_data = chip;
984 snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, &snd_mixart_playback_ops);
985 snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, &snd_mixart_capture_ops);
987 pcm->info_flags = 0;
988 pcm->nonatomic = true;
989 strscpy(pcm->name, name);
991 preallocate_buffers(chip, pcm);
993 chip->pcm_dig = pcm;