Lines Matching defs:pcm

14 #include <sound/pcm.h>
102 struct snd_card *card = substream->pcm->card;
117 substream->pcm->card->number, substream->pcm->device,
119 substream->pcm->name, orig_size);
125 * @substream: the pcm substream instance
131 do_free_pages(substream->pcm->card, &substream->dma_buffer);
135 * snd_pcm_lib_preallocate_free_for_all - release all pre-allocated buffers on the pcm
136 * @pcm: the pcm instance
138 * Releases all the pre-allocated buffers on the given pcm.
140 void snd_pcm_lib_preallocate_free_for_all(struct snd_pcm *pcm)
145 for_each_pcm_substream(pcm, stream, substream)
184 struct snd_card *card = substream->pcm->card;
189 guard(mutex)(&substream->pcm->open_mutex);
216 substream->pcm->card->number, substream->pcm->device,
218 substream->pcm->name, size);
237 entry = snd_info_create_card_entry(substream->pcm->card, "prealloc",
245 entry = snd_info_create_card_entry(substream->pcm->card, "prealloc_max",
297 static int preallocate_pages_for_all(struct snd_pcm *pcm, int type,
304 for_each_pcm_substream(pcm, stream, substream) {
314 * @substream: the pcm substream instance
332 * @pcm: the pcm instance
338 * Do pre-allocation to all substreams of the given pcm for the
341 void snd_pcm_lib_preallocate_pages_for_all(struct snd_pcm *pcm,
345 preallocate_pages_for_all(pcm, type, data, size, max, false);
351 * @substream: the pcm substream instance
390 * @pcm: the pcm instance
396 * Do pre-allocation to all substreams of the given pcm for the specified DMA
401 int snd_pcm_set_managed_buffer_all(struct snd_pcm *pcm, int type,
405 return preallocate_pages_for_all(pcm, type, data, size, max, true);
432 card = substream->pcm->card;
462 substream->pcm->card->number, substream->pcm->device,
464 substream->pcm->name, size);
492 struct snd_card *card = substream->pcm->card;