Lines Matching full:pcm

6  *  Digital Audio (PCM) abstract layer
21 #define snd_pcm_chip(pcm) ((pcm)->private_data) argument
450 struct snd_pcm *pcm; member
452 void *private_data; /* copied from pcm->private_data */
497 struct snd_pcm *pcm; member
529 void (*private_free) (struct snd_pcm *pcm);
530 bool internal; /* pcm is for internal use only */
531 bool nonatomic; /* whole PCM operations are in non-atomic context */
550 int snd_pcm_new_stream(struct snd_pcm *pcm, int stream, int substream_count);
554 int (*n_register) (struct snd_pcm * pcm);
555 int (*n_disconnect) (struct snd_pcm * pcm);
556 int (*n_unregister) (struct snd_pcm * pcm);
576 int snd_pcm_suspend_all(struct snd_pcm *pcm);
578 static inline int snd_pcm_suspend_all(struct snd_pcm *pcm) in snd_pcm_suspend_all() argument
584 int snd_pcm_open_substream(struct snd_pcm *pcm, int stream, struct file *file,
587 int snd_pcm_attach_substream(struct snd_pcm *pcm, int stream, struct file *file,
605 * PCM library
627 * snd_pcm_stream_lock_irqsave - Lock the PCM stream
628 * @substream: PCM substream
631 * This locks the PCM stream like snd_pcm_stream_lock() but with the local
644 * snd_pcm_stream_lock_irqsave_nested - Single-nested PCM stream locking
645 * @substream: PCM substream
648 * This locks the PCM stream like snd_pcm_stream_lock_irqsave() but with
689 * __snd_pcm_set_state - Change the current PCM state
690 * @runtime: PCM runtime to set
704 * @runtime: PCM runtime instance
716 * @runtime: PCM runtime instance
728 * @runtime: PCM runtime instance
740 * @runtime: PCM runtime instance
752 * @runtime: PCM runtime instance
763 * snd_pcm_lib_buffer_bytes - Get the buffer size of the current PCM in bytes
764 * @substream: PCM substream
775 * snd_pcm_lib_period_bytes - Get the period size of the current PCM in bytes
776 * @substream: PCM substream
788 * @runtime: PCM runtime instance
806 * @runtime: PCM runtime instance
822 * @runtime: PCM runtime instance
833 * @runtime: PCM runtime instance
844 * @substream: the pcm substream instance
858 * @substream: the pcm substream instance
872 * @substream: the pcm substream instance
890 * @substream: the pcm substream instance
904 * @substream: the pcm substream instance
918 * @substream: the pcm substream instance
1094 * @runtime: PCM runtime instance
1115 * snd_pcm_format_cpu_endian - Check the PCM format is CPU-endian
1118 * Return: 1 if the given PCM format is CPU-endian, 0 if
1134 void snd_pcm_set_ops(struct snd_pcm * pcm, int direction,
1217 * snd_pcm_set_runtime_buffer - Set the PCM runtime buffer
1218 * @substream: PCM substream to set
1243 * @runtime: PCM runtime instance
1267 void snd_pcm_lib_preallocate_free_for_all(struct snd_pcm *pcm);
1271 void snd_pcm_lib_preallocate_pages_for_all(struct snd_pcm *pcm,
1279 int snd_pcm_set_managed_buffer_all(struct snd_pcm *pcm, int type,
1284 * snd_pcm_set_fixed_buffer - Preallocate and set up the fixed size PCM buffer
1285 * @substream: the pcm substream instance
1305 * snd_pcm_set_fixed_buffer_all - Preallocate and set up the fixed size PCM buffer
1306 * @pcm: the pcm instance
1318 snd_pcm_set_fixed_buffer_all(struct snd_pcm *pcm, int type, in snd_pcm_set_fixed_buffer_all() argument
1321 return snd_pcm_set_managed_buffer_all(pcm, type, data, size, 0); in snd_pcm_set_fixed_buffer_all()
1334 * Allocates the PCM substream buffer using vmalloc(), i.e., the memory is
1370 * @substream: PCM substream
1384 * @substream: PCM substream
1401 * PCM mmap callback should handle this counter properly
1413 * PCM mmap callback should handle this counter properly
1469 * @substream: the pcm substream instance
1479 * PCM channel-mapping control API
1489 struct snd_pcm *pcm; /* assigned PCM instance */ member
1499 * snd_pcm_chmap_substream - get the PCM substream assigned to the given chmap info
1503 * Return: the matched PCM substream, or NULL if not found
1509 for (s = info->pcm->streams[info->stream].substream; s; s = s->next) in snd_pcm_chmap_substream()
1525 int snd_pcm_add_chmap_ctls(struct snd_pcm *pcm, int stream,
1533 * @pcm_format: PCM format
1535 * Return: 64bit mask corresponding to the given PCM format
1552 #define pcm_err(pcm, fmt, args...) \ argument
1553 dev_err((pcm)->card->dev, fmt, ##args)
1554 #define pcm_warn(pcm, fmt, args...) \ argument
1555 dev_warn((pcm)->card->dev, fmt, ##args)
1556 #define pcm_dbg(pcm, fmt, args...) \ argument
1557 dev_dbg((pcm)->card->dev, fmt, ##args)