Lines Matching full:pcm
6 * Digital Audio (PCM) abstract layer
21 #define snd_pcm_chip(pcm) ((pcm)->private_data) argument
443 struct snd_pcm *pcm; member
445 void *private_data; /* copied from pcm->private_data */
490 struct snd_pcm *pcm; member
522 void (*private_free) (struct snd_pcm *pcm);
523 bool internal; /* pcm is for internal use only */
524 bool nonatomic; /* whole PCM operations are in non-atomic context */
543 int snd_pcm_new_stream(struct snd_pcm *pcm, int stream, int substream_count);
547 int (*n_register) (struct snd_pcm * pcm);
548 int (*n_disconnect) (struct snd_pcm * pcm);
549 int (*n_unregister) (struct snd_pcm * pcm);
569 int snd_pcm_suspend_all(struct snd_pcm *pcm);
571 static inline int snd_pcm_suspend_all(struct snd_pcm *pcm) in snd_pcm_suspend_all() argument
577 int snd_pcm_open_substream(struct snd_pcm *pcm, int stream, struct file *file,
580 int snd_pcm_attach_substream(struct snd_pcm *pcm, int stream, struct file *file,
598 * PCM library
619 * snd_pcm_stream_lock_irqsave - Lock the PCM stream
620 * @substream: PCM substream
623 * This locks the PCM stream like snd_pcm_stream_lock() but with the local
668 * @runtime: PCM runtime instance
678 * @runtime: PCM runtime instance
688 * @runtime: PCM runtime instance
698 * @runtime: PCM runtime instance
708 * @runtime: PCM runtime instance
717 * snd_pcm_lib_buffer_bytes - Get the buffer size of the current PCM in bytes
718 * @substream: PCM substream
727 * snd_pcm_lib_period_bytes - Get the period size of the current PCM in bytes
728 * @substream: PCM substream
738 * @runtime: PCM runtime instance
754 * @runtime: PCM runtime instance
768 * @runtime: PCM runtime instance
777 * @runtime: PCM runtime instance
786 * @substream: the pcm substream instance
800 * @substream: the pcm substream instance
814 * @substream: the pcm substream instance
832 * @substream: the pcm substream instance
846 * @substream: the pcm substream instance
860 * @substream: the pcm substream instance
1024 * @runtime: PCM runtime instance
1045 * snd_pcm_format_cpu_endian - Check the PCM format is CPU-endian
1048 * Return: 1 if the given PCM format is CPU-endian, 0 if
1064 void snd_pcm_set_ops(struct snd_pcm * pcm, int direction,
1147 * snd_pcm_set_runtime_buffer - Set the PCM runtime buffer
1148 * @substream: PCM substream to set
1173 * @runtime: PCM runtime instance
1197 void snd_pcm_lib_preallocate_free_for_all(struct snd_pcm *pcm);
1201 void snd_pcm_lib_preallocate_pages_for_all(struct snd_pcm *pcm,
1209 int snd_pcm_set_managed_buffer_all(struct snd_pcm *pcm, int type,
1214 * snd_pcm_set_fixed_buffer - Preallocate and set up the fixed size PCM buffer
1215 * @substream: the pcm substream instance
1233 * snd_pcm_set_fixed_buffer_all - Preallocate and set up the fixed size PCM buffer
1234 * @pcm: the pcm instance
1244 snd_pcm_set_fixed_buffer_all(struct snd_pcm *pcm, int type, in snd_pcm_set_fixed_buffer_all() argument
1247 return snd_pcm_set_managed_buffer_all(pcm, type, data, size, 0); in snd_pcm_set_fixed_buffer_all()
1260 * Allocates the PCM substream buffer using vmalloc(), i.e., the memory is
1296 * @substream: PCM substream
1308 * @substream: PCM substream
1323 * PCM mmap callback should handle this counter properly
1335 * PCM mmap callback should handle this counter properly
1377 * @substream: the pcm substream instance
1390 * PCM channel-mapping control API
1400 struct snd_pcm *pcm; /* assigned PCM instance */ member
1410 * snd_pcm_chmap_substream - get the PCM substream assigned to the given chmap info
1418 for (s = info->pcm->streams[info->stream].substream; s; s = s->next) in snd_pcm_chmap_substream()
1434 int snd_pcm_add_chmap_ctls(struct snd_pcm *pcm, int stream,
1442 * @pcm_format: PCM format
1459 #define pcm_err(pcm, fmt, args...) \ argument
1460 dev_err((pcm)->card->dev, fmt, ##args)
1461 #define pcm_warn(pcm, fmt, args...) \ argument
1462 dev_warn((pcm)->card->dev, fmt, ##args)
1463 #define pcm_dbg(pcm, fmt, args...) \ argument
1464 dev_dbg((pcm)->card->dev, fmt, ##args)