Lines Matching full:pcm

40  * PCM API
43 struct pcm;
60 /* PCM runtime states */
108 /* PCM parameters */
139 struct pcm *pcm_open(unsigned int card, unsigned int device,
141 int pcm_close(struct pcm *pcm);
142 int pcm_is_ready(struct pcm *pcm);
144 /* Obtain the parameters for a PCM */
154 int pcm_get_config(struct pcm *pcm, struct pcm_config *config);
155 int pcm_set_config(struct pcm *pcm, struct pcm_config *config);
158 const char *pcm_get_error(struct pcm *pcm);
160 /* Returns the sample size in bits for a PCM format.
168 unsigned int pcm_get_buffer_size(struct pcm *pcm);
169 unsigned int pcm_frames_to_bytes(struct pcm *pcm, unsigned int frames);
170 unsigned int pcm_bytes_to_frames(struct pcm *pcm, unsigned int bytes);
172 /* Returns the pcm latency in ms */
173 unsigned int pcm_get_latency(struct pcm *pcm);
175 /* Returns available frames in pcm buffer and corresponding time stamp.
183 int pcm_get_htimestamp(struct pcm *pcm, unsigned int *avail,
190 int pcm_write(struct pcm *pcm, const void *data, unsigned int count);
191 int pcm_read(struct pcm *pcm, void *data, unsigned int count);
196 int pcm_mmap_write(struct pcm *pcm, const void *data, unsigned int count);
197 int pcm_mmap_read(struct pcm *pcm, void *data, unsigned int count);
198 int pcm_mmap_begin(struct pcm *pcm, void **areas, unsigned int *offset,
200 int pcm_mmap_commit(struct pcm *pcm, unsigned int offset, unsigned int frames);
202 /* Start and stop a PCM channel that doesn't transfer data */
203 int pcm_start(struct pcm *pcm);
204 int pcm_stop(struct pcm *pcm);
207 int pcm_wait(struct pcm *pcm, int timeout);
212 int pcm_set_avail_min(struct pcm *pcm, int avail_min);