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");
639 "snd_mixart_hw_params(pcm %d) : dma_addr(%x) dma_bytes(%x) subs-number(%d)\n",
659 * TODO CONFIGURATION SPACE for all pcms, mono pcm must update channels_max
709 struct snd_pcm *pcm = subs->pcm;
717 if ( pcm == chip->pcm ) {
721 snd_BUG_ON(pcm != chip->pcm_dig);
788 struct snd_pcm *pcm = subs->pcm;
796 if ( pcm == chip->pcm ) {
800 snd_BUG_ON(pcm != chip->pcm_dig);
928 static void preallocate_buffers(struct snd_mixart *chip, struct snd_pcm *pcm)
936 for (subs = pcm->streams[stream].substream; subs; subs = subs->next, idx++)
938 subs->dma_device.id = subs->pcm->device << 16 |
943 snd_pcm_set_managed_buffer_all(pcm, SNDRV_DMA_TYPE_DEV,
953 struct snd_pcm *pcm;
959 MIXART_CAPTURE_STREAMS, &pcm);
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 strscpy(pcm->name, name);
975 preallocate_buffers(chip, pcm);
977 chip->pcm = pcm;
987 struct snd_pcm *pcm;
993 MIXART_CAPTURE_STREAMS, &pcm);
996 "cannot create the digital pcm %d\n", chip->chip_idx);
1000 pcm->private_data = chip;
1002 snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, &snd_mixart_playback_ops);
1003 snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, &snd_mixart_capture_ops);
1005 pcm->info_flags = 0;
1006 pcm->nonatomic = true;
1007 strscpy(pcm->name, name);
1009 preallocate_buffers(chip, pcm);
1011 chip->pcm_dig = pcm;